You are not logged in.

#26 2005-11-09 15:12:32

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Request] Mplayer-gtk2

In the AUR now - here.

Offline

#27 2005-11-09 17:27:16

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [Request] Mplayer-gtk2

OK - why is no one using the

-D $pkgver -f

options that make versionpkg worthwhile?  I don't get it?

Here is an updated version which should work better with versionpkg:

# Contributor: lucke
# Contributor: Tom K <tomk@runbox.com>

pkgname=mplayer-cvs
pkgver=20051109
pkgrel=1
pkgdesc="A movie player for linux"
depends=('x-server' 'libmad' 'libungif' 'libvorbis' 'divx4linux' 'cdparanoia' 
         'gtk2' 'codecs' 'sdl' 'libjpeg' 'lame' 'libtheora' 'esd' 'faad2')
source=(ftp://ftp.mplayerhq.hu/MPlayer/Skin/Blue-1.4.tar.bz2)
md5sums=('05dd8e4f11a715c9e5d2abf1cdeb907c')
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"

_cvsroot=:pserver:anonymous:@mplayerhq.hu:/cvsroot
_cvsmod=main
_cvsmod1=ffmpeg

build() {
  cd $startdir/src

  msg "Connecting to mplayer CVS server...."
  cvs -z3 -d$_cvsroot/mplayer co -D $pkgver -f -P $_cvsmod
  msg "Connecting to ffmpeg CVS server...."
  cvs -z3 -d$_cvsroot/$_cvsmod1 co -D $pkgver -f -P $_cvsmod1

  msg "CVS checkout done or server timeout"
  msg "Starting make..."

  cp -r $_cvsmod1/{libavcodec,libavformat,libavutil} $_cvsmod

  cp -r $_cvsmod $_cvsmod-build
  cd $_cvsmod-build

  ./configure --prefix=/usr --enable-gui --disable-arts --disable-smb 
    --enable-sdl --enable-x11 --enable-theora --confdir=/etc/mplayer 
    --with-win32libdir=/usr/lib/win32 --enable-external-faad 
    --enable-tv-v4l --enable-tv-v4l2
  make || return 1
  make DESTDIR=$startdir/pkg install
  cp etc/{codecs.conf,input.conf,example.conf} $startdir/pkg/usr/share/mplayer
  ln -s /usr/X11R6/lib/X11/fonts/TTF/Vera.ttf $startdir/pkg/usr/share/mplayer/subfont.ttf
  rm -rf $startdir/pkg/usr/share/mplayer/font
  mv $startdir/src/Blue $startdir/pkg/usr/share/mplayer/Skin/default
}

Offline

#28 2005-11-09 17:53:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Request] Mplayer-gtk2

Can't speak for anyone else, dibble, but when I read the cvs/svn guidelines on the wiki, I came away with the impression that versionpkg was an optional, nice-to-have extra. I'll remember in future, and I'll update my current cvs/svn AUR entries.

Offline

#29 2005-11-09 18:54:29

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: [Request] Mplayer-gtk2

ditto here.
Apart from that, this bit

-D $pkgver -f

was not in the guidelines when I started making this kind of PKGBUILDs, ;^)

But, I am going to start using it anyway.

-S

Offline

#30 2005-11-09 20:16:14

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [Request] Mplayer-gtk2

Woo hoo!

Will this work with mplayer-plugin?

Offline

#31 2005-11-09 20:33:54

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [Request] Mplayer-gtk2

Well, the use of versionpkg is optional but if you think about it having the tag (or date) in pkgver and not using it in the checkout command is "wrong".  versionpkg just auto-updates those things - the checkout should still use the pkgver smile

I can't get this to build tho!  I added in the bits I complained about and it don't work :'(

Offline

#32 2005-11-09 23:04:19

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Request] Mplayer-gtk2

What's your error? (Didn't think I'd have to ask you that, given all the times you've had to ask others.... smile )

Gullible - yes, it works with mplayer-plugin.

Offline

#33 2005-11-09 23:28:08

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [Request] Mplayer-gtk2

ooh... i'm building this beauty now!

Offline

#34 2005-11-09 23:54:08

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [Request] Mplayer-gtk2

Mmm... Shouldn't need divx4linux any more, take a look at the one in the Current repo. Other than that, looks great. 8)

