opt/mplayer/Pkgfile

44 lines
1.4 KiB
Plaintext
Raw Normal View History

# Description: Versatile media player and encoder/converter
2006-02-23 16:26:10 +01:00
# URL: http://www.mplayerhq.hu/
# Packager: Matt Housh, jaeger at morpheus dot net
2008-06-19 14:46:02 +02:00
# Maintainer: Lucas Hazel, lucas at die dot net dot au
2007-04-27 20:32:55 +02:00
# Depends on: expat, xorg-libxinerama, xorg-libxv, xorg-libxxf86dga, xorg-libxxf86vm
2009-04-19 07:46:48 +02:00
# Nice to have: libsdl, libjpeg, libpng, lame, zlib, libogg, libvorbis, cdparanoia, win32-essential-codecs, faac, x264, libdvdnav
2006-02-23 16:26:10 +01:00
name=mplayer
2009-03-15 01:14:52 +01:00
version=20090226.28734
release=1
2008-10-26 00:27:12 +02:00
source=(http://distfiles.gentoo.org/distfiles/$name-$version.tar.bz2
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
2006-06-13 15:27:41 +02:00
mplayer.conf)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
# Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer"
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
2007-10-08 21:07:58 +02:00
--mandir=/usr/man \
--win32codecsdir=/usr/lib/win32 \
--enable-largefiles
2006-02-23 16:26:10 +01:00
make
make DESTDIR=$PKG install
(cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
# fonts
mkdir -p $PKG/usr/share/mplayer
2006-02-23 16:26:10 +01:00
cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
$PKG/usr/share/mplayer
ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
2006-02-23 16:26:10 +01:00
# config
cp $SRC/mplayer.conf $PKG/usr/etc/mplayer/
cp etc/input.conf $PKG/usr/etc/mplayer/
# finish up
rmdir $PKG/usr/lib
2006-02-23 16:26:10 +01:00
chown -R root:root $PKG
}