[77998] trunk/dports/textproc/nkf/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Apr 19 01:04:28 PDT 2011


Revision: 77998
          http://trac.macports.org/changeset/77998
Author:   ryandesign at macports.org
Date:     2011-04-19 01:04:27 -0700 (Tue, 19 Apr 2011)
Log Message:
-----------
nkf: ensure we're UsingTheRightCompiler, and respect build_arch (and consolidate it with the way the port handles universal_archs)

Modified Paths:
--------------
    trunk/dports/textproc/nkf/Portfile

Modified: trunk/dports/textproc/nkf/Portfile
===================================================================
--- trunk/dports/textproc/nkf/Portfile	2011-04-19 07:55:57 UTC (rev 77997)
+++ trunk/dports/textproc/nkf/Portfile	2011-04-19 08:04:27 UTC (rev 77998)
@@ -4,7 +4,7 @@
 
 name            nkf
 version         2.1.1
-revision        1
+revision        2
 categories      textproc japanese
 maintainers     takanori openmaintainer
 description     Network Kanji code conversion Filter
@@ -24,8 +24,15 @@
 
 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="${configure.cflags}"
+build.args      CC=${configure.cc} CFLAGS="${configure.cflags} ${archflags}"
 
 test.run        yes
 
@@ -41,10 +48,6 @@
     xinstall -m 644 ${worksrcpath}/nkf.doc ${destroot}${prefix}/share/doc/${name}
 }
 
-variant universal {
-    build.args  CFLAGS="${configure.cflags} ${configure.universal_cflags}"
-}
-
 livecheck.type  regex
 livecheck.url   ${homepage}files/
 livecheck.regex ${name}-(\[0-9.a-z\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110419/bb5d81ce/attachment.html>


More information about the macports-changes mailing list