[76762] trunk/dports/math/muparser
jmr at macports.org
jmr at macports.org
Tue Mar 8 01:26:13 PST 2011
Revision: 76762
http://trac.macports.org/changeset/76762
Author: jmr at macports.org
Date: 2011-03-08 01:26:12 -0800 (Tue, 08 Mar 2011)
Log Message:
-----------
muparser: fix universal and build_arch support (#23377)
Modified Paths:
--------------
trunk/dports/math/muparser/Portfile
Added Paths:
-----------
trunk/dports/math/muparser/files/
trunk/dports/math/muparser/files/Makefile.in.diff
Modified: trunk/dports/math/muparser/Portfile
===================================================================
--- trunk/dports/math/muparser/Portfile 2011-03-08 09:25:40 UTC (rev 76761)
+++ trunk/dports/math/muparser/Portfile 2011-03-08 09:26:12 UTC (rev 76762)
@@ -22,4 +22,15 @@
livecheck.regex "<title>muparser Version (.*) released.*</title>"
+patchfiles Makefile.in.diff
+post-configure {
+ if {[variant_isset universal]} {
+ reinplace "s/@ARCHFLAGS@/${configure.universal_cxxflags}/" \
+ ${worksrcpath}/Makefile
+ } else {
+ reinplace "s/@ARCHFLAGS@/${configure.cxx_archflags}/" \
+ ${worksrcpath}/Makefile
+ }
+}
+
use_parallel_build no
Added: trunk/dports/math/muparser/files/Makefile.in.diff
===================================================================
--- trunk/dports/math/muparser/files/Makefile.in.diff (rev 0)
+++ trunk/dports/math/muparser/files/Makefile.in.diff 2011-03-08 09:26:12 UTC (rev 76762)
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2010-01-20 09:46:21.000000000 +1100
++++ Makefile.in 2011-03-08 20:17:27.000000000 +1100
+@@ -35,7 +35,7 @@
+ AROPTIONS = @AROPTIONS@
+ RANLIB = @RANLIB@
+ CXX = @CXX@
+-CXXFLAGS = @CXXFLAGS@
++CXXFLAGS = @CXXFLAGS@ @ARCHFLAGS@
+ CPPFLAGS = @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110308/8e64668a/attachment.html>
More information about the macports-changes
mailing list