[102800] trunk/dports/databases

ryandesign at macports.org ryandesign at macports.org
Fri Feb 8 08:34:56 PST 2013


Revision: 102800
          https://trac.macports.org/changeset/102800
Author:   ryandesign at macports.org
Date:     2013-02-08 08:34:56 -0800 (Fri, 08 Feb 2013)
Log Message:
-----------
mysql5, mysql51: add dependency on llvm-gcc42 port if needed (#37980)

Modified Paths:
--------------
    trunk/dports/databases/mysql5/Portfile
    trunk/dports/databases/mysql51/Portfile

Modified: trunk/dports/databases/mysql5/Portfile
===================================================================
--- trunk/dports/databases/mysql5/Portfile	2013-02-08 15:39:49 UTC (rev 102799)
+++ trunk/dports/databases/mysql5/Portfile	2013-02-08 16:34:56 UTC (rev 102800)
@@ -113,6 +113,20 @@
     # This is a bug in mysql's build system, fixed in 5.5
     compiler.blacklist-append clang
     
+    # TODO: base should do this: http://trac.macports.org/ticket/32542
+    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 uses ${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})
+        }
+    }
+    
     post-build {
         if {[variant_isset universal]} {
             set dirs {}

Modified: trunk/dports/databases/mysql51/Portfile
===================================================================
--- trunk/dports/databases/mysql51/Portfile	2013-02-08 15:39:49 UTC (rev 102799)
+++ trunk/dports/databases/mysql51/Portfile	2013-02-08 16:34:56 UTC (rev 102800)
@@ -110,6 +110,20 @@
     # This is a bug in mysql's build system, fixed in 5.5
     compiler.blacklist-append clang
     
+    # TODO: base should do this: http://trac.macports.org/ticket/32542
+    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 uses ${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})
+        }
+    }
+    
     post-build {
         if {[variant_isset universal]} {
             set dirs {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130208/2f719b7c/attachment-0001.html>


More information about the macports-changes mailing list