Revision
77392
Author
ryandesign@macports.org
Date
2011-03-29 01:00:25 -0700 (Tue, 29 Mar 2011)

Log Message

qiv: add universal variant

Modified Paths

Diff

Modified: trunk/dports/graphics/qiv/Portfile (77391 => 77392)


--- trunk/dports/graphics/qiv/Portfile	2011-03-29 07:54:47 UTC (rev 77391)
+++ trunk/dports/graphics/qiv/Portfile	2011-03-29 08:00:25 UTC (rev 77392)
@@ -32,8 +32,15 @@
 
 use_configure       no
 
-build.args          CC="${configure.cc} ${configure.cc_archflags}"
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
 
+build.args          CC="${configure.cc} ${archflags}"
+
 livecheck.type      regex
 livecheck.url       [lindex ${master_sites} 0]
 livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}