* MPlayer had an undeclared dependency on zlib; found using the
improved purity enforcement in the gcc/ld-wrappers. svn path=/nixpkgs/trunk/; revision=898
This commit is contained in:
parent
6d3efc40c1
commit
2b58d63ab6
@ -1,17 +1,22 @@
|
|||||||
buildinputs="$freetype $x11 $alsa"
|
buildInputs="$x11 $freetype $zlib $alsa"
|
||||||
. $stdenv/setup || exit 1
|
. $stdenv/setup
|
||||||
|
|
||||||
tar xvfj $src || exit 1
|
postUnpack() {
|
||||||
tar xvfj $fonts || exit 1
|
unpackFile $fonts
|
||||||
cd MPlayer-* || exit 1
|
}
|
||||||
./configure --prefix=$out --with-win32libdir=$win32codecs \
|
postUnpack=postUnpack
|
||||||
--with-x11incdir=$x11/include --with-x11libdir=$x11/lib \
|
|
||||||
|
configureFlags="\
|
||||||
|
--with-win32libdir=$win32codecs \
|
||||||
--with-reallibdir=$win32codecs \
|
--with-reallibdir=$win32codecs \
|
||||||
--disable-sdl --disable-esd --disable-xanim --disable-cdparanoia --disable-directfb \
|
--disable-sdl --disable-esd --disable-xanim --disable-cdparanoia --disable-directfb \
|
||||||
--disable-lirc --disable-svga --disable-libdv \
|
--disable-lirc --disable-svga --disable-libdv \
|
||||||
--disable-vorbis --disable-png --disable-jpeg --disable-gif \
|
--disable-vorbis --disable-png --disable-jpeg --disable-gif \
|
||||||
--enable-runtime-cpudetection \
|
--enable-runtime-cpudetection"
|
||||||
|| exit 1
|
|
||||||
make || exit 1
|
postInstall() {
|
||||||
make install || exit 1
|
cp -p ../font-arial-iso-8859-1/font-arial-18-iso-8859-1/* $out/share/mplayer/font
|
||||||
cp -p ../font-arial-iso-8859-1/font-arial-18-iso-8859-1/* $out/share/mplayer/font || exit 1
|
}
|
||||||
|
postInstall=postInstall
|
||||||
|
|
||||||
|
genericBuild
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ alsaSupport ? false
|
{ alsaSupport ? false
|
||||||
, stdenv, fetchurl, x11, freetype, alsa ? null}:
|
, stdenv, fetchurl, x11, freetype, zlib, alsa ? null}:
|
||||||
|
|
||||||
assert x11 != null && freetype != null;
|
assert x11 != null && freetype != null;
|
||||||
assert alsaSupport -> alsa != null;
|
assert alsaSupport -> alsa != null;
|
||||||
@ -17,12 +17,10 @@ stdenv.mkDerivation {
|
|||||||
md5 = "1ecd31d17b51f16332b1fcc7da36b312";
|
md5 = "1ecd31d17b51f16332b1fcc7da36b312";
|
||||||
};
|
};
|
||||||
|
|
||||||
alsaSupport = alsaSupport;
|
|
||||||
|
|
||||||
x11 = x11;
|
|
||||||
freetype = freetype;
|
|
||||||
alsa = if alsaSupport then alsa else null;
|
|
||||||
win32codecs = (import ./win32codecs) {
|
win32codecs = (import ./win32codecs) {
|
||||||
inherit stdenv fetchurl;
|
inherit stdenv fetchurl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
alsa = if alsaSupport then alsa else null;
|
||||||
|
inherit alsaSupport x11 freetype zlib;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
. $stdenv/setup || exit 1
|
. $stdenv/setup
|
||||||
|
|
||||||
mkdir $out || exit 1
|
mkdir $out
|
||||||
cd $out || exit 1
|
cd $out
|
||||||
tar xvfj $src || exit 1
|
tar xvfj $src
|
||||||
mv extralite/* . || exit 1
|
mv extralite/* .
|
||||||
rmdir extralite || exit 1
|
rmdir extralite
|
||||||
|
@ -696,7 +696,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
MPlayer = (import ../applications/video/MPlayer) {
|
MPlayer = (import ../applications/video/MPlayer) {
|
||||||
inherit fetchurl stdenv freetype x11;
|
inherit fetchurl stdenv freetype x11 zlib;
|
||||||
alsaSupport = true;
|
alsaSupport = true;
|
||||||
alsa = alsaLib;
|
alsa = alsaLib;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user