2009-04-09 15:05:10 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, python, gstreamer
|
2010-10-11 00:34:48 +02:00
|
|
|
, xlibs, alsaLib, cdparanoia, libogg
|
2009-04-09 15:05:10 +02:00
|
|
|
, libtheora, libvorbis, freetype, pango
|
2010-10-11 00:34:48 +02:00
|
|
|
, liboil, glib
|
|
|
|
, # Whether to build no plugins that have external dependencies
|
|
|
|
# (except the ALSA plugin).
|
|
|
|
minimalDeps ? false
|
|
|
|
}:
|
2008-11-19 22:46:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-09-01 10:36:24 +02:00
|
|
|
name = "gst-plugins-base-0.10.30";
|
2008-11-19 22:46:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-09-30 14:45:15 +02:00
|
|
|
urls = [
|
|
|
|
"${meta.homepage}/src/gst-plugins-base/${name}.tar.bz2"
|
|
|
|
"mirror://gentoo/distfiles/${name}.tar.bz2"
|
|
|
|
];
|
2010-09-01 10:36:24 +02:00
|
|
|
sha256 = "1mw5n1w7l0hgyzf75srdxlh3knfgrmddbs2ah1f97s8b710qd4v3";
|
2008-11-19 22:46:01 +01:00
|
|
|
};
|
|
|
|
|
2010-09-01 10:36:24 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@/bin/echo@echo@g' configure
|
|
|
|
sed -i -e 's/^ /\t/' docs/{libs,plugins}/Makefile.in
|
|
|
|
'';
|
2008-11-19 22:46:01 +01:00
|
|
|
|
2010-10-11 00:34:48 +02:00
|
|
|
# TODO : v4l, libvisual
|
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig glib alsaLib ]
|
|
|
|
++ stdenv.lib.optionals (!minimalDeps)
|
|
|
|
[ xlibs.xlibs xlibs.libXv cdparanoia libogg libtheora libvorbis
|
|
|
|
freetype pango liboil
|
|
|
|
];
|
2008-11-19 22:46:01 +01:00
|
|
|
|
2010-10-11 00:34:48 +02:00
|
|
|
propagatedBuildInputs = [ gstreamer ];
|
|
|
|
|
|
|
|
postInstall = "rm -rf $out/share/gtk-doc";
|
|
|
|
|
2008-11-19 22:46:01 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://gstreamer.freedesktop.org;
|
2009-04-09 15:05:10 +02:00
|
|
|
|
|
|
|
description = "Base plug-ins for GStreamer";
|
|
|
|
|
|
|
|
license = "LGPLv2+";
|
2008-11-19 22:46:01 +01:00
|
|
|
};
|
|
|
|
}
|