2017-02-26 21:25:29 +01:00
|
|
|
{ fetchurl, stdenv, lib, pkgconfig, gst-plugins-base, aalib, cairo
|
2013-12-14 09:15:54 +01:00
|
|
|
, flac, libjpeg, zlib, speex, libpng, libdv, libcaca, libvpx
|
2015-05-27 21:42:15 +02:00
|
|
|
, libiec61883, libavc1394, taglib, libpulseaudio, gdk_pixbuf, orc
|
2018-03-14 20:15:06 +01:00
|
|
|
, glib, gstreamer, bzip2, libsoup, libshout, ncurses, libintl
|
2014-10-23 01:10:17 +02:00
|
|
|
, # Whether to build no plugins that have external dependencies
|
|
|
|
# (except the PulseAudio plugin).
|
|
|
|
minimalDeps ? false
|
2009-08-03 06:55:30 +02:00
|
|
|
}:
|
2008-02-22 04:06:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-28 17:43:05 +01:00
|
|
|
name = "gst-plugins-good-0.10.31";
|
2008-02-22 04:06:12 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-09-30 14:45:15 +02:00
|
|
|
urls = [
|
|
|
|
"${meta.homepage}/src/gst-plugins-good/${name}.tar.bz2"
|
|
|
|
"mirror://gentoo/distfiles/${name}.tar.bz2"
|
|
|
|
];
|
2013-01-28 17:43:05 +01:00
|
|
|
sha256 = "1ijswgcrdp243mfsyza31fpzq6plz40p4b83vkr2x4x7807889vy";
|
2008-02-22 04:06:12 +01:00
|
|
|
};
|
|
|
|
|
2014-10-09 12:25:27 +02:00
|
|
|
patches = [ ./v4l.patch ./linux-headers-3.9.patch ];
|
2013-01-28 17:43:05 +01:00
|
|
|
|
2016-08-31 14:34:53 +02:00
|
|
|
configureFlags = [ "--enable-experimental" "--disable-oss" ];
|
2008-02-22 04:06:12 +01:00
|
|
|
|
2011-07-25 22:10:13 +02:00
|
|
|
buildInputs =
|
2018-03-14 20:15:06 +01:00
|
|
|
[ pkgconfig glib gstreamer gst-plugins-base libintl ]
|
2016-10-02 02:06:03 +02:00
|
|
|
++ lib.optional stdenv.isLinux libpulseaudio
|
2016-08-31 14:34:53 +02:00
|
|
|
++ lib.optionals (!minimalDeps)
|
2014-10-23 01:10:17 +02:00
|
|
|
[ aalib libcaca cairo libdv flac libjpeg libpng speex
|
2015-12-15 03:10:07 +01:00
|
|
|
taglib bzip2 libvpx gdk_pixbuf orc libsoup libshout ];
|
2011-07-25 22:10:13 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2008-02-22 04:06:12 +01:00
|
|
|
|
2016-08-31 14:34:53 +02:00
|
|
|
postInstall = lib.optionalString (!minimalDeps) ''
|
2015-10-21 00:51:05 +02:00
|
|
|
substituteInPlace $out/lib/gstreamer-0.10/libgstaasink.la \
|
2016-02-01 18:16:50 +01:00
|
|
|
--replace "${ncurses.dev}/lib" "${ncurses.out}/lib"
|
2015-10-21 00:51:05 +02:00
|
|
|
'';
|
|
|
|
|
2008-02-22 04:06:12 +01:00
|
|
|
meta = {
|
2017-09-16 21:28:31 +02:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2009-04-09 16:55:13 +02:00
|
|
|
|
|
|
|
description = "`Good' plug-ins for GStreamer";
|
|
|
|
|
2009-12-15 10:37:42 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2015-04-09 05:10:45 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-12-15 10:37:42 +01:00
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2008-02-22 04:06:12 +01:00
|
|
|
};
|
|
|
|
}
|