aboutsummaryrefslogtreecommitdiff
path: root/security/nss
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2012-09-07 22:10:01 +0000
committerFlorian Smeets <flo@FreeBSD.org>2012-09-07 22:10:01 +0000
commit9e2d4844cf86e9e0c1fee084c644a471b97d4d89 (patch)
tree260671c3ea7a2a410e3f9cc7f050e3a71604a633 /security/nss
parent26ceb56d8b90157eef1d8f626d049666c852d81a (diff)
downloadports-9e2d4844cf86e9e0c1fee084c644a471b97d4d89.tar.gz
ports-9e2d4844cf86e9e0c1fee084c644a471b97d4d89.zip
Notes
Diffstat (limited to 'security/nss')
-rw-r--r--security/nss/Makefile19
-rw-r--r--security/nss/files/patch-..::coreconf::FreeBSD.mk5
2 files changed, 15 insertions, 9 deletions
diff --git a/security/nss/Makefile b/security/nss/Makefile
index 5c59ceee6f10..1c7689d895f0 100644
--- a/security/nss/Makefile
+++ b/security/nss/Makefile
@@ -31,7 +31,7 @@ USE_LDCONFIG= ${PREFIX}/lib/nss
USE_GMAKE= yes
USE_PERL5_BUILD=yes
MAKE_ENV= BSD_LDOPTS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
- BUILD_OPT=1 NSS_ENABLE_ECC=1 NSS_USE_SYSTEM_SQLITE=1
+ NSS_ENABLE_ECC=1 NSS_USE_SYSTEM_SQLITE=1
ALL_TARGET= nss_build_all
CFLAGS+= -I${LOCALBASE}/include/nspr -L${LOCALBASE}/lib
@@ -41,13 +41,18 @@ EXTERNALS= CVS dbm security/nss/lib/zlib nsprpub security/dbm
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
${EXTERNALS:C,^,--exclude ${PORTNAME}-${PORTVERSION}/mozilla/,}
-BINS=${DIST}/${OPSYS}${OSREL}_OPT.OBJ
-
INSTALL_BINS= certcgi certutil checkcert cmsutil crlutil derdump makepqg \
mangle modutil ocspclnt oidcalc p7content p7env p7sign \
p7verify pk12util rsaperf shlibsign signtool signver \
ssltap strsclnt symkeyutil vfychain vfyserv
+.if !defined(WITH_DEBUG)
+MAKE_ENV+= BUILD_OPT=1
+BINS= ${DIST}/${OPSYS}${OSREL}_OPT.OBJ
+.else
+BINS= ${DIST}/${OPSYS}${OSREL}_DBG.OBJ
+.endif
+
check regression-test test:
cd ${WRKSRC}/tests; \
${SETENV} PATH="${BINS}/bin:${PATH}" \
@@ -87,15 +92,15 @@ do-install:
${MKDIR} ${PREFIX}/include/nss/nss ${PREFIX}/lib/nss
${FIND} ${DIST}/public/nss -type l \
-exec ${INSTALL_DATA} {} ${PREFIX}/include/nss/nss \;
- ${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/*.so.1 \
+ ${INSTALL_DATA} ${BINS}/lib/*.so.1 \
${PREFIX}/lib/nss
- ${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/libcrmf.a \
+ ${INSTALL_DATA} ${BINS}/lib/libcrmf.a \
${PREFIX}/lib/nss
.for bin in ${INSTALL_BINS}
- ${INSTALL_PROGRAM} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/bin/${bin} \
+ ${INSTALL_PROGRAM} ${BINS}/bin/${bin} \
${PREFIX}/bin
.endfor
- cd ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib && \
+ cd ${BINS}/lib && \
${TAR} -cf - *.so | ${TAR} --unlink -C ${PREFIX}/lib/nss -xf -
${INSTALL_SCRIPT} ${WRKDIR}/nss-config ${PREFIX}/bin
${INSTALL_DATA} ${WRKDIR}/nss.pc ${PREFIX}/libdata/pkgconfig
diff --git a/security/nss/files/patch-..::coreconf::FreeBSD.mk b/security/nss/files/patch-..::coreconf::FreeBSD.mk
index a6bb4772784c..2b8c57181be8 100644
--- a/security/nss/files/patch-..::coreconf::FreeBSD.mk
+++ b/security/nss/files/patch-..::coreconf::FreeBSD.mk
@@ -13,14 +13,15 @@
RANLIB = ranlib
CPU_ARCH = $(OS_TEST)
-@@ -52,6 +52,12 @@ endif
+@@ -52,6 +52,13 @@ endif
ifeq ($(CPU_ARCH),amd64)
CPU_ARCH = x86_64
endif
+ifneq (,$(filter powerpc%, $(CPU_ARCH)))
+CPU_ARCH = ppc
+endif
-+ifneq (,$(filter %64, $(CPU_ARCH)))
++
++ifneq (,$(filter %64, $(OS_TEST)))
+USE_64 = 1
+endif