[79436] trunk/dports/security/nasty/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Jun 13 02:16:53 PDT 2011


Revision: 79436
          http://trac.macports.org/changeset/79436
Author:   ryandesign at macports.org
Date:     2011-06-13 02:16:52 -0700 (Mon, 13 Jun 2011)
Log Message:
-----------
nasty: ensure we're UsingTheRightCompiler and build_arch; add universal variant

Modified Paths:
--------------
    trunk/dports/security/nasty/Portfile

Modified: trunk/dports/security/nasty/Portfile
===================================================================
--- trunk/dports/security/nasty/Portfile	2011-06-13 09:11:50 UTC (rev 79435)
+++ trunk/dports/security/nasty/Portfile	2011-06-13 09:16:52 UTC (rev 79436)
@@ -24,7 +24,15 @@
 
 use_configure		no
 
-build.env		CFLAGS=-I${prefix}/include \
-				LDFLAGS=-L${prefix}/lib
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
 
+build.env           CC="${configure.cc}" \
+                    CFLAGS="${configure.cflags} ${configure.cppflags} ${archflags}" \
+                    LDFLAGS="${configure.ldflags} ${archflags}"
+
 destroot.destdir	prefix=${destroot}${prefix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110613/914aa433/attachment.html>


More information about the macports-changes mailing list