[104930] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Fri Apr 5 03:34:02 PDT 2013


Revision: 104930
          https://trac.macports.org/changeset/104930
Author:   ryandesign at macports.org
Date:     2013-04-05 03:34:02 -0700 (Fri, 05 Apr 2013)
Log Message:
-----------
glib2, glib2-devel: add compiler.fallback-append apple-gcc-4.2 for Tiger (#38619)

Modified Paths:
--------------
    trunk/dports/devel/glib2/Portfile
    trunk/dports/devel/glib2-devel/Portfile

Modified: trunk/dports/devel/glib2/Portfile
===================================================================
--- trunk/dports/devel/glib2/Portfile	2013-04-05 10:16:26 UTC (rev 104929)
+++ trunk/dports/devel/glib2/Portfile	2013-04-05 10:34:02 UTC (rev 104930)
@@ -61,6 +61,21 @@
 # https://bugzilla.gnome.org/show_bug.cgi?id=697017
 compiler.blacklist-append   gcc-3.3 gcc-4.0 apple-gcc-4.0
 
+# TODO: Remove this block once 2.2 is released
+compiler.fallback-append apple-gcc-4.2
+if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
+    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
+
+    # base 2.1.x ignores the argument and just use ${configure.compiler}
+    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
+        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
+    }
+
+    if {[string match macports-gcc* ${configure.compiler}]} {
+        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
+    }
+}
+
 # -lresolv is needed at least on Tiger PPC.
 configure.ldflags-append    -lresolv \
                             -bind_at_load

Modified: trunk/dports/devel/glib2-devel/Portfile
===================================================================
--- trunk/dports/devel/glib2-devel/Portfile	2013-04-05 10:16:26 UTC (rev 104929)
+++ trunk/dports/devel/glib2-devel/Portfile	2013-04-05 10:34:02 UTC (rev 104930)
@@ -61,6 +61,21 @@
 # https://bugzilla.gnome.org/show_bug.cgi?id=697017
 compiler.blacklist-append   gcc-3.3 gcc-4.0 apple-gcc-4.0
 
+# TODO: Remove this block once 2.2 is released
+compiler.fallback-append apple-gcc-4.2
+if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
+    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
+
+    # base 2.1.x ignores the argument and just use ${configure.compiler}
+    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
+        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
+    }
+
+    if {[string match macports-gcc* ${configure.compiler}]} {
+        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
+    }
+}
+
 # -lresolv is needed at least on Tiger PPC.
 configure.ldflags-append    -lresolv \
                             -bind_at_load
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130405/76fdb471/attachment-0001.html>


More information about the macports-changes mailing list