gst-plugins-base: fix build on darwin

* add libintl
This commit is contained in:
Jason "Don" O'Conal 2013-07-14 08:06:01 +10:00
parent e193a4f898
commit 291e0a111a

View File

@ -1,5 +1,6 @@
{ fetchurl, stdenv, pkgconfig, python, gstreamer, xlibs, alsaLib, cdparanoia { fetchurl, stdenv, pkgconfig, python, gstreamer, xlibs, alsaLib, cdparanoia
, libogg, libtheora, libvorbis, freetype, pango, liboil, glib, cairo , libogg, libtheora, libvorbis, freetype, pango, liboil, glib, cairo
, libintlOrEmpty
, # Whether to build no plugins that have external dependencies , # Whether to build no plugins that have external dependencies
# (except the ALSA plugin). # (except the ALSA plugin).
minimalDeps ? false minimalDeps ? false
@ -30,7 +31,10 @@ stdenv.mkDerivation rec {
[ xlibs.xlibs xlibs.libXv libogg libtheora libvorbis freetype pango [ xlibs.xlibs xlibs.libXv libogg libtheora libvorbis freetype pango
liboil ] liboil ]
# can't build cdparanoia on darwin # can't build cdparanoia on darwin
++ stdenv.lib.optional (!minimalDeps && !stdenv.isDarwin) cdparanoia; ++ stdenv.lib.optional (!minimalDeps && !stdenv.isDarwin) cdparanoia
++ libintlOrEmpty;
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
propagatedBuildInputs = [ gstreamer ]; propagatedBuildInputs = [ gstreamer ];