[91603] trunk/dports/net/nss/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Fri Apr 6 13:50:00 PDT 2012
Revision: 91603
https://trac.macports.org/changeset/91603
Author: jeremyhu at macports.org
Date: 2012-04-06 13:49:59 -0700 (Fri, 06 Apr 2012)
Log Message:
-----------
nss: Use the right compiler, and build fix for Tiger
Modified Paths:
--------------
trunk/dports/net/nss/Portfile
Modified: trunk/dports/net/nss/Portfile
===================================================================
--- trunk/dports/net/nss/Portfile 2012-04-06 19:05:58 UTC (rev 91602)
+++ trunk/dports/net/nss/Portfile 2012-04-06 20:49:59 UTC (rev 91603)
@@ -32,6 +32,15 @@
patchfiles patch-UNIX.mk.diff \
patch-Darwin.mk.diff
+platform darwin 8 {
+ # Tiger's host ld is ancient (cctools based) and won't properly link this project
+ # Use apple-gcc42 with our ld64 to get it to link
+ depends_build port:apple-gcc42 port:ld64
+ depends_skip_archcheck-append apple-gcc42 ld64
+
+ configure.compiler apple-gcc-4.2
+}
+
# This is all kinds of messed up for universal...
universal_variant no
@@ -48,6 +57,10 @@
${worksrcpath}/mozilla/security/coreconf/Darwin.mk
reinplace "s|= ranlib\$|= /usr/bin/ranlib|" \
${worksrcpath}/mozilla/security/coreconf/Darwin.mk
+ reinplace "s|=gcc|=${configure.cc}|" \
+ ${worksrcpath}/mozilla/security/nss/Makefile
+ reinplace "s|=g++|=${configure.cxx}|" \
+ ${worksrcpath}/mozilla/security/nss/Makefile
}
build {
@@ -56,7 +69,7 @@
} else {
set use_64 ""
}
- set make_args "NSPR_LIB_DIR=${prefix}/lib/nspr NSS_USE_SYSTEM_SQLITE=1${use_64}"
+ set make_args "NSPR_LIB_DIR=${prefix}/lib/nspr NSS_USE_SYSTEM_SQLITE=1${use_64} CC=${configure.cc} CXX=${configure.cxx}"
system "cd ${worksrcpath} && \
make -C mozilla/security/coreconf/nsinstall ${make_args} && \
make -C mozilla/security/dbm ${make_args} && \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120406/e8f4f70d/attachment.html>
More information about the macports-changes
mailing list