[99378] trunk/dports/archivers/unrar/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Nov 3 21:46:47 PDT 2012
Revision: 99378
http://trac.macports.org//changeset/99378
Author: ryandesign at macports.org
Date: 2012-11-03 21:46:47 -0700 (Sat, 03 Nov 2012)
Log Message:
-----------
unrar: modernize how we get the -arch flags
Modified Paths:
--------------
trunk/dports/archivers/unrar/Portfile
Modified: trunk/dports/archivers/unrar/Portfile
===================================================================
--- trunk/dports/archivers/unrar/Portfile 2012-11-04 04:36:49 UTC (rev 99377)
+++ trunk/dports/archivers/unrar/Portfile 2012-11-04 04:46:47 UTC (rev 99378)
@@ -30,23 +30,16 @@
use_configure no
-set CXXFLAGS ${configure.cxxflags}
-set LDFLAGS ${configure.ldflags}
-if {[variant_isset universal]} {
- append CXXFLAGS " ${configure.universal_cxxflags}"
- append LDFLAGS " ${configure.universal_ldflags}"
-} else {
- append CXXFLAGS " ${configure.cxx_archflags}"
- append LDFLAGS " ${configure.cc_archflags}"
-}
+variant universal {}
if {[tbool configure.ccache]} {
configure.cxx "ccache ${configure.cxx}"
}
-build.env-append CXX="[join ${configure.cxx} " "]"
-build.env-append CXXFLAGS="${CXXFLAGS}"
-build.env-append LDFLAGS="${LDFLAGS}"
+build.env-append CXX="[join ${configure.cxx}]" \
+ CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
+ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
+
build.args -f makefile.unix
destroot {
@@ -57,8 +50,6 @@
xinstall -m 0644 -W ${worksrcpath} license.txt readme.txt ${destroot}${docdir}
}
-variant universal {}
-
livecheck.type regex
livecheck.url ${homepage}rar_add.htm
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121103/85fe7167/attachment.html>
More information about the macports-changes
mailing list