[92168] trunk/dports/lang/guile/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Fri Apr 20 15:06:49 PDT 2012
Revision: 92168
https://trac.macports.org/changeset/92168
Author: jeremyhu at macports.org
Date: 2012-04-20 15:06:49 -0700 (Fri, 20 Apr 2012)
Log Message:
-----------
guile: Update the recipe for lack of cross-compile support
Modified Paths:
--------------
trunk/dports/lang/guile/Portfile
Modified: trunk/dports/lang/guile/Portfile
===================================================================
--- trunk/dports/lang/guile/Portfile 2012-04-20 22:03:51 UTC (rev 92167)
+++ trunk/dports/lang/guile/Portfile 2012-04-20 22:06:49 UTC (rev 92168)
@@ -69,13 +69,22 @@
reinplace "s|-Werror -Wmissing-braces|-Werror=missing-braces|" ${worksrcpath}/configure
}
-# Does not support cross compilation
-if {[string match "ppc*" ${build_arch}]} {
+# Unable to cross compile, so we need to be able to run the built code
+if {${os.arch} == "i386" && ${os.major} >= 11} {
+ supported_archs i386 x86_64
+ set universal_archs_supported {i386 x86_64}
+} elseif {${os.arch} == "i386" && ${build_arch} == "x86_64"} {
+ supported_archs i386 x86_64 ppc
+ set universal_archs_supported {i386 x86_64 ppc}
+} elseif {${os.arch} == "i386"} {
+ supported_archs i386 ppc
+ set universal_archs_supported {i386 ppc}
+} elseif {${build_arch} == "ppc64"} {
supported_archs ppc ppc64
-} elseif {${os.major} < 11} {
- supported_archs i386 x86_64 ppc
+ set universal_archs_supported {ppc ppc64}
} else {
- supported_archs i386 x86_64
+ supported_archs ${build_arch}
+ set universal_archs_supported ${build_arch}
}
platform darwin {
@@ -92,10 +101,18 @@
configure.args-append \
--host=i686-apple-${os.platform}${os.major} \
--build=i686-apple-${os.platform}${os.major}
- } else {
+ } elseif {${build_arch} == "x86_64"} {
configure.args-append \
- --host=${os.arch}-apple-${os.platform}${os.major} \
- --build=${os.arch}-apple-${os.platform}${os.major}
+ --host=x86_64-apple-${os.platform}${os.major} \
+ --build=x86_64-apple-${os.platform}${os.major}
+ } elseif {${build_arch} == "ppc"} {
+ configure.args-append \
+ --host=powerpc-apple-${os.platform}${os.major} \
+ --build=powerpc-apple-${os.platform}${os.major}
+ } elseif {${build_arch} == "ppc64"} {
+ configure.args-append \
+ --host=powerpc64-apple-${os.platform}${os.major} \
+ --build=powerpc64-apple-${os.platform}${os.major}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120420/47a44a25/attachment.html>
More information about the macports-changes
mailing list