summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-12-10 00:59:42 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-12-10 00:59:42 +0800
commit2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05 (patch)
tree30522fff5673b491a71b1c1b6088401d3637d8c8
parent08980e4ac8703b49ef6fcb9580f699310b81bded (diff)
downloadmarcuscom-ports-2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05.tar
marcuscom-ports-2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05.tar.gz
marcuscom-ports-2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05.tar.bz2
marcuscom-ports-2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05.tar.lz
marcuscom-ports-2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05.tar.xz
marcuscom-ports-2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05.tar.zst
marcuscom-ports-2ac28ba55029b8d51f4ea3bff9a2e3d18b197a05.zip
Install nss pkgconfig file, skeleton for nss.pc obtained from firefox 3.0.a
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8024 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--security/nss/Makefile7
-rw-r--r--security/nss/files/nss.pc.in11
-rw-r--r--security/nss/pkg-plist1
3 files changed, 17 insertions, 2 deletions
diff --git a/security/nss/Makefile b/security/nss/Makefile
index 89a7082c5..e216f5160 100644
--- a/security/nss/Makefile
+++ b/security/nss/Makefile
@@ -3,11 +3,11 @@
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/security/nss/Makefile,v 1.2 2006/12/09 15:18:35 ahze Exp $
+# $MCom: ports/security/nss/Makefile,v 1.3 2006/12/09 15:43:12 ahze Exp $
PORTNAME= nss
PORTVERSION= ${_MAJOR}.${_MINOR}.${_PATCH}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src
@@ -67,6 +67,8 @@ post-patch:
s|@libdir@|${PREFIX}/lib/nss|; \
s|@prefix@|${PREFIX}|' \
${FILESDIR}/nss-config.in >${WRKDIR}/nss-config
+ @${SED} -e 's|@PREFIX@|${PREFIX}|; s|@PORTVERSION@|${PORTVERSION}|' \
+ ${FILESDIR}/nss.pc.in >${WRKDIR}/nss.pc
.for i in MAJOR MINOR PATCH
@${SED} -i.${i} -e 's|@${i}@|${_${i}}|' ${WRKDIR}/nss-config
.endfor
@@ -80,5 +82,6 @@ do-install:
${INSTALL_PROGRAM} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/bin/* \
${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/nss-config ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKDIR}/nss.pc ${PREFIX}/libdata/pkgconfig
.include <bsd.port.post.mk>
diff --git a/security/nss/files/nss.pc.in b/security/nss/files/nss.pc.in
new file mode 100644
index 000000000..374ad9239
--- /dev/null
+++ b/security/nss/files/nss.pc.in
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=@PREFIX@
+libdir=@PREFIX@/lib/nss
+includedir=@PREFIX@/include
+
+Name: NSS
+Description: Mozilla Network Security Services
+Version: @PORTVERSION@
+Requires: nspr
+Libs: -L${libdir} -lnss3 -lsmime3 -lssl3 -lsoftokn3
+Cflags: -I${includedir}/nss
diff --git a/security/nss/pkg-plist b/security/nss/pkg-plist
index 9f2e50b62..e19cb7c12 100644
--- a/security/nss/pkg-plist
+++ b/security/nss/pkg-plist
@@ -162,6 +162,7 @@ lib/nss/libsoftokn3.so.1
lib/nss/libssl.a
lib/nss/libssl3.so
lib/nss/libssl3.so.1
+libdata/pkgconfig/nss.pc
@dirrm lib/nss
@dirrm include/nss/nss
@dirrm include/nss