[oe-commits] Koen Kooi : nss: add pkgconfig support

git version control git at git.openembedded.org
Fri Apr 16 21:14:57 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 195ba1b1bdfebdb7d083f9837e244266685f4a2c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=195ba1b1bdfebdb7d083f9837e244266685f4a2c

Author: Koen Kooi <koen at openembedded.org>
Date:   Fri Apr 16 13:08:34 2010 +0200

nss: add pkgconfig support

---

 recipes/mozilla/nss-3.12/nss.pc.in |   11 +++++++++++
 recipes/mozilla/nss_3.12.bb        |    6 ++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/recipes/mozilla/nss-3.12/nss.pc.in b/recipes/mozilla/nss-3.12/nss.pc.in
new file mode 100644
index 0000000..e27783f
--- /dev/null
+++ b/recipes/mozilla/nss-3.12/nss.pc.in
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/nss
+
+Name: NSS
+Description: Mozilla Network Security Services
+Version: @VERSION@
+Requires: nspr
+Libs: -L${libdir} -lnss3 -lnssutil3 -lsmime3 -lssl3
+Cflags: -I${includedir}
diff --git a/recipes/mozilla/nss_3.12.bb b/recipes/mozilla/nss_3.12.bb
index 5edb1ba..c41d0a8 100644
--- a/recipes/mozilla/nss_3.12.bb
+++ b/recipes/mozilla/nss_3.12.bb
@@ -3,6 +3,8 @@ HOMEPAGE = "http://www.mozilla.org/projects/security/pki/nss/"
 
 LICENSE = "MPL1.1 GPL LGPL"
 
+PR = "r1"
+
 DEPENDS = "sqlite3 nspr"
 
 SRC_URI = "\
@@ -17,6 +19,7 @@ SRC_URI = "\
 	file://91_build_pwdecrypt.dpatch;patch=1 \
 	file://95_add_spi+cacert_ca_certs.dpatch;patch=1 \
 	file://build-fix.patch;patch=1 \
+    file://nss.pc.in \
 "
 
 SRC_URI[archive.md5sum] = "917f4e05f3982bd7fceaede197f0e1d4"
@@ -93,6 +96,9 @@ do_install() {
 		install -m 755 -t ${D}/${bindir} $binary
 	done
 
+	install -d ${D}${libdir}/pkgconfig/
+	sed 's/@VERSION@/${PV}/' ${WORKDIR}/nss.pc.in > ${D}${libdir}/pkgconfig/nss.pc
+
 }
 
 FILES_${PN} = "${bindir} ${libdir}/nss/*.so"





More information about the Openembedded-commits mailing list