3
0
Fork 0
forked from mirrors/nixpkgs

gstreamer 0.x: fix for Darwin

This commit is contained in:
Spencer Whitt 2015-04-08 22:30:42 -04:00
parent a2616e0370
commit 4318768a10
2 changed files with 19 additions and 0 deletions

View file

@ -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>

View file

@ -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 = ''