diff mbox

[2/2] nspr: New recipe

Message ID 1383722634-28803-2-git-send-email-kibo@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Kim Bøndergaard Nov. 6, 2013, 7:23 a.m. UTC
---
 recipes/nspr/files/nsinstall.patch | 11 ++++++++
 recipes/nspr/nspr_4.10.oe          | 58 ++++++++++++++++++++++++++++++++++++++
 recipes/nspr/nspr_4.10.oe.sig      |  1 +
 3 files changed, 70 insertions(+)
 create mode 100644 recipes/nspr/files/nsinstall.patch
 create mode 100644 recipes/nspr/nspr_4.10.oe
 create mode 100644 recipes/nspr/nspr_4.10.oe.sig

Comments

Esben Haabendal Nov. 28, 2013, 1:04 p.m. UTC | #1
Merged to master, thanks.

/Esben
diff mbox

Patch

diff --git a/recipes/nspr/files/nsinstall.patch b/recipes/nspr/files/nsinstall.patch
new file mode 100644
index 0000000..722e4d6
--- /dev/null
+++ b/recipes/nspr/files/nsinstall.patch
@@ -0,0 +1,11 @@ 
+--- nspr/configure.orig	2013-11-05 09:41:33.006022388 +0100
++++ nspr/configure	2013-11-05 09:34:32.242034820 +0100
+@@ -755,7 +755,7 @@
+ OBJDIR='$(OBJDIR_NAME)'
+ OBJDIR_NAME=.
+ OBJDIR_SUFFIX=OBJ
+-NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
++NSINSTALL=nsinstall
+ NOSUCHFILE=/no-such-file
+ LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
+ LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
diff --git a/recipes/nspr/nspr_4.10.oe b/recipes/nspr/nspr_4.10.oe
new file mode 100644
index 0000000..3cf159d
--- /dev/null
+++ b/recipes/nspr/nspr_4.10.oe
@@ -0,0 +1,58 @@ 
+SUMMARY = "Netscape portable runtime, or NSPR, a platform abstraction library"
+DESCRIPTION = """
+NSPR, a platform abstraction library, makes all operating systems it supports
+appear the same to (for example) Mozilla-style web-browsers. NSPR provides platform
+independence for non-GUI operating system facilities
+"""
+HOMEPAGE = "https://developer.mozilla.org/docs/NSPR"
+LICENSE = "MPL"
+
+RECIPE_TYPES = "machine native"
+
+SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10/src/${PN}-${PV}.tar.gz"
+SRC_URI:>machine += " file://nsinstall.patch"
+
+inherit pkgconfig autotools auto-package-libs auto-package-utils
+
+DEPENDS += "libstdc++ libdl librt libpthread "
+DEPENDS:>machine += " native:nspr-nsinstall"
+
+EXTRA_OECONF:>machine = ""
+
+EXTRA_OECONF += " \
+	--enable-mdupdate \
+"
+
+S = "${SRCDIR}/${PN}-${PV}/${PN}"
+
+NSINSTALL_POST_FUNC = ""
+NSINSTALL_POST_FUNC:native = "do_install_nsinstall"
+do_install[postfuncs] += "${NSINSTALL_POST_FUNC}"
+do_install_nsinstall() {
+	install -d ${D}/${bindir}
+	install -m 0755 ${S}/config/nsinstall ${D}/${bindir}
+}
+
+
+
+AUTO_PACKAGE_UTILS = "nspr-config nsinstall"
+
+FILES_${PN}-nspr-config += " ${bindir}/compile-et.pl "
+FILES_${PN}-nspr-config += " ${bindir}/prerr.properties "
+
+AUTO_PACKAGE_UTILS_RDEPENDS += "${PN}"
+
+# This package only creates .so files. These are
+# what we need in the 'main package'
+SOLIBS = ".so"
+SOLIBSDEV = ".so.*"
+
+AUTO_PACKAGE_LIBS = "nspr4 plc4 plds4"
+AUTO_PACKAGE_LIB_RDEPENDS = "libpthread libdl librt libc"
+
+RDEPENDS_${PN} = "libnspr4 libplc4 libplds4"
+
+RDEPENDS_${PN}-plc4 = "libnspr4"
+RDEPENDS_${PN}-plds4 = "libnspr4"
+
+DEPENDS_${PN} = "${LIBS_AUTO_PACKAGES}"
diff --git a/recipes/nspr/nspr_4.10.oe.sig b/recipes/nspr/nspr_4.10.oe.sig
new file mode 100644
index 0000000..b96462a
--- /dev/null
+++ b/recipes/nspr/nspr_4.10.oe.sig
@@ -0,0 +1 @@ 
+10dbf68c07497dab30be09db526931c885d5a7e9  nspr-4.10.tar.gz