gst-plugins-base: fix build on darwin

* remove alsaLib and cdparanoia from build inputs
* add cairo to build inputs
This commit is contained in:
Jason "Don" O'Conal 2013-07-04 00:25:53 +10:00
parent a42133a102
commit 3e14bb6fdf

View file

@ -1,7 +1,5 @@
{ fetchurl, stdenv, pkgconfig, python, gstreamer
, xlibs, alsaLib, cdparanoia, libogg
, libtheora, libvorbis, freetype, pango
, liboil, glib
{ fetchurl, stdenv, pkgconfig, python, gstreamer, xlibs, alsaLib, cdparanoia
, libogg, libtheora, libvorbis, freetype, pango, liboil, glib, cairo
, # Whether to build no plugins that have external dependencies
# (except the ALSA plugin).
minimalDeps ? false
@ -25,22 +23,25 @@ stdenv.mkDerivation rec {
# TODO : v4l, libvisual
buildInputs =
[ pkgconfig glib alsaLib ]
[ pkgconfig glib cairo ]
# can't build alsaLib on darwin
++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib
++ stdenv.lib.optionals (!minimalDeps)
[ xlibs.xlibs xlibs.libXv cdparanoia libogg libtheora libvorbis
freetype pango liboil
];
[ xlibs.xlibs xlibs.libXv libogg libtheora libvorbis freetype pango
liboil ]
# can't build cdparanoia on darwin
++ stdenv.lib.optional (!minimalDeps && !stdenv.isDarwin) cdparanoia;
propagatedBuildInputs = [ gstreamer ];
postInstall = "rm -rf $out/share/gtk-doc";
meta = {
homepage = http://gstreamer.freedesktop.org;
meta = with stdenv.lib; {
homepage = http://gstreamer.freedesktop.org;
description = "Base plug-ins for GStreamer";
license = "LGPLv2+";
license = licences.lgpl2Plus;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}