[79343] trunk/dports/net/miniupnpc/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Jun 9 17:41:25 PDT 2011
Revision: 79343
http://trac.macports.org/changeset/79343
Author: ryandesign at macports.org
Date: 2011-06-09 17:41:23 -0700 (Thu, 09 Jun 2011)
Log Message:
-----------
miniupnpc: ensure we're using the right build_arch, and add a universal variant
Modified Paths:
--------------
trunk/dports/net/miniupnpc/Portfile
Modified: trunk/dports/net/miniupnpc/Portfile
===================================================================
--- trunk/dports/net/miniupnpc/Portfile 2011-06-10 00:36:03 UTC (rev 79342)
+++ trunk/dports/net/miniupnpc/Portfile 2011-06-10 00:41:23 UTC (rev 79343)
@@ -6,7 +6,7 @@
name miniupnpc
epoch 2
version 1.5
-revision 1
+revision 2
categories net
platforms darwin
license BSD
@@ -22,8 +22,16 @@
rmd160 8989965305c56ac89011db7cdaf8955f4bb95eba
use_configure no
-build.args-append CC=${configure.cc}
+variant universal {}
+if {[variant_isset universal]} {
+ set archflags ${configure.universal_cflags}
+} else {
+ set archflags ${configure.cc_archflags}
+}
+
+build.args-append CC="${configure.cc} ${archflags}"
+
post-patch {
reinplace "s|-Wl,-install_name,|-Wl,-install_name,${prefix}/lib/|" ${worksrcpath}/Makefile
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110609/225768b6/attachment.html>
More information about the macports-changes
mailing list