summaryrefslogtreecommitdiff
path: root/recipes/mozilla
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-04-16 13:08:34 +0200
committerKoen Kooi <koen@openembedded.org>2010-04-16 13:08:34 +0200
commit195ba1b1bdfebdb7d083f9837e244266685f4a2c (patch)
treee55cdf27fa4f9f7542d5a3d957130bd8e67c9847 /recipes/mozilla
parentbf18c876b0b6dd542f80dfccd575d9fa2c3a4fdf (diff)
nss: add pkgconfig support
Diffstat (limited to 'recipes/mozilla')
-rw-r--r--recipes/mozilla/nss-3.12/nss.pc.in11
-rw-r--r--recipes/mozilla/nss_3.12.bb6
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 0000000000..e27783f64d
--- /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 5edb1ba28b..c41d0a83f7 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"