[92107] trunk/dports/multimedia/mplayer-devel/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Wed Apr 18 15:44:08 PDT 2012


Revision: 92107
          https://trac.macports.org/changeset/92107
Author:   jeremyhu at macports.org
Date:     2012-04-18 15:44:07 -0700 (Wed, 18 Apr 2012)
Log Message:
-----------
mplayer-devel: Use apple-gcc-4.2 on Tiger and Leopard since their gcc-4.0 and gcc-4.2 fail

Modified Paths:
--------------
    trunk/dports/multimedia/mplayer-devel/Portfile

Modified: trunk/dports/multimedia/mplayer-devel/Portfile
===================================================================
--- trunk/dports/multimedia/mplayer-devel/Portfile	2012-04-18 20:49:43 UTC (rev 92106)
+++ trunk/dports/multimedia/mplayer-devel/Portfile	2012-04-18 22:44:07 UTC (rev 92107)
@@ -271,14 +271,20 @@
     configure.args-append   --enable-debug=gdb3 --disable-altivec
 }
 
+platform darwin {
+    # gcc-4.0 and older gcc-4.2 fail to build cpudetect.c properly
+    if {(${configure.compiler} == "gcc-4.0" || ${configure.compiler} == "gcc-4.2") && [vercmp ${xcodeversion} 3.2] < 0} {
+        depends_build-append    port:apple-gcc42 port:ld64
+        depends_skip_archcheck-append apple-gcc42 ld64
+
+        configure.compiler apple-gcc-4.2
+    }
+}
+
 platform darwin 8 {
-    # Tiger's host ld is ancient (cctools based) and won't properly link this project
-    # Use apple-gcc42 with our ld64 to get it to link
-    depends_build-append    port:apple-gcc42 port:ld64 port:gmake
-    depends_skip_archcheck-append apple-gcc42 ld64 gmake
+    depends_build-append port:gmake
+    depends_skip_archcheck-append gmake
 
-    configure.compiler apple-gcc-4.2
-
     build.cmd               ${prefix}/bin/gmake
     destroot.cmd            ${prefix}/bin/gmake
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120418/025e7cfa/attachment.html>


More information about the macports-changes mailing list