* MPlayer packages.

svn path=/nixpkgs/trunk/; revision=176
This commit is contained in:
Eelco Dolstra 2003-07-17 22:33:21 +00:00
parent a119076f9e
commit 4cd39573f2
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#! /bin/sh
export PATH=/bin:/usr/bin
envpkgs="$freetype"
. $setenv
tar xvfj $src || exit 1
tar xvfj $fonts || exit 1
cd MPlayer-* || exit 1
./configure --prefix=$out --with-win32libdir=$win32codecs \
--with-reallibdir=$win32codecs \
--disable-sdl --disable-esd --disable-xanim --disable-cdparanoia --disable-directfb \
|| exit 1
make || exit 1
make install || exit 1
cp -p ../font-arial-iso-8859-1/font-arial-18-iso-8859-1/* $out/share/mplayer/font || exit 1
echo $envpkgs > $out/envpkgs || exit 1

20
pkgs/MPlayer/MPlayer.fix Normal file
View File

@ -0,0 +1,20 @@
Package(
[ ("name", "MPlayer-0.90")
, ("build", Relative("MPlayer/MPlayer-build.sh"))
, ("setenv", Relative("helpers/set-env.sh"))
, ("src", App(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-0.90.tar.bz2")
, ("md5", "9a9f294bbaab2071ecbc327f4e870be8")
]))
, ("fonts", App(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2")
, ("md5", "1ecd31d17b51f16332b1fcc7da36b312")
]))
, ("freetype", IncludeFix("freetype/freetype.fix"))
, ("win32codecs", IncludeFix("win32codecs/win32codecs.fix"))
]
)

View File

@ -0,0 +1,9 @@
#! /bin/sh
export PATH=/bin:/usr/bin
mkdir $out || exit 1
cd $out || exit 1
tar xvfj $src || exit 1
mv extralite/* . || exit 1
rmdir extralite || exit 1

View File

@ -0,0 +1,11 @@
Package(
[ ("name", "win32codecs-1")
, ("build", Relative("win32codecs/win32codecs-build.sh"))
, ("src", App(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "http://www2.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2")
, ("md5", "4748ecae87f71e8bda9cb2e2a9bd30b4")
]))
]
)