Offline

#35 2005-11-10 00:34:31

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Request] Mplayer-gtk2

Thanks Gullible. I'll update shortly.

Offline

#36 2005-11-10 09:20:20

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [Request] Mplayer-gtk2

OK - my error is (knowing full well no-one will be able to help wink):

libmpcodecs/libmpcodecs.a(vd_theora.o): In function `init':
vd_theora.c:(.text+0xb9): undefined reference to `theora_info_init'
vd_theora.c:(.text+0xc7): undefined reference to `theora_comment_init'
vd_theora.c:(.text+0xfb): undefined reference to `theora_decode_header'
vd_theora.c:(.text+0x112): undefined reference to `theora_decode_init'
libmpcodecs/libmpcodecs.a(vd_theora.o): In function `uninit':
vd_theora.c:(.text+0x238): undefined reference to `theora_clear'
libmpcodecs/libmpcodecs.a(vd_theora.o): In function `decode':
vd_theora.c:(.text+0x29a): undefined reference to `theora_decode_packetin'
vd_theora.c:(.text+0x2b1): undefined reference to `theora_decode_YUVout'
libmpdemux/libmpdemux.a(demux_ogg.o): In function `demux_ogg_open':
demux_ogg.c:(.text+0x32a0): undefined reference to `theora_info_init'
demux_ogg.c:(.text+0x32a8): undefined reference to `theora_comment_init'
demux_ogg.c:(.text+0x32bb): undefined reference to `theora_decode_header'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

It's always libmpcodecs!  There is a new codecs pkg tho...I am just getting that...

Could someone give us a screenshot please?

Offline

#37 2005-11-10 09:36:49

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [Request] Mplayer-gtk2

Failed again sad

Offline

#38 2005-11-10 10:26:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Request] Mplayer-gtk2

dibblethewrecker wrote:

Could someone give us a screenshot please?

Well... the only bit of it that looks different to me is the right-click menu, and I can't get import to capture that (Any hints, anyone?). Here's a screenshot with no menu.

Offline

#39 2005-11-10 10:31:23

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [Request] Mplayer-gtk2

Still failing - I removed ffmpeg to make sure it wasn't linking against that but no luck - am confused as to why everyone else can build it but me sad

Offline

#40 2005-11-10 10:56:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Request] Mplayer-gtk2

I can do you a binary, if you want. I don't have a repo, but I can just stick it on a url for you, like the screenie.

I'd probably need to --enable-runtime-cpudetection again, right?

Offline

#41 2005-11-10 15:18:26

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: [Request] Mplayer-gtk2

probably ;-)
Here is a screenshot with the preferences dialog. I don't know how it was before, as I've never opened it anyway tongue
Oh, the menu is there, too. You just have to use the right proggie / command ;-) [my method is showed in the shot]
[URL=http://img492.imageshack.us/my.php?image=200511101714501280x1024scrot2q.png]200511101714501280x1024scrot2q.th.png[/URL]
PS - I have a package from 20051103 . I tryied to build it later, to remove --enable-runtime-cpudetection, failed miserably and did not have time to investigate. If there is demand I can upload it somewhere.

Offline

#42 2005-11-10 17:57:11

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [Request] Mplayer-gtk2

Well, dibble, I couldn't get it compiled it as well for a few days, due to theora. Now I've just disabled theora in the PKGBUILD for the time being in order to get it compiled.

tomk, thanks for pulling the stuff together ;-) One small thing I could add is that dorphell has removed not only divx4linux from 'official' PKGBUILD, but also libvorbis. Although mplayer's documentation still mentions it as a dep, the building process mentions internal decoder - thus I guess it's safe to remove it from the dep field.

Offline

#43 2005-11-10 18:30:18

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Request] Mplayer-gtk2

scrot - well, whaddaya know? big_smile

Thanks stavrosg.

lucke - no problem, and it was definitely a team effort here. I'll take care of libvorbis shortly.

Offline

#44 2005-11-10 18:37:38

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [Request] Mplayer-gtk2

It seems as if it built ok on 3rd Nov so I would go back rather than disable stuff smile  You just need to set the dat in pkgver - tho o course you can;t use versionpkg in that case wink

Offline

Board footer

Powered by FluxBB