openbsd-ports/security/nss/Makefile
kurt 7c0da245f7 import nss 3.11.4
Network Security Services (NSS) is a set of libraries designed to
support cross-platform development of security-enabled client and
server applications.

Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5,
PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other
security standards.

from MAINTAINER Martynas Venckus <martynas at altroot.org>. okay jolan@
2006-12-04 17:19:54 +00:00

67 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2006/12/04 17:19:54 kurt Exp $
COMMENT= "libraries to support development of security-enabled apps"
VERSION= 3.11.4
DISTNAME= nss-${VERSION}
SO_VERSION= 18.0
.for _lib in freebl3 nss3 nssckbi smime3 softokn3 ssl3
SHARED_LIBS+= ${_lib} ${SO_VERSION}
.endfor
CATEGORIES= security
HOMEPAGE= http://www.mozilla.org/projects/security/pki/nss/
MAINTAINER= Martynas Venckus <martynas@altroot.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.>=17,plc4.>=17,plds4.>=17:nspr->=4.6.4p1:devel/nspr
MAKE_ENV= BUILD_OPT=1 \
LOCALBASE="${LOCALBASE}" \
NSS_ENABLE_ECC=1 \
SO_VERSION="${SO_VERSION}"
CFLAGS+= -I${LOCALBASE}/include/nspr
USE_GMAKE= Yes
WRKSRC= ${WRKDIST}/mozilla/security/nss
NSSDIST= ${WRKDIST}/mozilla/dist
NSSOBJ= ${NSSDIST}/OpenBSD`uname -r`_OPT.OBJ
ALL_TARGET= nss_build_all
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/*.{chk,a} ${PREFIX}/lib/
${INSTALL_PROGRAM} ${NSSOBJ}/bin/* ${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
# unknown manpage type
# ${INSTALL_MAN} ${WRKSRC}/cmd/symkeyutil/symkey.man \
# ${PREFIX}/man/man1/symkeyutil.1
do-regress:
cd ${WRKSRC}/tests && ${SETENV} PATH="${NSSOBJ}/bin:${PATH}" \
LD_LIBRARY_PATH="${NSSOBJ}/lib" ./all.sh
.include <bsd.port.mk>