You are not logged in.
In the AUR now - here.
Offline
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
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
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
Woo hoo!
Will this work with mplayer-plugin?
Offline
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
I can't get this to build tho! I added in the bits I complained about and it don't work :'(
Offline
What's your error? (Didn't think I'd have to ask you that, given all the times you've had to ask others.... )
Gullible - yes, it works with mplayer-plugin.
Offline
ooh... i'm building this beauty now!
Offline
Mmm... Shouldn't need divx4linux any more, take a look at the one in the Current repo. Other than that, looks great. 8)
Offline
Thanks Gullible. I'll update shortly.
Offline
OK - my error is (knowing full well no-one will be able to help ):
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
Failed again
Offline
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
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
Offline
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
probably ;-)
Here is a screenshot with the preferences dialog. I don't know how it was before, as I've never opened it anyway
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][/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
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
scrot - well, whaddaya know?
Thanks stavrosg.
lucke - no problem, and it was definitely a team effort here. I'll take care of libvorbis shortly.
Offline
It seems as if it built ok on 3rd Nov so I would go back rather than disable stuff You just need to set the dat in pkgver - tho o course you can;t use versionpkg in that case
Offline