diff --git a/pkgs/MPlayer/MPlayer-build.sh b/pkgs/MPlayer/MPlayer-build.sh new file mode 100644 index 000000000000..30e5db59a21f --- /dev/null +++ b/pkgs/MPlayer/MPlayer-build.sh @@ -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 diff --git a/pkgs/MPlayer/MPlayer.fix b/pkgs/MPlayer/MPlayer.fix new file mode 100644 index 000000000000..0ea1ccd44204 --- /dev/null +++ b/pkgs/MPlayer/MPlayer.fix @@ -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")) + ] +) diff --git a/pkgs/win32codecs/win32codecs-build.sh b/pkgs/win32codecs/win32codecs-build.sh new file mode 100644 index 000000000000..c9fc4932b1ca --- /dev/null +++ b/pkgs/win32codecs/win32codecs-build.sh @@ -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 diff --git a/pkgs/win32codecs/win32codecs.fix b/pkgs/win32codecs/win32codecs.fix new file mode 100644 index 000000000000..e047e8ca76e7 --- /dev/null +++ b/pkgs/win32codecs/win32codecs.fix @@ -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") + ])) + ] +)