0f8ed61c99
ok martynas@
75 lines
2.4 KiB
Makefile
75 lines
2.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.11 2009/03/23 07:50:47 jakemsr Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= libraries to support development of security-enabled apps
|
|
|
|
VERSION= 3.12
|
|
DISTNAME= nss-${VERSION}
|
|
PKGNAME= ${DISTNAME}p0
|
|
SO_VERSION= 22.0
|
|
.for _lib in freebl3 nss3 nssckbi nssdbm3 nssutil3 smime3 softokn3 ssl3
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
.endfor
|
|
CATEGORIES= security
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/security/pki/nss/
|
|
|
|
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
|
|
|
|
# mozilla public license
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB += c pthread z
|
|
|
|
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${VERSION:S/./_/g}_RTM/src/ \
|
|
http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${VERSION:S/./_/g}_RTM/src/
|
|
|
|
LIB_DEPENDS= nspr4.>=20,plc4.>=20,plds4.>=20:nspr->=4.7:devel/nspr \
|
|
sqlite3.>=10.0:sqlite3->=3.5:databases/sqlite3
|
|
|
|
MAKE_ENV= BUILD_OPT=1 \
|
|
LOCALBASE="${LOCALBASE}" \
|
|
NSS_ENABLE_ECC=1 \
|
|
NSS_USE_SYSTEM_SQLITE=1 \
|
|
SO_VERSION="${SO_VERSION}" \
|
|
XCFLAGS="-I${LOCALBASE}/include -DRAND_DEV=\\\"/dev/arandom\\\" ${CFLAGS}" \
|
|
NSPR_INCLUDE_DIR="${LOCALBASE}/include/nspr" \
|
|
NSPR_LIB_DIR="${LOCALBASE}/lib"
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
WRKSRC= ${WRKDIST}/mozilla/security/nss
|
|
NSSDIST= ${WRKDIST}/mozilla/dist
|
|
NSSOBJ= ${NSSDIST}/OpenBSD`uname -r`_OPT.OBJ
|
|
|
|
ALL_TARGET= nss_build_all
|
|
|
|
# Don't forget to sync these with http://wiki.mozilla.org/NSS:ToolsToShip
|
|
MAIN_TOOLS= certutil modutil pk12util signtool ssltap crlutil \
|
|
cmsutil signver
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/nss
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
|
@cd ${NSSDIST}/public && ${TAR} -chf - nss/ | \
|
|
${TAR} -xf - -C ${PREFIX}/include
|
|
@cd ${NSSOBJ}/lib && ${TAR} -chf - *.so.${SO_VERSION} | \
|
|
${TAR} -xf - -C ${PREFIX}/lib
|
|
@chmod 444 ${PREFIX}/lib/*.so.${SO_VERSION}
|
|
${INSTALL_DATA} ${NSSOBJ}/lib/{libcrmf.a,*.chk} ${PREFIX}/lib/
|
|
@cd ${NSSOBJ}/bin && ${INSTALL_PROGRAM} ${MAIN_TOOLS} ${PREFIX}/bin/
|
|
${INSTALL_SCRIPT} ${FILESDIR}/nss-config ${PREFIX}/bin/
|
|
${INSTALL_DATA} ${FILESDIR}/nss.pc ${PREFIX}/lib/pkgconfig/
|
|
@perl -pi -e 's|!!PREFIX!!|${TRUEPREFIX}|g; s|!!VERSION!!|${VERSION}|g' \
|
|
${PREFIX}/bin/nss-config ${PREFIX}/lib/pkgconfig/nss.pc
|
|
|
|
do-regress:
|
|
cd ${WRKSRC}/tests && ${SETENV} BUILD_OPT=1 \
|
|
PATH="${NSSOBJ}/bin:${PATH}" \
|
|
LD_LIBRARY_PATH="${NSSOBJ}/lib" ./all.sh
|
|
|
|
.include <bsd.port.mk>
|