aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mozilla/nspr.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mozilla/nspr.inc')
-rw-r--r--recipes/mozilla/nspr.inc37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes/mozilla/nspr.inc b/recipes/mozilla/nspr.inc
new file mode 100644
index 0000000000..9afaff97ea
--- /dev/null
+++ b/recipes/mozilla/nspr.inc
@@ -0,0 +1,37 @@
+DESCRIPTION = "Platform independent non-GUI operating system facilities."
+HOMEPAGE = "https://www.mozilla.org/projects/nspr"
+LICENSE = "MPL1.1 GPL LGPL"
+
+PR = "r1"
+
+DEPENDS = "nspr-tools-native"
+
+S = "${WORKDIR}/${P}/mozilla/nsprpub"
+
+inherit autotools
+
+EXTRA_OECONF = "\
+ --enable-ipv6 \
+ --with-mozilla \
+ --includedir=${includedir}/mozilla/nspr \
+ "
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_compile_prepend() {
+ cp ${STAGING_BINDIR_NATIVE}/${P}/now config/now
+ touch config/now
+
+ cp ${STAGING_BINDIR_NATIVE}/${P}/nsinstall config/nsinstall
+ touch config/nsinstall
+}
+
+do_install_prepend() {
+ cp ${STAGING_BINDIR_NATIVE}/${P}/now config/now
+ touch config/now
+
+ cp ${STAGING_BINDIR_NATIVE}/${P}/nsinstall config/nsinstall
+ touch config/nsinstall
+}
+
+LEAD_SONAME = "libnspr4.so"