From patchwork Wed Nov 6 07:23:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 288744 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id BAE142C00CC for ; Wed, 6 Nov 2013 18:24:02 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 7FA0F451C4 for ; Wed, 6 Nov 2013 08:23:57 +0100 (CET) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id 25F0E3F965 for ; Wed, 6 Nov 2013 08:23:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=3204; q=dns/txt; s=ironport1; t=1383722636; x=1415258636; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=6963TqMal1vXKQO0oB+nmkzoSMU0jl+6S/zufB67UnE=; b=adQsiGCzw7Hfc47Z6KivvYIvzfJUMlNzNZchnsj+s8KitdiE8rnO3qb3 yEW6B4af2U8tZ+N10tjc1n3h6Hw2YycAKU7Z9UnqulFl3DiKf+7I81j5O MahZNX6APtzF6STMYRp9/+LJoWiyNKhsTPm+oit++kiPly+KhDIouFb3S U=; X-IronPort-AV: E=Sophos;i="4.93,644,1378850400"; d="scan'208";a="4111916" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 06 Nov 2013 08:23:55 +0100 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Wed, 6 Nov 2013 08:23:55 +0100 Received: by localhost (Postfix, from userid 30019) id 10F07681500; Wed, 6 Nov 2013 07:23:55 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: , Subject: [PATCH 2/2] nspr: New recipe Date: Wed, 6 Nov 2013 07:23:54 +0000 Message-ID: <1383722634-28803-2-git-send-email-kibo@prevas.dk> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1383722634-28803-1-git-send-email-kibo@prevas.dk> References: <1383722634-28803-1-git-send-email-kibo@prevas.dk> MIME-Version: 1.0 Cc: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org --- 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 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