gst-plugins-base 1.x: fix Darwin build
This commit is contained in:
parent
f752a8c419
commit
a9644c2ddd
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection
|
{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection
|
||||||
, orc, alsaLib, libXv, pango, libtheora
|
, orc, alsaLib, libXv, pango, libtheora
|
||||||
, cdparanoia, libvisual
|
, cdparanoia, libvisual, libintlOrEmpty
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Base plugins and helper libraries";
|
description = "Base plugins and helper libraries";
|
||||||
homepage = "http://gstreamer.freedesktop.org";
|
homepage = "http://gstreamer.freedesktop.org";
|
||||||
license = stdenv.lib.licenses.lgpl2Plus;
|
license = stdenv.lib.licenses.lgpl2Plus;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
maintainers = with stdenv.lib.maintainers; [ iyzsong ];
|
maintainers = with stdenv.lib.maintainers; [ iyzsong ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -24,12 +24,23 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
orc alsaLib libXv pango libtheora
|
orc libXv pango libtheora cdparanoia
|
||||||
cdparanoia libvisual
|
]
|
||||||
];
|
++ libintlOrEmpty
|
||||||
|
++ stdenv.lib.optional stdenv.isLinux alsaLib
|
||||||
|
++ stdenv.lib.optional (!stdenv.isDarwin) libvisual;
|
||||||
|
|
||||||
propagatedBuildInputs = [ gstreamer ];
|
propagatedBuildInputs = [ gstreamer ];
|
||||||
|
|
||||||
|
configureFlags = if stdenv.isDarwin then [
|
||||||
|
# Does not currently build on Darwin
|
||||||
|
"--disable-libvisual"
|
||||||
|
# Undefined symbols _cdda_identify and _cdda_identify_scsi in cdparanoia
|
||||||
|
"--disable-cdparanoia"
|
||||||
|
] else null;
|
||||||
|
|
||||||
|
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user