blob: dd9abadb452d6a4dbba9c16892b6b52b34d30f2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Ports collection Makefile for: nss
# Date created: 18 December 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nss
PORTVERSION= 3.4.2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src
MAINTAINER= gnome@FreeBSD.org
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
perl:${PORTSDIR}/lang/perl5
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>
|