[92674] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Thu May 3 11:51:26 PDT 2012


Revision: 92674
          https://trac.macports.org/changeset/92674
Author:   jeremyhu at macports.org
Date:     2012-05-03 11:51:26 -0700 (Thu, 03 May 2012)
Log Message:
-----------
{clang,dragonegg,llvm}-*: Fix ppc build (#33987)

Modified Paths:
--------------
    trunk/dports/lang/clang-2.9/Portfile
    trunk/dports/lang/clang-3.0/Portfile
    trunk/dports/lang/clang-3.1/Portfile
    trunk/dports/lang/clang-3.2/Portfile
    trunk/dports/lang/dragonegg-3.1/Portfile
    trunk/dports/lang/dragonegg-3.2/Portfile
    trunk/dports/lang/llvm-2.9/Portfile
    trunk/dports/lang/llvm-3.0/Portfile
    trunk/dports/lang/llvm-3.1/Portfile
    trunk/dports/lang/llvm-3.2/Portfile

Modified: trunk/dports/lang/clang-2.9/Portfile
===================================================================
--- trunk/dports/lang/clang-2.9/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/clang-2.9/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -82,7 +82,9 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
@@ -115,9 +117,18 @@
 
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
+
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
 }
 
 platform darwin 8 {

Modified: trunk/dports/lang/clang-3.0/Portfile
===================================================================
--- trunk/dports/lang/clang-3.0/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/clang-3.0/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -82,7 +82,9 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
@@ -115,9 +117,18 @@
 
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
+
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
 }
 
 platform darwin 8 {

Modified: trunk/dports/lang/clang-3.1/Portfile
===================================================================
--- trunk/dports/lang/clang-3.1/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/clang-3.1/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -75,14 +75,13 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
 
-# linking fails for ppc
-supported_archs i386 x86_64
-
 variant universal {
     build.env-append \
         UNIVERSAL=1 \
@@ -111,9 +110,18 @@
 
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
+
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
 }
 
 platform darwin 8 {

Modified: trunk/dports/lang/clang-3.2/Portfile
===================================================================
--- trunk/dports/lang/clang-3.2/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/clang-3.2/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -75,14 +75,13 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
 
-# linking fails for ppc
-supported_archs i386 x86_64
-
 variant universal {
     build.env-append \
         UNIVERSAL=1 \
@@ -111,9 +110,18 @@
 
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
+
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
 }
 
 platform darwin 8 {

Modified: trunk/dports/lang/dragonegg-3.1/Portfile
===================================================================
--- trunk/dports/lang/dragonegg-3.1/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/dragonegg-3.1/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -67,9 +67,6 @@
     }
 }
 
-# linking fails for ppc
-supported_archs i386 x86_64
-
 variant universal {
     post-patch {
         reinplace "/-MD -MP/d" ${worksrcpath}/Makefile

Modified: trunk/dports/lang/dragonegg-3.2/Portfile
===================================================================
--- trunk/dports/lang/dragonegg-3.2/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/dragonegg-3.2/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -67,9 +67,6 @@
     }
 }
 
-# linking fails for ppc
-supported_archs i386 x86_64
-
 variant universal {
     post-patch {
         reinplace "/-MD -MP/d" ${worksrcpath}/Makefile

Modified: trunk/dports/lang/llvm-2.9/Portfile
===================================================================
--- trunk/dports/lang/llvm-2.9/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/llvm-2.9/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -65,7 +65,9 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
@@ -95,10 +97,19 @@
 platform darwin {
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
 
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
+
     post-destroot {
         foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
             set liba_nodr [string map "${destroot} {}" ${liba}]

Modified: trunk/dports/lang/llvm-3.0/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.0/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/llvm-3.0/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -65,7 +65,9 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
@@ -95,10 +97,19 @@
 platform darwin {
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
 
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
+
     post-destroot {
         foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
             set liba_nodr [string map "${destroot} {}" ${liba}]

Modified: trunk/dports/lang/llvm-3.1/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.1/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/llvm-3.1/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -63,14 +63,13 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
 
-# linking fails for ppc
-supported_archs i386 x86_64
-
 variant universal {
     build.env-append \
         UNIVERSAL=1 \
@@ -96,10 +95,19 @@
 platform darwin {
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
 
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
+
     post-destroot {
         foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
             set liba_nodr [string map "${destroot} {}" ${liba}]

Modified: trunk/dports/lang/llvm-3.2/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.2/Portfile	2012-05-03 18:23:04 UTC (rev 92673)
+++ trunk/dports/lang/llvm-3.2/Portfile	2012-05-03 18:51:26 UTC (rev 92674)
@@ -63,14 +63,13 @@
 if {${configure.compiler} == "gcc-4.0"} {
     configure.compiler gcc-4.2
     if {![file exists ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
+        depends_build-append port:apple-gcc42 port:ld64 port:cctools
+        depends_skip_archcheck-append apple-gcc42 ld64 cctools
+
         configure.compiler apple-gcc-4.2
     }
 }
 
-# linking fails for ppc
-supported_archs i386 x86_64
-
 variant universal {
     build.env-append \
         UNIVERSAL=1 \
@@ -96,10 +95,19 @@
 platform darwin {
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc" } {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} == "ppc64" } {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
     } else {
         configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     }
 
+    if {[string match "*ppc*" [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+    }
+
     post-destroot {
         foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
             set liba_nodr [string map "${destroot} {}" ${liba}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120503/3258aadf/attachment.html>


More information about the macports-changes mailing list