summaryrefslogtreecommitdiff
path: root/mplayer/Pkgfile
blob: f581dc8671ce21ddc43644e550465260d25fae0a (plain)
    1 # Description: Versatile media player and encoder/converter
    2 # URL: http://www.mplayerhq.hu/
    3 # Packager: Matt Housh, jaeger at morpheus dot net
    4 # Maintainer: Lucas Hazel, lucas at die dot net dot au
    5 # Depends on: expat, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm
    6 # Nice to have: libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav
    7 
    8 name=mplayer
    9 version=export-2009-07-25
   10 release=1
   11 source=(http://crux.nu/~lucas/files/$name-$version.tar.bz2
   12 	http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
   13 	mplayer.conf)
   14 
   15 build() {
   16 	cd $name-$version
   17 
   18 	# Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
   19 	#export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer"
   20 	./configure --prefix=/usr \
   21 	    --mandir=/usr/man \
   22 	    --codecsdir=/usr/lib/win32 \
   23 	    --enable-largefiles
   24 	make
   25 	make DESTDIR=$PKG install
   26 
   27 	(cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
   28 
   29 	# fonts
   30 	mkdir -p $PKG/usr/share/mplayer
   31 	cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
   32 		$PKG/usr/share/mplayer
   33 	ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
   34 
   35 	# config
   36 	cp $SRC/mplayer.conf $PKG/usr/etc/mplayer/
   37 	cp etc/input.conf $PKG/usr/etc/mplayer/
   38 
   39 	# finish up
   40 	rmdir $PKG/usr/lib
   41 	find $PKG -name '*.desc' | xargs chmod g-w
   42 }

Generated by cgit