* MPlayer.

svn path=/nixpkgs/trunk/; revision=495
This commit is contained in:
Eelco Dolstra 2003-11-11 15:01:07 +00:00
parent b1741cb2b1
commit e9ce152222
7 changed files with 74 additions and 0 deletions

View File

@ -82,6 +82,8 @@ ELSE IF it's an APPLICATION:
IF it's a VERSION MANAGEMENT system:
./applications/version-management
ELSE IF it's for VIDEO playback/etc:
./applications/video
ELSE IF it's for NETWORKING:
IF it's a MAILREADER:
./applications/networking/mailreaders

View File

@ -0,0 +1,19 @@
#! /bin/sh
buildinputs="$freetype $x11"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
tar xvfj $fonts || exit 1
cd MPlayer-* || exit 1
./configure --prefix=$out --with-win32libdir=$win32codecs \
--with-x11incdir=$x11/include --with-x11libdir=$x11/lib \
--with-reallibdir=$win32codecs \
--disable-sdl --disable-esd --disable-xanim --disable-cdparanoia --disable-directfb \
--disable-lirc --disable-svga --disable-libdv \
--disable-vorbis --disable-png --disable-jpeg --disable-gif \
--enable-runtime-cpudetection \
|| 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

View File

@ -0,0 +1,26 @@
{stdenv, fetchurl, x11, freetype}:
assert !isNull x11 && !isNull freetype;
derivation {
name = "MPlayer-1.0pre2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre2.tar.bz2;
md5 = "a60c179468f85e83e3f9e1922e81ad64";
};
fonts = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2;
md5 = "1ecd31d17b51f16332b1fcc7da36b312";
};
stdenv = stdenv;
x11 = x11;
freetype = freetype;
win32codecs = (import ./win32codecs) {
stdenv = stdenv;
fetchurl = fetchurl;
};
}

View File

@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
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,10 @@
{stdenv, fetchurl}: derivation {
name = "win32codecs-1";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2;
md5 = "4748ecae87f71e8bda9cb2e2a9bd30b4";
};
stdenv = stdenv;
}

View File

@ -370,4 +370,11 @@
libIDL = libIDL;
};
MPlayer = (import ../applications/video/MPlayer) {
fetchurl = fetchurl;
stdenv = stdenv;
x11 = xfree86;
freetype = freetype;
};
}

View File

@ -15,6 +15,7 @@
pkgs.pan
pkgs.sylpheed
pkgs.firebird
pkgs.MPlayer
];
# Create a user environment.