summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-02-05 22:58:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 23:59:36 +0000
commitaf57b2e7ca7bb17d9cb1552e5df6f04d4a39db82 (patch)
tree4730962004fadd13ec4160f6a266d2ddf4cc2f27 /meta/recipes-support
parentadbe09435abf291a163825a4b49582c200be83aa (diff)
downloadpoky-af57b2e7ca7bb17d9cb1552e5df6f04d4a39db82.tar.gz
nspr: Integrate version 4.8.9
(From OE-Core rev: cbe6eced99566129c575b43a58cdde2ac669a741) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/nspr/files/nspr.pc.in11
-rw-r--r--meta/recipes-support/nspr/nspr_4.8.9.bb37
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-support/nspr/files/nspr.pc.in b/meta/recipes-support/nspr/files/nspr.pc.in
new file mode 100644
index 0000000000..e7af08d271
--- /dev/null
+++ b/meta/recipes-support/nspr/files/nspr.pc.in
@@ -0,0 +1,11 @@
1os_libs=-lpthread -ldl
2prefix=OEPREFIX
3exec_prefix=OEEXECPREFIX
4libdir=OELIBDIR
5includedir=OEINCDIR
6
7Name: NSPR
8Description: The Netscape Portable Runtime
9Version: 4.8.9
10Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl
11Cflags:
diff --git a/meta/recipes-support/nspr/nspr_4.8.9.bb b/meta/recipes-support/nspr/nspr_4.8.9.bb
new file mode 100644
index 0000000000..da324fcaad
--- /dev/null
+++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
@@ -0,0 +1,37 @@
1DESCRIPTION = "Netscape Portable Runtime Library"
2HOMEPAGE = "http://www.mozilla.org/projects/nspr/"
3LICENSE = "GPL-2.0 | MPL-1.1 | LGPL-2.1"
4LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=40;md5=99d4d7d68bbc4bc60ebf8c15ed295f28 \
5 file://Makefile.in;beginline=4;endline=38;md5=c2b512182a334e1bfa1edc4d1c84a298 "
6SECTION = "libs/network"
7
8PR = "r0"
9
10SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz"
11
12SRC_URI += "file://nspr.pc.in "
13
14SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8"
15SRC_URI[sha256sum] = "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce"
16
17S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
18
19inherit autotools
20
21do_configure() {
22 oe_runconf
23}
24
25do_compile_prepend() {
26 oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
27}
28
29do_install_append() {
30 install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
31 sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
32 sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
33 sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
34 sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
35}
36
37