Revision
74461
Author
ryandesign@macports.org
Date
2010-12-17 21:13:31 -0800 (Fri, 17 Dec 2010)

Log Message

unsort: ensure we're UsingTheRightCompuler, add support for universal and non-default-build_arch builds

Modified Paths

Diff

Modified: trunk/dports/textproc/unsort/Portfile (74460 => 74461)


--- trunk/dports/textproc/unsort/Portfile	2010-12-18 05:09:21 UTC (rev 74460)
+++ trunk/dports/textproc/unsort/Portfile	2010-12-18 05:13:31 UTC (rev 74461)
@@ -21,6 +21,16 @@
 
 patchfiles              patch-Makefile
 
-configure {
+post-patch {
     reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile
 }
+
+use_configure           no
+
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+build.args              CC="${configure.cc} ${archflags}"