[92876] trunk/dports/devel/ppl
adfernandes at macports.org
adfernandes at macports.org
Wed May 9 07:26:00 PDT 2012
Revision: 92876
https://trac.macports.org/changeset/92876
Author: adfernandes at macports.org
Date: 2012-05-09 07:25:56 -0700 (Wed, 09 May 2012)
Log Message:
-----------
devel/ppl: re-add hacks for universal building, and fix rounding-mode flags; #34374 and #34010
Modified Paths:
--------------
trunk/dports/devel/ppl/Portfile
Removed Paths:
-------------
trunk/dports/devel/ppl/files/
Modified: trunk/dports/devel/ppl/Portfile
===================================================================
--- trunk/dports/devel/ppl/Portfile 2012-05-09 13:25:15 UTC (rev 92875)
+++ trunk/dports/devel/ppl/Portfile 2012-05-09 14:25:56 UTC (rev 92876)
@@ -6,7 +6,7 @@
name ppl
version 0.12.1
-revision 1
+revision 2
categories devel math
platforms darwin
maintainers adfernandes openmaintainer
@@ -38,8 +38,39 @@
rmd160 4ae199d64c6b7c63a78865671eefacdeed46009d
depends_build port:m4
-depends_lib port:gmp
+depends_lib port:gmp port:glpk
+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'.
+ # Older versions of 'clang' will just warn about '-frounding-math' despite '-Werror'.
+ # And 'llvm-gcc' does not '-frounding-math' and siliently ignores it.
+ configure.args-append --enable-fpmath=no
+}
+
+pre-configure {
+ # There is a bug in the configure script for 'ppl-0.12.1' that makes it look in the
+ # wrong place for the 'glpk' header file during configuration.
+ 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/20120509/85d0cf02/attachment.html>
More information about the macports-changes
mailing list