4d0e98d8b6
bsd.port.mk is different from one detected by port's build system. This should fix the build on bento, where ${OSREL} is 4.5, while the build system detects it as 4.4. Note: this is a workarround - we should investigate and fix the real source of the problem when we have more time. Submitted by: bento
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Ports collection Makefile for: nss
|
|
# Date created: 18 December 2001
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nss
|
|
PORTVERSION= 3.3.1
|
|
CATEGORIES= security
|
|
MASTER_SITES= ftp://ftp.mozilla.org/pub/security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src/
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
|
LIB_DEPENDS= nspr4.1:${PORTSDIR}/devel/nspr
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/security/nss
|
|
|
|
INSTALLS_SHLIB= yes
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= BSD_LDOPTS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
|
|
BUILD_OPT=1
|
|
ALL_TARGET= nss_build_all
|
|
CFLAGS+= -I${LOCALBASE}/include/nspr
|
|
|
|
DIST= ${WRKSRC}/../../dist
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/include/nss
|
|
${TAR} -C ${DIST}/public --dereference -cf - . | \
|
|
${TAR} -C ${PREFIX}/include/nss -xf -
|
|
${INSTALL_PROGRAM} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/*.so.1 \
|
|
${PREFIX}/lib
|
|
${INSTALL_PROGRAM} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/bin/* \
|
|
${PREFIX}/bin
|
|
cd ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib && \
|
|
${TAR} -cf - *.so | ${TAR} --unlink -C ${PREFIX}/lib -xf -
|
|
|
|
.include <bsd.port.mk>
|