[117964] trunk/dports/multimedia/mlt

macsforever2000 at macports.org macsforever2000 at macports.org
Mon Mar 17 13:13:53 PDT 2014


Revision: 117964
          https://trac.macports.org/changeset/117964
Author:   macsforever2000 at macports.org
Date:     2014-03-17 13:13:52 -0700 (Mon, 17 Mar 2014)
Log Message:
-----------
mlt: clang build fix. (#42869)

Modified Paths:
--------------
    trunk/dports/multimedia/mlt/Portfile

Added Paths:
-----------
    trunk/dports/multimedia/mlt/files/patch-configure-clang.diff

Modified: trunk/dports/multimedia/mlt/Portfile
===================================================================
--- trunk/dports/multimedia/mlt/Portfile	2014-03-17 20:10:16 UTC (rev 117963)
+++ trunk/dports/multimedia/mlt/Portfile	2014-03-17 20:13:52 UTC (rev 117964)
@@ -7,7 +7,7 @@
 name                mlt
 epoch               3
 version             0.9.0
-revision            3
+revision            4
 categories          multimedia
 maintainers         dennedy.org:dan
 license             GPL-2+
@@ -61,7 +61,8 @@
 
 platform darwin {
     patch.pre_args  -p1
-    patchfiles      patch-src-modules-qimage-configure.diff
+    patchfiles      patch-src-modules-qimage-configure.diff \
+                    patch-configure-clang.diff
 }
 
 configure.cflags-append     "-I${prefix}/include"

Added: trunk/dports/multimedia/mlt/files/patch-configure-clang.diff
===================================================================
--- trunk/dports/multimedia/mlt/files/patch-configure-clang.diff	                        (rev 0)
+++ trunk/dports/multimedia/mlt/files/patch-configure-clang.diff	2014-03-17 20:13:52 UTC (rev 117964)
@@ -0,0 +1,22 @@
+diff --git a/configure b/configure
+index eb20880..7f230ce 100755
+--- a/configure
++++ b/configure
+@@ -81,10 +81,13 @@ build_config()
+ 		if [ "$optimisations" = "true" ]
+ 		then
+ 			echo "OPTIMISATIONS=-O2 -pipe"
+-			# Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash.
+-			echo "OPTIMISATIONS+=-fno-tree-dominator-opts"
+-			# Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash.
+-			echo "OPTIMISATIONS+=-fno-tree-pre"
++			"$CC" --version | grep gcc >/dev/null
++			if [ "$?" = "0" ]; then
++				# Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash.
++				echo "OPTIMISATIONS+=-fno-tree-dominator-opts"
++				# Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash.
++				echo "OPTIMISATIONS+=-fno-tree-pre"
++			fi
+ 		fi
+ 
+ 		echo "CFLAGS+=-Wall -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(SSE2_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140317/dec65342/attachment.html>


More information about the macports-changes mailing list