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