opt/mplayer/Pkgfile

48 lines
1.5 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
2006-02-23 16:26:10 +01:00
2006-10-24 15:24:08 +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
# More information can be found at http://www.mplayerhq.hu/DOCS/codecs.html and
# http://www.mplayerhq.hu/DOCS/HTML/en/index.html
name=mplayer
2008-06-30 04:50:14 +02:00
version=1.0_rc2_p27120
release=2
source=(http://gentoo.chem.wisc.edu/gentoo/distfiles/$name-$version.tar.bz2 \
2006-10-27 15:01:50 +02:00
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
chown -R root:root $PKG
}