* Added libXv (XVideo).
* Zapping/VLC/MPlayer: use libXv. * MPlayer: upgrade to 1.0pre4. * Zapping: add libXext to the rpath. I don't understand why this is necessary. Zapping doesn't itself link against libXext, though some of its dependencies do. (Maybe this is due to `--export-dynamic'?) svn path=/nixpkgs/trunk/; revision=990
This commit is contained in:
parent
d357f1a8ed
commit
d811b4c9d8
|
@ -1,4 +1,3 @@
|
|||
buildInputs="$x11 $freetype $zlib $alsa"
|
||||
. $stdenv/setup
|
||||
|
||||
postUnpack() {
|
||||
|
@ -9,9 +8,6 @@ postUnpack=postUnpack
|
|||
configureFlags="\
|
||||
--with-win32libdir=$win32codecs \
|
||||
--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"
|
||||
|
||||
postInstall() {
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
{ alsaSupport ? false
|
||||
, stdenv, fetchurl, x11, freetype, zlib, alsa ? null}:
|
||||
{ alsaSupport ? false, xvSupport ? true
|
||||
, stdenv, fetchurl, x11, libXv, freetype, zlib, alsa ? null}:
|
||||
|
||||
assert x11 != null && freetype != null;
|
||||
assert alsaSupport -> alsa != null;
|
||||
assert xvSupport -> libXv != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "MPlayer-1.0pre3";
|
||||
name = "MPlayer-1.0pre4";
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre3.tar.bz2;
|
||||
md5 = "998becb79417c6a14d15c07e85188b82";
|
||||
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre4.tar.bz2;
|
||||
md5 = "83ebac0f05b192516a41fca2350ca01a";
|
||||
};
|
||||
fonts = fetchurl {
|
||||
url = http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2;
|
||||
|
@ -21,6 +22,9 @@ stdenv.mkDerivation {
|
|||
inherit stdenv fetchurl;
|
||||
};
|
||||
|
||||
alsa = if alsaSupport then alsa else null;
|
||||
inherit alsaSupport x11 freetype zlib;
|
||||
buildInputs = [
|
||||
x11 libXv freetype zlib
|
||||
(if alsaSupport then alsa else null)
|
||||
(if xvSupport then libXv else null)
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
. $stdenv/setup
|
||||
|
||||
mkdir $out
|
||||
cd $out
|
||||
tar xvfj $src
|
||||
mv extralite/* .
|
||||
rmdir extralite
|
||||
buildPhase=true
|
||||
|
||||
installPhase() {
|
||||
mkdir $out
|
||||
cp -prv * $out
|
||||
}
|
||||
installPhase=installPhase
|
||||
|
||||
genericBuild
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{stdenv, fetchurl}: stdenv.mkDerivation {
|
||||
name = "win32codecs-1";
|
||||
name = "MPlayer-codecs-essential-20040427";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2;
|
||||
md5 = "4748ecae87f71e8bda9cb2e2a9bd30b4";
|
||||
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20040427.tar.bz2;
|
||||
md5 = "4ffc1682448aa870aec9d8efc1321a09";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{ stdenv, fetchurl, x11, wxGTK, libdvdcss, libdvdplay
|
||||
{ xvSupport ? true
|
||||
, stdenv, fetchurl, x11, libXv, wxGTK, libdvdcss, libdvdplay
|
||||
, mpeg2dec, a52dec, libmad, alsa}:
|
||||
|
||||
assert x11 != null && wxGTK != null && libdvdcss != null
|
||||
&& libdvdplay != null && mpeg2dec != null && a52dec != null
|
||||
&& libmad != null && alsa != null;
|
||||
assert libdvdplay.libdvdread.libdvdcss == libdvdcss;
|
||||
assert xvSupport -> libXv != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "vlc-0.7.1";
|
||||
|
@ -17,6 +19,7 @@ stdenv.mkDerivation {
|
|||
buildInputs = [
|
||||
x11 wxGTK libdvdcss libdvdplay libdvdplay.libdvdread
|
||||
mpeg2dec a52dec libmad alsa
|
||||
(if xvSupport then libXv else null)
|
||||
];
|
||||
|
||||
configureFlags = "--disable-ffmpeg --enable-alsa";
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
. $stdenv/setup
|
||||
|
||||
# !!! hack
|
||||
NIX_LDFLAGS="$NIX_LDFLAGS -rpath $libXext/lib"
|
||||
|
||||
# !!! hack - `make install' tries to setuid to root
|
||||
installFlags="ZSFB_OWNER=`id -u` ZSFB_GROUP=`id -g`"
|
||||
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
{ teletextSupport ? true
|
||||
, jpegSupport ? true
|
||||
, pngSupport ? true
|
||||
, stdenv, fetchurl, pkgconfig, perl, python, x11, libgnomeui
|
||||
# !!! libXext shouldn't be necessary (it's in x11); but the builder needs it.
|
||||
, stdenv, fetchurl, pkgconfig, perl, python, x11, libXv, libXext, libgnomeui
|
||||
, libglade, scrollkeeper, esound, gettext
|
||||
, zvbi ? null, libjpeg ? null, libpng ? null }:
|
||||
|
||||
assert pkgconfig != null && perl != null && python != null &&
|
||||
x11 != null && libgnomeui != null && libglade != null &&
|
||||
x11 != null && libXv != null && libgnomeui != null && libglade != null &&
|
||||
scrollkeeper != null && esound != null && gettext != null;
|
||||
|
||||
assert teletextSupport -> zvbi != null && zvbi.pngSupport
|
||||
|
@ -24,10 +25,10 @@ stdenv.mkDerivation {
|
|||
md5 = "cdedc0088c70f4520c37066ec05cb996";
|
||||
};
|
||||
|
||||
inherit teletextSupport jpegSupport pngSupport;
|
||||
inherit teletextSupport jpegSupport pngSupport libXext;
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig perl python x11 libgnomeui
|
||||
pkgconfig perl python x11 libXv libgnomeui
|
||||
libglade scrollkeeper esound gettext
|
||||
(if teletextSupport then zvbi else null)
|
||||
(if jpegSupport then libjpeg else null)
|
||||
|
|
|
@ -66,6 +66,10 @@ rec {
|
|||
inherit fetchurl stdenv pkgconfig xproto libX11 libXt libXmu libXpm;
|
||||
};
|
||||
|
||||
libXv = (import ./libXv) {
|
||||
inherit fetchurl stdenv pkgconfig libX11;
|
||||
};
|
||||
|
||||
xlibs = (import ./xlibs) {
|
||||
inherit stdenv libX11 libXt freetype fontconfig libXft libXext;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{stdenv, fetchurl, pkgconfig, libX11}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libXv-2.2.1";
|
||||
src = fetchurl {
|
||||
url = http://freedesktop.org/~xlibs/release/xlibs-1.0/libXv-2.2.1.tar.bz2;
|
||||
md5 = "89b8ca62a77c662a8a7ded89bcf0dd67";
|
||||
};
|
||||
buildInputs = [pkgconfig];
|
||||
propagatedBuildInputs = [libX11];
|
||||
}
|
|
@ -571,6 +571,7 @@ rec {
|
|||
|
||||
MPlayer = (import ../applications/video/MPlayer) {
|
||||
inherit fetchurl stdenv freetype x11 zlib;
|
||||
inherit (xlibs) libXv;
|
||||
alsaSupport = true;
|
||||
alsa = alsaLib;
|
||||
};
|
||||
|
@ -582,6 +583,7 @@ rec {
|
|||
vlc = (import ../applications/video/vlc) {
|
||||
inherit fetchurl stdenv wxGTK libdvdcss libdvdplay
|
||||
mpeg2dec a52dec libmad x11;
|
||||
inherit (xlibs) libXv;
|
||||
alsa = alsaLib;
|
||||
};
|
||||
|
||||
|
@ -589,6 +591,7 @@ rec {
|
|||
inherit fetchurl stdenv pkgconfig perl python
|
||||
scrollkeeper gettext zvbi libjpeg libpng x11;
|
||||
inherit (gnome) libgnomeui libglade esound;
|
||||
inherit (xlibs) libXv libXext;
|
||||
teletextSupport = true;
|
||||
jpegSupport = true;
|
||||
pngSupport = true;
|
||||
|
|
Loading…
Reference in New Issue