[81190] trunk/dports/net/driftnet/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jul 26 19:20:56 PDT 2011


Revision: 81190
          http://trac.macports.org/changeset/81190
Author:   ryandesign at macports.org
Date:     2011-07-26 19:20:55 -0700 (Tue, 26 Jul 2011)
Log Message:
-----------
driftnet: add mirror; support build_arch; add universal variant

Modified Paths:
--------------
    trunk/dports/net/driftnet/Portfile

Modified: trunk/dports/net/driftnet/Portfile
===================================================================
--- trunk/dports/net/driftnet/Portfile	2011-07-27 02:10:13 UTC (rev 81189)
+++ trunk/dports/net/driftnet/Portfile	2011-07-27 02:20:55 UTC (rev 81190)
@@ -16,7 +16,8 @@
 		TCP streams it observes. Fun to run on a host which	\
 		sees lots of web traffic. 
 
-master_sites	http://www.ex-parrot.com/~chris/driftnet/
+master_sites	http://www.ex-parrot.com/~chris/driftnet/ \
+		http://www.vanheusden.com/mirrors/
 
 #		Driftnet doesn't use a configure file, so the Makefile	\
 #		has to be rudely coerced to work properly.
@@ -38,9 +39,17 @@
 
 use_configure	no
 
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
 build.target	{ }
 
-build.args	CFLAGS="-I${prefix}/include		\
+build.args		CC="${configure.cc} ${archflags}"	\
+			CFLAGS="-I${prefix}/include		\
 			-I${prefix}/lib/glib/include	\
 			-I${prefix}/include/glib-1.2	\
 			-I${prefix}/include/gtk-1.2	\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110726/7e9f7fc7/attachment-0001.html>


More information about the macports-changes mailing list