[74893] trunk/dports/textproc/tnef2txt/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Jan 5 21:36:18 PST 2011


Revision: 74893
          http://trac.macports.org/changeset/74893
Author:   ryandesign at macports.org
Date:     2011-01-05 21:36:11 -0800 (Wed, 05 Jan 2011)
Log Message:
-----------
tnef2txt: support build_arch and universal builds, and ensure we're UsingTheRightCompiler

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

Modified: trunk/dports/textproc/tnef2txt/Portfile
===================================================================
--- trunk/dports/textproc/tnef2txt/Portfile	2011-01-06 05:34:33 UTC (rev 74892)
+++ trunk/dports/textproc/tnef2txt/Portfile	2011-01-06 05:36:11 UTC (rev 74893)
@@ -5,6 +5,7 @@
 
 name                tnef2txt
 version             1.4
+revision            1
 categories          textproc
 platforms           darwin
 maintainers         nomaintainer
@@ -25,7 +26,15 @@
 
 use_configure       no
 
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
 build.target        tnef2txt
+build.args          CC="${configure.cc} ${archflags}"
 
 destroot {
     xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110105/e572db62/attachment.html>


More information about the macports-changes mailing list