Skip to content

Commit

Permalink
* Merge r990 into 0.5-stable.
Browse files Browse the repository at this point in the history
svn path=/nixpkgs/branches/0.5-stable/; revision=993
  • Loading branch information
edolstra committed May 3, 2004
2 parents d357f1a + d811b4c commit b9686c2
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 25 deletions.
2 changes: 1 addition & 1 deletion pkgs/VERSION
@@ -1 +1 @@
0.5
0.5.1
4 changes: 0 additions & 4 deletions pkgs/applications/video/MPlayer/builder.sh
@@ -1,4 +1,3 @@
buildInputs="$x11 $freetype $zlib $alsa"
. $stdenv/setup

postUnpack() {
Expand All @@ -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() {
Expand Down
18 changes: 11 additions & 7 deletions pkgs/applications/video/MPlayer/default.nix
@@ -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;
Expand All @@ -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)
];
}
14 changes: 9 additions & 5 deletions pkgs/applications/video/MPlayer/win32codecs/builder.sh
@@ -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
6 changes: 3 additions & 3 deletions pkgs/applications/video/MPlayer/win32codecs/default.nix
@@ -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";
};
}
5 changes: 4 additions & 1 deletion pkgs/applications/video/vlc/default.nix
@@ -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";
Expand All @@ -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";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/applications/video/zapping/builder.sh
@@ -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`"

Expand Down
9 changes: 5 additions & 4 deletions pkgs/applications/video/zapping/default.nix
@@ -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
Expand All @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/libraries/xlibs/default.nix
Expand Up @@ -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;
};
Expand Down
11 changes: 11 additions & 0 deletions pkgs/development/libraries/xlibs/libXv/default.nix
@@ -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];
}
3 changes: 3 additions & 0 deletions pkgs/system/all-packages-generic.nix
Expand Up @@ -571,6 +571,7 @@ rec {

MPlayer = (import ../applications/video/MPlayer) {
inherit fetchurl stdenv freetype x11 zlib;
inherit (xlibs) libXv;
alsaSupport = true;
alsa = alsaLib;
};
Expand All @@ -582,13 +583,15 @@ rec {
vlc = (import ../applications/video/vlc) {
inherit fetchurl stdenv wxGTK libdvdcss libdvdplay
mpeg2dec a52dec libmad x11;
inherit (xlibs) libXv;
alsa = alsaLib;
};

zapping = (import ../applications/video/zapping) {
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;
Expand Down

0 comments on commit b9686c2

Please sign in to comment.