[57780] trunk/dports/archivers/unzip/Portfile

jmr at macports.org jmr at macports.org
Wed Sep 16 08:45:36 PDT 2009


Revision: 57780
          http://trac.macports.org/changeset/57780
Author:   jmr at macports.org
Date:     2009-09-16 08:45:35 -0700 (Wed, 16 Sep 2009)
Log Message:
-----------
unzip: buildfix for tiger (#21418), use correct compiler and arch flags

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

Modified: trunk/dports/archivers/unzip/Portfile
===================================================================
--- trunk/dports/archivers/unzip/Portfile	2009-09-16 15:24:53 UTC (rev 57779)
+++ trunk/dports/archivers/unzip/Portfile	2009-09-16 15:45:35 UTC (rev 57780)
@@ -24,14 +24,18 @@
                     sha1    abf7de8a4018a983590ed6f5cbd990d4740f8a22 \
                     rmd160  48af66606e9472e45fbb94bc4e285da23d1b89ba
 
-set args		"-f unix/Makefile"
-
 use_configure	no
 
 build.target	macosx
-build.args		${args}
+build.args	    -f unix/Makefile \
+                CC="${configure.cc}"
+set localflags ${configure.cc_archflags}
+pre-build {
+    # have to add this here so variants can modify it
+    build.args-append LOCAL_UNZIP="${localflags}"
+}
 
-destroot.args	${args} \
+eval destroot.args	${build.args} \
 				BINDIR=${destroot}${prefix}/bin \
 				MANDIR=${destroot}${prefix}/share/man/man1
 
@@ -43,15 +47,17 @@
 }
 
 variant universal {
-	build.args-append "LOCAL_UNZIP=\"${configure.universal_cflags}\""
-
+    set localflags ${configure.universal_cflags}
 	post-patch {
 		reinplace -E "/-O3/s|(LF2=\")|\\1${configure.universal_ldflags}|" \
 			${worksrcpath}/unix/Makefile
 	}
 }
 
+platform darwin 8 {
+    append localflags " -DNO_LCHMOD"
+}
+
 livecheck.type	regex
 livecheck.url	${homepage}
 livecheck.regex	"UnZip (\\d+(?:\\.\\d+)*)"
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090916/bc14f2ab/attachment.html>


More information about the macports-changes mailing list