[80332] trunk/dports/archivers/arj/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Jul 8 23:22:05 PDT 2011


Revision: 80332
          http://trac.macports.org/changeset/80332
Author:   ryandesign at macports.org
Date:     2011-07-08 23:22:05 -0700 (Fri, 08 Jul 2011)
Log Message:
-----------
arj: enable universal variant

Modified Paths:
--------------
    trunk/dports/archivers/arj/Portfile

Modified: trunk/dports/archivers/arj/Portfile
===================================================================
--- trunk/dports/archivers/arj/Portfile	2011-07-09 06:18:00 UTC (rev 80331)
+++ trunk/dports/archivers/arj/Portfile	2011-07-09 06:22:05 UTC (rev 80332)
@@ -44,10 +44,19 @@
                     patch-makefile.in patch-postproc.c \
                     patch-uxspec.c
 
-universal_variant   no
+post-patch {
+    # as: Flag option -o has already been seen!
+    reinplace {s|-o$@|-o $@|g} ${worksrcpath}/gnu/makefile.in
+}
 
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
 build.target        prepare all
-build.args          CC="${configure.cc} ${configure.cc_archflags}"
+build.args          CC="${configure.cc} ${archflags}"
 
 livecheck.type      regex
 livecheck.url       ${homepage}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110708/5d0ab634/attachment.html>


More information about the macports-changes mailing list