2015-09-15 02:26:18 -07:00
|
|
|
{ fetchurl, stdenv, pkgconfig, python, gstreamer, xorg, alsaLib, cdparanoia
|
2013-12-14 00:15:15 -08:00
|
|
|
, libogg, libtheora, libvorbis, freetype, pango, liboil, glib, cairo, orc
|
2013-07-13 15:06:01 -07:00
|
|
|
, libintlOrEmpty
|
2010-10-10 15:34:48 -07:00
|
|
|
, # Whether to build no plugins that have external dependencies
|
|
|
|
# (except the ALSA plugin).
|
|
|
|
minimalDeps ? false
|
|
|
|
}:
|
2008-11-19 13:46:01 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-07-15 21:02:24 -07:00
|
|
|
name = "gst-plugins-base-0.10.36";
|
2008-11-19 13:46:01 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-09-30 05:45:15 -07:00
|
|
|
urls = [
|
2012-07-15 21:02:24 -07:00
|
|
|
"${meta.homepage}/src/gst-plugins-base/${name}.tar.xz"
|
|
|
|
"mirror://gentoo/distfiles/${name}.tar.xz"
|
2009-09-30 05:45:15 -07:00
|
|
|
];
|
2012-07-15 21:02:24 -07:00
|
|
|
sha256 = "0jp6hjlra98cnkal4n6bdmr577q8mcyp3c08s3a02c4hjhw5rr0z";
|
2008-11-19 13:46:01 -08:00
|
|
|
};
|
|
|
|
|
2010-09-01 01:36:24 -07:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@/bin/echo@echo@g' configure
|
|
|
|
sed -i -e 's/^ /\t/' docs/{libs,plugins}/Makefile.in
|
2015-06-04 07:15:35 -07:00
|
|
|
|
|
|
|
patch -p1 < ${./gcc-4.9.patch}
|
2010-09-01 01:36:24 -07:00
|
|
|
'';
|
2008-11-19 13:46:01 -08:00
|
|
|
|
2010-10-10 15:34:48 -07:00
|
|
|
# TODO : v4l, libvisual
|
|
|
|
buildInputs =
|
2013-12-14 00:15:15 -08:00
|
|
|
[ pkgconfig glib cairo orc ]
|
2013-07-03 07:25:53 -07:00
|
|
|
# can't build alsaLib on darwin
|
|
|
|
++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib
|
2010-10-10 15:34:48 -07:00
|
|
|
++ stdenv.lib.optionals (!minimalDeps)
|
2015-09-15 02:26:18 -07:00
|
|
|
[ xorg.xlibsWrapper xorg.libXv libogg libtheora libvorbis freetype pango
|
2013-07-03 07:25:53 -07:00
|
|
|
liboil ]
|
|
|
|
# can't build cdparanoia on darwin
|
2013-07-13 15:06:01 -07:00
|
|
|
++ stdenv.lib.optional (!minimalDeps && !stdenv.isDarwin) cdparanoia
|
|
|
|
++ libintlOrEmpty;
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
2008-11-19 13:46:01 -08:00
|
|
|
|
2010-10-10 15:34:48 -07:00
|
|
|
propagatedBuildInputs = [ gstreamer ];
|
2013-12-14 00:15:15 -08:00
|
|
|
|
2010-10-10 15:34:48 -07:00
|
|
|
postInstall = "rm -rf $out/share/gtk-doc";
|
2013-12-14 00:15:15 -08:00
|
|
|
|
2013-07-03 07:25:53 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://gstreamer.freedesktop.org;
|
2009-04-09 06:05:10 -07:00
|
|
|
description = "Base plug-ins for GStreamer";
|
2013-07-04 09:13:20 -07:00
|
|
|
license = licenses.lgpl2Plus;
|
2013-07-03 07:25:53 -07:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
2008-11-19 13:46:01 -08:00
|
|
|
};
|
|
|
|
}
|