* Merge r990 into 0.5-stable.
svn path=/nixpkgs/branches/0.5-stable/; revision=993
This commit is contained in:
commit
b9686c27ed
|
@ -1 +1 @@
|
||||||
0.5
|
0.5.1
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
buildInputs="$x11 $freetype $zlib $alsa"
|
|
||||||
. $stdenv/setup
|
. $stdenv/setup
|
||||||
|
|
||||||
postUnpack() {
|
postUnpack() {
|
||||||
|
@ -9,9 +8,6 @@ postUnpack=postUnpack
|
||||||
configureFlags="\
|
configureFlags="\
|
||||||
--with-win32libdir=$win32codecs \
|
--with-win32libdir=$win32codecs \
|
||||||
--with-reallibdir=$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"
|
--enable-runtime-cpudetection"
|
||||||
|
|
||||||
postInstall() {
|
postInstall() {
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
{ alsaSupport ? false
|
{ alsaSupport ? false, xvSupport ? true
|
||||||
, stdenv, fetchurl, x11, freetype, zlib, alsa ? null}:
|
, stdenv, fetchurl, x11, libXv, freetype, zlib, alsa ? null}:
|
||||||
|
|
||||||
assert x11 != null && freetype != null;
|
assert x11 != null && freetype != null;
|
||||||
assert alsaSupport -> alsa != null;
|
assert alsaSupport -> alsa != null;
|
||||||
|
assert xvSupport -> libXv != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "MPlayer-1.0pre3";
|
name = "MPlayer-1.0pre4";
|
||||||
|
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre3.tar.bz2;
|
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre4.tar.bz2;
|
||||||
md5 = "998becb79417c6a14d15c07e85188b82";
|
md5 = "83ebac0f05b192516a41fca2350ca01a";
|
||||||
};
|
};
|
||||||
fonts = fetchurl {
|
fonts = fetchurl {
|
||||||
url = http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2;
|
url = http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2;
|
||||||
|
@ -21,6 +22,9 @@ stdenv.mkDerivation {
|
||||||
inherit stdenv fetchurl;
|
inherit stdenv fetchurl;
|
||||||
};
|
};
|
||||||
|
|
||||||
alsa = if alsaSupport then alsa else null;
|
buildInputs = [
|
||||||
inherit alsaSupport x11 freetype zlib;
|
x11 libXv freetype zlib
|
||||||
|
(if alsaSupport then alsa else null)
|
||||||
|
(if xvSupport then libXv else null)
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
. $stdenv/setup
|
. $stdenv/setup
|
||||||
|
|
||||||
mkdir $out
|
buildPhase=true
|
||||||
cd $out
|
|
||||||
tar xvfj $src
|
installPhase() {
|
||||||
mv extralite/* .
|
mkdir $out
|
||||||
rmdir extralite
|
cp -prv * $out
|
||||||
|
}
|
||||||
|
installPhase=installPhase
|
||||||
|
|
||||||
|
genericBuild
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{stdenv, fetchurl}: stdenv.mkDerivation {
|
{stdenv, fetchurl}: stdenv.mkDerivation {
|
||||||
name = "win32codecs-1";
|
name = "MPlayer-codecs-essential-20040427";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2;
|
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20040427.tar.bz2;
|
||||||
md5 = "4748ecae87f71e8bda9cb2e2a9bd30b4";
|
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}:
|
, mpeg2dec, a52dec, libmad, alsa}:
|
||||||
|
|
||||||
assert x11 != null && wxGTK != null && libdvdcss != null
|
assert x11 != null && wxGTK != null && libdvdcss != null
|
||||||
&& libdvdplay != null && mpeg2dec != null && a52dec != null
|
&& libdvdplay != null && mpeg2dec != null && a52dec != null
|
||||||
&& libmad != null && alsa != null;
|
&& libmad != null && alsa != null;
|
||||||
assert libdvdplay.libdvdread.libdvdcss == libdvdcss;
|
assert libdvdplay.libdvdread.libdvdcss == libdvdcss;
|
||||||
|
assert xvSupport -> libXv != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "vlc-0.7.1";
|
name = "vlc-0.7.1";
|
||||||
|
@ -17,6 +19,7 @@ stdenv.mkDerivation {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
x11 wxGTK libdvdcss libdvdplay libdvdplay.libdvdread
|
x11 wxGTK libdvdcss libdvdplay libdvdplay.libdvdread
|
||||||
mpeg2dec a52dec libmad alsa
|
mpeg2dec a52dec libmad alsa
|
||||||
|
(if xvSupport then libXv else null)
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = "--disable-ffmpeg --enable-alsa";
|
configureFlags = "--disable-ffmpeg --enable-alsa";
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
. $stdenv/setup
|
. $stdenv/setup
|
||||||
|
|
||||||
|
# !!! hack
|
||||||
|
NIX_LDFLAGS="$NIX_LDFLAGS -rpath $libXext/lib"
|
||||||
|
|
||||||
# !!! hack - `make install' tries to setuid to root
|
# !!! hack - `make install' tries to setuid to root
|
||||||
installFlags="ZSFB_OWNER=`id -u` ZSFB_GROUP=`id -g`"
|
installFlags="ZSFB_OWNER=`id -u` ZSFB_GROUP=`id -g`"
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
{ teletextSupport ? true
|
{ teletextSupport ? true
|
||||||
, jpegSupport ? true
|
, jpegSupport ? true
|
||||||
, pngSupport ? 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
|
, libglade, scrollkeeper, esound, gettext
|
||||||
, zvbi ? null, libjpeg ? null, libpng ? null }:
|
, zvbi ? null, libjpeg ? null, libpng ? null }:
|
||||||
|
|
||||||
assert pkgconfig != null && perl != null && python != 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;
|
scrollkeeper != null && esound != null && gettext != null;
|
||||||
|
|
||||||
assert teletextSupport -> zvbi != null && zvbi.pngSupport
|
assert teletextSupport -> zvbi != null && zvbi.pngSupport
|
||||||
|
@ -24,10 +25,10 @@ stdenv.mkDerivation {
|
||||||
md5 = "cdedc0088c70f4520c37066ec05cb996";
|
md5 = "cdedc0088c70f4520c37066ec05cb996";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit teletextSupport jpegSupport pngSupport;
|
inherit teletextSupport jpegSupport pngSupport libXext;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig perl python x11 libgnomeui
|
pkgconfig perl python x11 libXv libgnomeui
|
||||||
libglade scrollkeeper esound gettext
|
libglade scrollkeeper esound gettext
|
||||||
(if teletextSupport then zvbi else null)
|
(if teletextSupport then zvbi else null)
|
||||||
(if jpegSupport then libjpeg else null)
|
(if jpegSupport then libjpeg else null)
|
||||||
|
|
|
@ -66,6 +66,10 @@ rec {
|
||||||
inherit fetchurl stdenv pkgconfig xproto libX11 libXt libXmu libXpm;
|
inherit fetchurl stdenv pkgconfig xproto libX11 libXt libXmu libXpm;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
libXv = (import ./libXv) {
|
||||||
|
inherit fetchurl stdenv pkgconfig libX11;
|
||||||
|
};
|
||||||
|
|
||||||
xlibs = (import ./xlibs) {
|
xlibs = (import ./xlibs) {
|
||||||
inherit stdenv libX11 libXt freetype fontconfig libXft libXext;
|
inherit stdenv libX11 libXt freetype fontconfig libXft libXext;
|
||||||
};
|
};
|
||||||
|
|
11
pkgs/development/libraries/xlibs/libXv/default.nix
Normal file
11
pkgs/development/libraries/xlibs/libXv/default.nix
Normal file
|
@ -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) {
|
MPlayer = (import ../applications/video/MPlayer) {
|
||||||
inherit fetchurl stdenv freetype x11 zlib;
|
inherit fetchurl stdenv freetype x11 zlib;
|
||||||
|
inherit (xlibs) libXv;
|
||||||
alsaSupport = true;
|
alsaSupport = true;
|
||||||
alsa = alsaLib;
|
alsa = alsaLib;
|
||||||
};
|
};
|
||||||
|
@ -582,6 +583,7 @@ rec {
|
||||||
vlc = (import ../applications/video/vlc) {
|
vlc = (import ../applications/video/vlc) {
|
||||||
inherit fetchurl stdenv wxGTK libdvdcss libdvdplay
|
inherit fetchurl stdenv wxGTK libdvdcss libdvdplay
|
||||||
mpeg2dec a52dec libmad x11;
|
mpeg2dec a52dec libmad x11;
|
||||||
|
inherit (xlibs) libXv;
|
||||||
alsa = alsaLib;
|
alsa = alsaLib;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -589,6 +591,7 @@ rec {
|
||||||
inherit fetchurl stdenv pkgconfig perl python
|
inherit fetchurl stdenv pkgconfig perl python
|
||||||
scrollkeeper gettext zvbi libjpeg libpng x11;
|
scrollkeeper gettext zvbi libjpeg libpng x11;
|
||||||
inherit (gnome) libgnomeui libglade esound;
|
inherit (gnome) libgnomeui libglade esound;
|
||||||
|
inherit (xlibs) libXv libXext;
|
||||||
teletextSupport = true;
|
teletextSupport = true;
|
||||||
jpegSupport = true;
|
jpegSupport = true;
|
||||||
pngSupport = true;
|
pngSupport = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user