2013-03-21 08:49:42 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.36 2013/03/21 12:49:42 landry Exp $
|
2006-12-08 14:21:30 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2006-12-04 12:19:54 -05:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT= libraries to support development of security-enabled apps
|
2006-12-04 12:19:54 -05:00
|
|
|
|
2013-03-21 08:49:42 -04:00
|
|
|
VERSION= 3.14.3
|
2013-03-18 16:38:13 -04:00
|
|
|
DISTNAME = nss-${VERSION}
|
2012-12-31 03:41:27 -05:00
|
|
|
|
2013-03-21 08:49:42 -04:00
|
|
|
SO_VERSION= 33.2
|
2008-07-24 20:46:59 -04:00
|
|
|
.for _lib in freebl3 nss3 nssckbi nssdbm3 nssutil3 smime3 softokn3 ssl3
|
2006-12-04 12:19:54 -05:00
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
|
|
|
CATEGORIES= security
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/security/pki/nss/
|
|
|
|
|
2007-03-26 16:45:44 -04:00
|
|
|
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
|
2006-12-04 12:19:54 -05:00
|
|
|
|
|
|
|
# mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2011-09-06 15:39:34 -04:00
|
|
|
#for regular releases
|
2011-11-18 07:32:37 -05:00
|
|
|
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/security/nss/releases/${DISTNAME:U:C/[-.]/_/g}_RTM/src/ \
|
|
|
|
http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${DISTNAME:U:C/[-.]/_/g}_RTM/src/
|
2006-12-04 12:19:54 -05:00
|
|
|
|
2012-12-29 15:03:17 -05:00
|
|
|
LIB_DEPENDS= devel/nspr>=4.9.4
|
2013-03-18 16:38:13 -04:00
|
|
|
WANTLIB += c pthread z nspr4 plc4 plds4 sqlite3>=22
|
2006-12-04 12:19:54 -05:00
|
|
|
|
|
|
|
MAKE_ENV= BUILD_OPT=1 \
|
|
|
|
LOCALBASE="${LOCALBASE}" \
|
|
|
|
NSS_ENABLE_ECC=1 \
|
2008-07-24 20:46:59 -04:00
|
|
|
NSS_USE_SYSTEM_SQLITE=1 \
|
2007-02-13 12:11:05 -05:00
|
|
|
SO_VERSION="${SO_VERSION}" \
|
2012-03-08 07:13:00 -05:00
|
|
|
XCFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
|
2008-07-24 20:46:59 -04:00
|
|
|
NSPR_INCLUDE_DIR="${LOCALBASE}/include/nspr" \
|
|
|
|
NSPR_LIB_DIR="${LOCALBASE}/lib"
|
2006-12-04 12:19:54 -05:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIST}/mozilla/security/nss
|
|
|
|
NSSDIST= ${WRKDIST}/mozilla/dist
|
2009-08-04 10:00:21 -04:00
|
|
|
NSSOBJ= ${NSSDIST}/OpenBSD`uname -r`${OBJ64}_OPT.OBJ
|
2006-12-04 12:19:54 -05:00
|
|
|
|
|
|
|
ALL_TARGET= nss_build_all
|
2012-11-12 15:43:09 -05:00
|
|
|
SUBST_VARS += VERSION
|
2006-12-04 12:19:54 -05:00
|
|
|
|
2007-02-13 12:11:05 -05:00
|
|
|
# Don't forget to sync these with http://wiki.mozilla.org/NSS:ToolsToShip
|
|
|
|
MAIN_TOOLS= certutil modutil pk12util signtool ssltap crlutil \
|
|
|
|
cmsutil signver
|
|
|
|
|
2006-12-04 12:19:54 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/nss
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
2010-04-03 05:21:00 -04:00
|
|
|
${INSTALL_DATA} ${NSSDIST}/public/nss/*.{h,api} ${PREFIX}/include/nss/
|
|
|
|
${INSTALL_DATA} ${NSSOBJ}/lib/*.so.${SO_VERSION} ${PREFIX}/lib/
|
2006-12-08 14:21:30 -05:00
|
|
|
${INSTALL_DATA} ${NSSOBJ}/lib/{libcrmf.a,*.chk} ${PREFIX}/lib/
|
2010-04-03 05:21:00 -04:00
|
|
|
cd ${NSSOBJ}/bin && ${INSTALL_PROGRAM} ${MAIN_TOOLS} ${PREFIX}/bin/
|
2012-11-12 15:43:09 -05:00
|
|
|
${SUBST_CMD} -c ${FILESDIR}/nss.pc ${PREFIX}/lib/pkgconfig/nss.pc \
|
|
|
|
${FILESDIR}/nss-config ${PREFIX}/bin/nss-config
|
|
|
|
chown ${BINOWN}:${BINGRP} ${PREFIX}/{bin/nss-config,lib/pkgconfig/nss.pc}
|
|
|
|
chmod +x ${PREFIX}/bin/nss-config
|
2006-12-04 12:19:54 -05:00
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
do-test:
|
2010-04-03 05:21:00 -04:00
|
|
|
cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} \
|
2008-02-12 18:26:31 -05:00
|
|
|
PATH="${NSSOBJ}/bin:${PATH}" \
|
2010-04-03 05:21:00 -04:00
|
|
|
LD_LIBRARY_PATH="${NSSOBJ}/lib" /bin/sh ./all.sh
|
2006-12-04 12:19:54 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2009-08-04 10:00:21 -04:00
|
|
|
|
|
|
|
.for _m in ${MACHINE_ARCH}
|
|
|
|
. if !empty(LP64_ARCHS:M${_m})
|
|
|
|
MAKE_ENV+= USE_64=1
|
|
|
|
OBJ64= _64
|
|
|
|
. endif
|
|
|
|
.endfor
|