[83652] trunk/dports/archivers/arj/Portfile
snc at macports.org
snc at macports.org
Thu Sep 8 11:46:08 PDT 2011
Revision: 83652
http://trac.macports.org/changeset/83652
Author: snc at macports.org
Date: 2011-09-08 11:46:08 -0700 (Thu, 08 Sep 2011)
Log Message:
-----------
arj: fix duplicate strnlen() in Lion, #30078
Modified Paths:
--------------
trunk/dports/archivers/arj/Portfile
Modified: trunk/dports/archivers/arj/Portfile
===================================================================
--- trunk/dports/archivers/arj/Portfile 2011-09-08 18:39:52 UTC (rev 83651)
+++ trunk/dports/archivers/arj/Portfile 2011-09-08 18:46:08 UTC (rev 83652)
@@ -23,15 +23,6 @@
checksums rmd160 80f8a1a8cd203f73def8e957d96563a4dba80153 \
sha256 589e4c9bccc8669e7b6d8d6fcd64e01f6a2c21fe10aad56a83304ecc3b96a7db
-platform darwin {
- pre-fetch {
- if {${os.major} > 10} {
- ui_error "${name} will only build on Mac OS X 10.6 Snow Leopard or earlier"
- return -code error "incompatible Mac OS X version"
- }
- }
-}
-
post-extract {
if {[file exists ${prefix}/share/libtool/config/config.guess]} {
copy -force ${prefix}/share/libtool/config/config.guess ${prefix}/share/libtool/config/config.sub ${autoconf.dir}
@@ -47,6 +38,14 @@
post-patch {
# as: Flag option -o has already been seen!
reinplace {s|-o$@|-o $@|g} ${worksrcpath}/gnu/makefile.in
+
+ # strnlen() is already defined
+ platform darwin {
+ if {${os.major} > 10} {
+ reinplace s|strnlen|arjstrnlen|g ${worksrcpath}/fardata.c
+ }
+ }
+
}
build.target prepare all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110908/9991f8e8/attachment-0001.html>
More information about the macports-changes
mailing list