[63177] trunk/dports/sysutils/memtester/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Jan 27 22:01:51 PST 2010
Revision: 63177
http://trac.macports.org/changeset/63177
Author: ryandesign at macports.org
Date: 2010-01-27 22:01:47 -0800 (Wed, 27 Jan 2010)
Log Message:
-----------
memtester: add universal variant and support build_archs; see #23453
Modified Paths:
--------------
trunk/dports/sysutils/memtester/Portfile
Modified: trunk/dports/sysutils/memtester/Portfile
===================================================================
--- trunk/dports/sysutils/memtester/Portfile 2010-01-28 05:36:56 UTC (rev 63176)
+++ trunk/dports/sysutils/memtester/Portfile 2010-01-28 06:01:47 UTC (rev 63177)
@@ -24,8 +24,15 @@
use_configure no
+variant universal {}
+
pre-patch {
+ if {[variant_isset universal]} {
+ set archflags ${configure.universal_cflags}
+ } else {
+ set archflags ${configure.cc_archflags}
+ }
reinplace "s|/usr/local|${destroot}${prefix}|" ${worksrcpath}/Makefile
reinplace "s|man/man|share/man/man|" ${worksrcpath}/Makefile
- reinplace "s|^cc|${configure.cc}|g" ${worksrcpath}/conf-cc ${worksrcpath}/conf-ld
+ reinplace "s|^cc|${configure.cc} ${archflags}|g" ${worksrcpath}/conf-cc ${worksrcpath}/conf-ld
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100127/aab4dc13/attachment.html>
More information about the macports-changes
mailing list