3
0
Fork 0
forked from mirrors/nixpkgs

* vlc and required packages. Finally a good DVD player :-)

svn path=/nixpkgs/trunk/; revision=574
This commit is contained in:
Eelco Dolstra 2003-12-03 21:58:16 +00:00
parent 1fde9ff92d
commit 57fd5644d2
17 changed files with 264 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#! /bin/sh
buildinputs="$x11 $wxGTK $libdvdcss $libdvdread $libdvdplay $mpeg2dec $a52dec $libmad $alsa"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd vlc-* || exit 1
./configure --prefix=$out \
--disable-ffmpeg \
--enable-alsa \
|| exit 1
make || exit 1
make install || exit 1

View file

@ -0,0 +1,29 @@
{ stdenv, fetchurl, x11, wxGTK, libdvdcss, libdvdplay
, mpeg2dec, a52dec, libmad, alsa}:
assert !isNull x11 && !isNull wxGTK && !isNull libdvdcss
&& !isNull libdvdplay && !isNull mpeg2dec && !isNull a52dec
&& !isNull libmad && !isNull alsa;
assert libdvdplay.libdvdread.libdvdcss == libdvdcss;
derivation {
name = "vlc-0.6.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.videolan.org/pub/videolan/vlc/0.6.2/vlc-0.6.2.tar.gz;
md5 = "619a45ca360d4a7bf935cb5ffd69989d";
};
stdenv = stdenv;
x11 = x11;
wxGTK = wxGTK;
libdvdcss = libdvdcss;
libdvdplay = libdvdplay;
libdvdread = libdvdplay.libdvdread;
mpeg2dec = mpeg2dec;
a52dec = a52dec;
libmad = libmad;
alsa = alsa;
}

View file

@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd a52dec-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View file

@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "a52dec-0.7.4";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz;
md5 = "caa9f5bc44232dc8aeea773fea56be80";
};
stdenv = stdenv;
}

View file

@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd libdvdcss-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View file

@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "libdvdcss-1.2.8";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.videolan.org/pub/videolan/vlc/0.6.2/contrib/libdvdcss-1.2.8.tar.gz;
md5 = "e35e4240b6ca0b66a0218065dffe6adb";
};
stdenv = stdenv;
}

View file

@ -0,0 +1,11 @@
#! /bin/sh
buildinputs="$libdvdread"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd libdvdplay-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View file

@ -0,0 +1,15 @@
{stdenv, fetchurl, libdvdread}:
assert !isNull libdvdread;
derivation {
name = "libdvdplay-1.0.1";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.videolan.org/pub/libdvdplay/1.0.1/libdvdplay-1.0.1.tar.bz2;
md5 = "602bca4ef78d79aa87e5e8920d958a78";
};
stdenv = stdenv;
libdvdread = libdvdread;
}

View file

@ -0,0 +1,11 @@
#! /bin/sh
buildinputs="$libdvdcss"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd libdvdread-* || exit 1
./configure --prefix=$out --with-libdvdcss="$libdvdcss" || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View file

@ -0,0 +1,15 @@
{stdenv, fetchurl, libdvdcss}:
assert !isNull libdvdcss;
derivation {
name = "libdvdread-20030812";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.videolan.org/pub/videolan/vlc/0.6.2/contrib/libdvdread-20030812.tar.bz2;
md5 = "9d58beac7c2dfb98d00f4ed0ea3d7274";
};
stdenv = stdenv;
libdvdcss = libdvdcss;
}

View file

@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd libmad-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View file

@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "libmad-0.15.0b";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/mad/libmad-0.15.0b.tar.gz;
md5 = "2e4487cdf922a6da2546bad74f643205";
};
stdenv = stdenv;
}

View file

@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd mpeg2dec-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View file

@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "mpeg2dec-20030612";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.videolan.org/pub/videolan/vlc/0.6.2/contrib/mpeg2dec-20030612.tar.bz2;
md5 = "17b880eb8766a2e46834d2274882d284";
};
stdenv = stdenv;
}

View file

@ -0,0 +1,12 @@
#! /bin/sh
buildinputs="$pkgconfig $gtk $libtiff $libjpeg $libpng $zlib"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd wxGTK-* || exit 1
./configure --prefix=$out --enable-gtk2 \
--disable-compat22 \
|| exit 1
make || exit 1
make install || exit 1

View file

@ -0,0 +1,26 @@
{stdenv, fetchurl, pkgconfig, gtk}:
assert !isNull pkgconfig && !isNull gtk;
assert !isNull gtk.libtiff;
assert !isNull gtk.libjpeg;
assert !isNull gtk.libpng;
assert !isNull gtk.libpng.zlib;
derivation {
name = "wxGTK-2.4.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.4.2.tar.bz2;
md5 = "cdadfe82fc93f8a65a2ae18a95b0b0e3";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
gtk = gtk;
libtiff = gtk.libtiff;
libjpeg = gtk.libjpeg;
libpng = gtk.libpng;
zlib = gtk.libpng.zlib;
}

View file

@ -315,6 +315,13 @@
libpng = libpng;
};
wxGTK = (import ../development/libraries/wxGTK) {
fetchurl = fetchurl;
stdenv = stdenv;
pkgconfig = pkgconfig;
gtk = gtk;
};
gnet = (import ../development/libraries/gnet) {
fetchurl = fetchurl;
stdenv = stdenv;
@ -331,6 +338,38 @@
yacc = bison;
};
libdvdcss = (import ../development/libraries/libdvdcss) {
fetchurl = fetchurl;
stdenv = stdenv;
};
libdvdread = (import ../development/libraries/libdvdread) {
fetchurl = fetchurl;
stdenv = stdenv;
libdvdcss = libdvdcss;
};
libdvdplay = (import ../development/libraries/libdvdplay) {
fetchurl = fetchurl;
stdenv = stdenv;
libdvdread = libdvdread;
};
mpeg2dec = (import ../development/libraries/mpeg2dec) {
fetchurl = fetchurl;
stdenv = stdenv;
};
a52dec = (import ../development/libraries/a52dec) {
fetchurl = fetchurl;
stdenv = stdenv;
};
libmad = (import ../development/libraries/libmad) {
fetchurl = fetchurl;
stdenv = stdenv;
};
### SERVERS
@ -444,6 +483,19 @@
x11 = xfree86;
};
vlc = (import ../applications/video/vlc) {
fetchurl = fetchurl;
stdenv = stdenv;
x11 = xfree86;
wxGTK = wxGTK;
libdvdcss = libdvdcss;
libdvdplay = libdvdplay;
mpeg2dec = mpeg2dec;
a52dec = a52dec;
libmad = libmad;
alsa = alsaLib;
};
gqview = (import ../applications/graphics/gqview) {
fetchurl = fetchurl;
stdenv = stdenv;