2001-12-19 09:30:28 +00:00
|
|
|
# Ports collection Makefile for: nss
|
|
|
|
# Date created: 18 December 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nss
|
2006-09-18 23:26:52 +00:00
|
|
|
PORTVERSION= 3.11.3
|
2001-12-19 09:30:28 +00:00
|
|
|
CATEGORIES= security
|
2005-08-30 20:52:18 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
|
|
|
MASTER_SITE_SUBDIR= security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src
|
2001-12-19 09:30:28 +00:00
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2004-03-27 18:01:50 +00:00
|
|
|
COMMENT= Libraries to support development of security-enabled applications
|
2001-12-19 09:30:28 +00:00
|
|
|
|
2002-11-18 03:10:30 +00:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
2001-12-19 09:30:28 +00:00
|
|
|
LIB_DEPENDS= nspr4.1:${PORTSDIR}/devel/nspr
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/security/nss
|
|
|
|
|
2006-09-18 23:26:52 +00:00
|
|
|
USE_LDCONFIG= yes
|
2001-12-19 09:30:28 +00:00
|
|
|
USE_GMAKE= yes
|
2002-11-18 03:10:30 +00:00
|
|
|
USE_PERL5_BUILD=yes
|
2001-12-19 09:30:28 +00:00
|
|
|
MAKE_ENV= BSD_LDOPTS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
|
|
|
|
BUILD_OPT=1
|
|
|
|
ALL_TARGET= nss_build_all
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/nspr
|
|
|
|
|
2005-07-31 00:06:49 +00:00
|
|
|
DIST= ${WRKSRC:H:H}/dist
|
2005-02-11 21:11:51 +00:00
|
|
|
|
2004-03-27 18:01:50 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-07-31 21:49:47 +00:00
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} < 500035
|
|
|
|
IGNORE= core dumps on alpha during build
|
|
|
|
.endif
|
|
|
|
|
2006-01-24 23:37:03 +00:00
|
|
|
EXTERNALS= CVS dbm security/nss/cmd/zlib nsprpub security/dbm
|
2005-07-31 00:06:49 +00:00
|
|
|
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
|
|
|
|
${EXTERNALS:C,^,--exclude ${DISTNAME}/mozilla/,}
|
2004-03-27 18:01:50 +00:00
|
|
|
|
2004-01-31 21:06:48 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|-pthread|${PTHREAD_LIBS}|g" \
|
2005-07-31 00:06:49 +00:00
|
|
|
${WRKSRC:H:H}/security/coreconf/FreeBSD.mk
|
|
|
|
|
|
|
|
BINS=${DIST}/${OPSYS}${OSREL}_OPT.OBJ
|
|
|
|
|
|
|
|
test:
|
|
|
|
cd ${WRKSRC}/tests; \
|
|
|
|
${SETENV} PATH="${BINS}/bin:${PATH}" \
|
|
|
|
LD_LIBRARY_PATH="${BINS}/lib" \
|
|
|
|
./all.sh
|
|
|
|
@if ${GREP} -F '>Failed<' \
|
|
|
|
${WRKSRC:H:H}/tests_results/security/*/results.html; then \
|
|
|
|
echo "Some tests have failed. Let ${MAINTAINER} know."; \
|
|
|
|
exit 1; \
|
|
|
|
else \
|
|
|
|
echo "All tests succeeded. Good news."; \
|
|
|
|
fi
|
|
|
|
|
2001-12-19 09:30:28 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/include/nss
|
|
|
|
${TAR} -C ${DIST}/public --dereference -cf - . | \
|
|
|
|
${TAR} -C ${PREFIX}/include/nss -xf -
|
2006-09-02 23:34:03 +00:00
|
|
|
${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/*.so.1 \
|
2001-12-19 09:30:28 +00:00
|
|
|
${PREFIX}/lib
|
2006-09-02 23:34:03 +00:00
|
|
|
${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/libcrmf.a \
|
2006-03-28 15:16:08 +00:00
|
|
|
${PREFIX}/lib
|
2006-01-24 23:37:03 +00:00
|
|
|
${INSTALL_PROGRAM} `${SED} \
|
|
|
|
-e 's|^bin/|${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/bin/|' \
|
|
|
|
-e t -e d ${PLIST}` ${PREFIX}/bin/
|
2002-01-03 13:26:10 +00:00
|
|
|
cd ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib && \
|
2001-12-19 09:30:28 +00:00
|
|
|
${TAR} -cf - *.so | ${TAR} --unlink -C ${PREFIX}/lib -xf -
|
|
|
|
|
2004-03-27 18:01:50 +00:00
|
|
|
.include <bsd.port.post.mk>
|