[92943] trunk/dports/devel/ppl/Portfile
adfernandes at macports.org
adfernandes at macports.org
Fri May 11 09:13:10 PDT 2012
Revision: 92943
https://trac.macports.org/changeset/92943
Author: adfernandes at macports.org
Date: 2012-05-11 09:13:08 -0700 (Fri, 11 May 2012)
Log Message:
-----------
devel/ppl: build on tiger and leopard, closes #34374, thanks, Ryan\!
Modified Paths:
--------------
trunk/dports/devel/ppl/Portfile
Modified: trunk/dports/devel/ppl/Portfile
===================================================================
--- trunk/dports/devel/ppl/Portfile 2012-05-11 15:18:35 UTC (rev 92942)
+++ trunk/dports/devel/ppl/Portfile 2012-05-11 16:13:08 UTC (rev 92943)
@@ -40,6 +40,15 @@
depends_build port:m4
depends_lib port:gmp port:glpk
+if { ${configure.compiler} == "gcc-4.0" } {
+ configure.compiler gcc-4.2
+ if {![file executable ${configure.cc}]} {
+ depends_build-append port:apple-gcc42
+ depends_skip_archcheck-append apple-gcc42
+ configure.compiler apple-gcc-4.2
+ }
+}
+
if { [string match "*clang*" ${configure.compiler}] || [string match "*llvm*" ${configure.compiler}] } {
# As of 'ppl-0.12.1', we need to be careful about use of the '--enable-fpmath' flag!
# Newer versions of 'clang' will error about '-frounding-math' being unsupported due to '-Werror'.
@@ -54,23 +63,6 @@
reinplace "s|glpk/glpk.h|glpk.h|" ${worksrcpath}/configure
}
-if { ${os.arch} == "i386" } {
- set native_target {i386 x86_64}
-} else {
- set native_target {ppc ppc64}
-}
-
-if { [variant_isset universal] } {
-
- configure.cflags-delete -march=native
- configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
-
- foreach arch ${universal_archs_supported} {
- lappend merger_configure_args($arch) --host=${arch}-apple-${os.platform}${os.version}
- }
-
-}
-
test.run yes
test.target check
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120511/ec1e49fa/attachment.html>
More information about the macports-changes
mailing list