[45011] trunk/dports/net/whois/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jan 6 04:03:04 PST 2009


Revision: 45011
          http://trac.macports.org/changeset/45011
Author:   ryandesign at macports.org
Date:     2009-01-06 04:03:04 -0800 (Tue, 06 Jan 2009)
Log Message:
-----------
whois: enable universal build

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

Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile	2009-01-06 11:52:25 UTC (rev 45010)
+++ trunk/dports/net/whois/Portfile	2009-01-06 12:03:04 UTC (rev 45011)
@@ -45,7 +45,8 @@
         patch-lcrypt.diff
 }
 
-configure.cmd           true
+configure.cmd           make
+configure.pre_args      depend
 
 configure.cflags-append \
     -DENABLE_NLS
@@ -58,15 +59,22 @@
         ${worksrcpath}/whois.1
 }
 
-build.target-append     pos
+set my_includes {}
+set my_libs {}
+
+build.target-append pos
 build.env \
     CC=${configure.cc} \
     CONFIG_FILE=${prefix}/etc/whois.conf \
     LOCALEDIR=${prefix}/share/locale
-build.args \
-    prefix=${prefix} \
-    INCLUDES="${configure.cflags} ${configure.cppflags}" \
-    LIBS="${configure.ldflags}"
+pre-build {
+    eval lappend my_includes ${configure.cflags} ${configure.cppflags}
+    eval lappend my_libs ${configure.ldflags}
+    build.args \
+        prefix=${prefix} \
+        INCLUDES="${my_includes}" \
+        LIBS="${my_libs}"
+}
 
 destroot.target-append  install-pos
 destroot.args           prefix=${destroot}${prefix}
@@ -81,6 +89,11 @@
     }
 }
 
+variant universal {
+    eval lappend my_includes ${configure.universal_cflags}
+    eval lappend my_libs ${configure.universal_ldflags}
+}
+
 livecheck.check         regex
 livecheck.url           [lindex ${master_sites} 0]?C=M&O=D
 livecheck.regex         "${name}_(.+?)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090106/41179382/attachment-0001.html>


More information about the macports-changes mailing list