[73420] trunk/dports/tex/detex/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Nov 12 18:28:29 PST 2010


Revision: 73420
          http://trac.macports.org/changeset/73420
Author:   ryandesign at macports.org
Date:     2010-11-12 18:28:25 -0800 (Fri, 12 Nov 2010)
Log Message:
-----------
detex: support universal and non-default-build_arch builds, and ensure we're UsingTheRightCompiler; see #27297

Modified Paths:
--------------
    trunk/dports/tex/detex/Portfile

Modified: trunk/dports/tex/detex/Portfile
===================================================================
--- trunk/dports/tex/detex/Portfile	2010-11-13 02:11:09 UTC (rev 73419)
+++ trunk/dports/tex/detex/Portfile	2010-11-13 02:28:25 UTC (rev 73420)
@@ -16,7 +16,6 @@
 extract.pre_args        -xf
 extract.post_args
 use_configure           no
-universal_variant       no
 use_parallel_build      yes
 
 description \
@@ -33,6 +32,15 @@
 patchfiles \
     patch-Makefile.diff
 
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
+build.args              CC="${configure.cc} ${archflags}"
+
 destroot {
     xinstall -W ${worksrcpath} detex ${destroot}${prefix}/bin
     xinstall -W ${worksrcpath} detex.1l ${destroot}${prefix}/share/man/man1/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101112/826d917a/attachment-0001.html>


More information about the macports-changes mailing list