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

ryandesign at macports.org ryandesign at macports.org
Sat Sep 25 22:23:59 PDT 2010


Revision: 71887
          http://trac.macports.org/changeset/71887
Author:   ryandesign at macports.org
Date:     2010-09-25 22:23:56 -0700 (Sat, 25 Sep 2010)
Log Message:
-----------
whois: support non-default-build_arch

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

Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile	2010-09-26 03:34:40 UTC (rev 71886)
+++ trunk/dports/net/whois/Portfile	2010-09-26 05:23:56 UTC (rev 71887)
@@ -57,22 +57,21 @@
         ${worksrcpath}/whois.1
 }
 
-set my_includes {}
-set my_libs {}
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
 
 build.target-append         pos
-build.env                   CC=${configure.cc} \
+build.env                   CC="${configure.cc} ${archflags}" \
                             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}
 
@@ -88,11 +87,6 @@
     }
 }
 
-variant universal {
-    eval lappend my_includes ${configure.universal_cflags}
-    eval lappend my_libs ${configure.universal_ldflags}
-}
-
 livecheck.type              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/20100925/be7106f1/attachment-0001.html>


More information about the macports-changes mailing list