forked from mirrors/nixpkgs
gstreamer 0.x: fix for Darwin
This commit is contained in:
parent
a2616e0370
commit
4318768a10
|
@ -0,0 +1,14 @@
|
||||||
|
diff --git a/gst/gstdatetime.c b/gst/gstdatetime.c
|
||||||
|
index 60f709f..cdc7e75 100644
|
||||||
|
--- a/gst/gstdatetime.c
|
||||||
|
+++ b/gst/gstdatetime.c
|
||||||
|
@@ -21,8 +21,8 @@
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include "glib-compat-private.h"
|
||||||
|
#include "gst_private.h"
|
||||||
|
+#include "glib-compat-private.h"
|
||||||
|
#include "gstdatetime.h"
|
||||||
|
#include <glib.h>
|
||||||
|
#include <math.h>
|
|
@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i -e 's/^ /\t/' docs/gst/Makefile.in docs/libs/Makefile.in docs/plugins/Makefile.in
|
sed -i -e 's/^ /\t/' docs/gst/Makefile.in docs/libs/Makefile.in docs/plugins/Makefile.in
|
||||||
|
''
|
||||||
|
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
# Applying this patch manually to avoid a rebuild on Linux. Feel free to refactor later
|
||||||
|
# See https://trac.macports.org/ticket/40783 for explanation of patch
|
||||||
|
patch -p1 < ${./darwin.patch}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
|
|
Loading…
Reference in a new issue