[92699] trunk/dports/multimedia/VLC/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Thu May 3 23:24:30 PDT 2012


Revision: 92699
          https://trac.macports.org/changeset/92699
Author:   jeremyhu at macports.org
Date:     2012-05-03 23:24:29 -0700 (Thu, 03 May 2012)
Log Message:
-----------
VLC: Use clang to build VLC on Leopard.  Disable x86_64 on Leopard.

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

Modified: trunk/dports/multimedia/VLC/Portfile
===================================================================
--- trunk/dports/multimedia/VLC/Portfile	2012-05-04 06:12:15 UTC (rev 92698)
+++ trunk/dports/multimedia/VLC/Portfile	2012-05-04 06:24:29 UTC (rev 92699)
@@ -106,6 +106,22 @@
 # live555 and possibly others are not universal, so disabling for now
 universal_variant   no
 
+platform darwin i386 {
+    # Older gcc fail at register allocation
+    if {[string match "*gcc*" ${configure.compiler}] && ![string match "*llvm*" ${configure.compiler}]} {
+        configure.compiler clang
+        if {![file exists ${configure.cc}]} {
+            depends_build-append port:clang-3.0
+            depends_skip_archcheck-append clang-3.0
+
+            #configure.compiler macports-clang-3.0
+            configure.cc ${prefix}/bin/clang-mp-3.0
+            configure.objc ${prefix}/bin/clang-mp-3.0
+            configure.cxx ${prefix}/bin/clang++-mp-3.0
+        }
+    }
+}
+
 # Other
 configure.args-append \
     --with-contrib=${worksrcpath}/contrib \
@@ -330,6 +346,11 @@
         default_variants-append +qtkit
     }
 
+    if {${os.major} == 10} {
+        # FIXME: x86_64 segfaults on Leopard ... dunno why
+        supported_archs i386 ppc
+    }
+
     configure.args-delete \
         --disable-macosx-vout --disable-macosx-audio \
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120503/eb9ef21e/attachment.html>


More information about the macports-changes mailing list