gst-plugins-base: Switch to meson build system

This commit is contained in:
Bastian Köcher
2018-04-04 17:25:39 +02:00
parent 365640a6f3
commit edd17a0cab
2 changed files with 31 additions and 12 deletions
@@ -1,6 +1,7 @@
{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection
, orc, alsaLib, libXv, pango, libtheora
, cdparanoia, libvisual, libintlOrEmpty
{ stdenv, fetchurl, fetchpatch, pkgconfig, meson
, ninja, gettext, gobjectIntrospection, python
, gstreamer, orc, alsaLib, libXv, pango, libtheora
, wayland, cdparanoia, libvisual, libintlOrEmpty
}:
stdenv.mkDerivation rec {
@@ -21,11 +22,11 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
nativeBuildInputs = [
pkgconfig python gobjectIntrospection
pkgconfig python meson ninja gettext gobjectIntrospection
];
buildInputs = [
orc libXv pango libtheora cdparanoia
orc libXv pango libtheora cdparanoia wayland
]
++ libintlOrEmpty
++ stdenv.lib.optional stdenv.isLinux alsaLib
@@ -33,14 +34,17 @@ stdenv.mkDerivation rec {
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;
preConfigure = ''
patchShebangs .
'';
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
enableParallelBuilding = true;
patches = [
(fetchpatch {
url = "https://bug794856.bugzilla-attachments.gnome.org/attachment.cgi?id=370414";
sha256 = "07x43xis0sr0hfchf36ap0cibx0lkfpqyszb3r3w9dzz301fk04z";
})
./fix_pkgconfig_includedir.patch
];
}