All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nspr: Integrate version 4.8.9
@ 2012-02-11 12:45 Andrei Gherzan
  0 siblings, 0 replies; 5+ messages in thread
From: Andrei Gherzan @ 2012-02-11 12:45 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
---
 meta/recipes-support/nspr/files/nspr.pc.in |   11 ++++++++
 meta/recipes-support/nspr/nspr_4.8.9.bb    |   37 ++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-support/nspr/files/nspr.pc.in
 create mode 100644 meta/recipes-support/nspr/nspr_4.8.9.bb

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 0000000..e7af08d
--- /dev/null
+++ b/meta/recipes-support/nspr/files/nspr.pc.in
@@ -0,0 +1,11 @@
+os_libs=-lpthread -ldl
+prefix=OEPREFIX
+exec_prefix=OEEXECPREFIX
+libdir=OELIBDIR
+includedir=OEINCDIR
+
+Name: NSPR
+Description: The Netscape Portable Runtime
+Version: 4.8.9
+Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl
+Cflags:
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 0000000..da324fc
--- /dev/null
+++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
@@ -0,0 +1,37 @@
+DESCRIPTION = "Netscape Portable Runtime Library"
+HOMEPAGE =  "http://www.mozilla.org/projects/nspr/"
+LICENSE = "GPL-2.0 | MPL-1.1 | LGPL-2.1"
+LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=40;md5=99d4d7d68bbc4bc60ebf8c15ed295f28 \
+                    file://Makefile.in;beginline=4;endline=38;md5=c2b512182a334e1bfa1edc4d1c84a298 "
+SECTION = "libs/network"
+
+PR = "r0"
+
+SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz"
+
+SRC_URI += "file://nspr.pc.in "
+
+SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8"
+SRC_URI[sha256sum] = "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce"
+
+S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
+
+inherit autotools
+
+do_configure() {
+	oe_runconf
+}
+
+do_compile_prepend() {
+	oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
+}
+
+do_install_append() {
+    install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
+}
+
+
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] nspr: Integrate version 4.8.9
  2012-02-07 17:40 ` Phil Blundell
@ 2012-02-07 18:14   ` Andrei Gherzan
  0 siblings, 0 replies; 5+ messages in thread
From: Andrei Gherzan @ 2012-02-07 18:14 UTC (permalink / raw)
  To: openembedded-core

On 02/07/2012 07:40 PM, Phil Blundell wrote:
> On Tue, 2012-02-07 at 19:33 +0200, Andrei Gherzan wrote:
>> +FILES_${PN} = "/usr/lib/*.so"
>> +FILES_${PN}-dev = "/usr/bin/* /usr/include/* /usr/share/aclocal/* /usr/lib/pkgconfig/*"
>> +FILE_${PN}-staticdev= "/usr/lib/*.a"
> That all looks rather dubious.  The last line surely isn't accomplishing
> anything and I suspect the other three are largely wrong/useless as
> well.  What problem were you trying to solve by adding those?
>
> p.
You right. These line are useless here as they end up in the right rpm 
by default. Resending patch...

@g



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] nspr: Integrate version 4.8.9
  2012-02-07 17:33 Andrei Gherzan
  2012-02-07 17:35 ` Otavio Salvador
@ 2012-02-07 17:40 ` Phil Blundell
  2012-02-07 18:14   ` Andrei Gherzan
  1 sibling, 1 reply; 5+ messages in thread
From: Phil Blundell @ 2012-02-07 17:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2012-02-07 at 19:33 +0200, Andrei Gherzan wrote:
> +FILES_${PN} = "/usr/lib/*.so"
> +FILES_${PN}-dev = "/usr/bin/* /usr/include/* /usr/share/aclocal/* /usr/lib/pkgconfig/*"
> +FILES_${PN}-dbg = "/usr/bin/.debug/* /usr/lib/.debug/* /usr/src/debug/*"
> +FILE_${PN}-staticdev= "/usr/lib/*.a"

That all looks rather dubious.  The last line surely isn't accomplishing
anything and I suspect the other three are largely wrong/useless as
well.  What problem were you trying to solve by adding those?

p.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] nspr: Integrate version 4.8.9
  2012-02-07 17:33 Andrei Gherzan
@ 2012-02-07 17:35 ` Otavio Salvador
  2012-02-07 17:40 ` Phil Blundell
  1 sibling, 0 replies; 5+ messages in thread
From: Otavio Salvador @ 2012-02-07 17:35 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

On Tue, Feb 7, 2012 at 15:33, Andrei Gherzan <andrei@gherzan.ro> wrote:

>  meta/recipes-support/nspr/files/nspr.pc |   11 ++++++++
>

Just a cosmetic issue, name the nspr.pc file nspr.pc.in so it is clear that
it is going to be processed.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 930 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] nspr: Integrate version 4.8.9
@ 2012-02-07 17:33 Andrei Gherzan
  2012-02-07 17:35 ` Otavio Salvador
  2012-02-07 17:40 ` Phil Blundell
  0 siblings, 2 replies; 5+ messages in thread
From: Andrei Gherzan @ 2012-02-07 17:33 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
---
 meta/recipes-support/nspr/files/nspr.pc |   11 ++++++++
 meta/recipes-support/nspr/nspr_4.8.9.bb |   40 +++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-support/nspr/files/nspr.pc
 create mode 100644 meta/recipes-support/nspr/nspr_4.8.9.bb

diff --git a/meta/recipes-support/nspr/files/nspr.pc b/meta/recipes-support/nspr/files/nspr.pc
new file mode 100644
index 0000000..bbb7b5a
--- /dev/null
+++ b/meta/recipes-support/nspr/files/nspr.pc
@@ -0,0 +1,11 @@
+os_libs=-lpthread -ldl
+prefix=OEPREFIX
+exec_prefix=OEEXECPREFIX
+libdir=OELIBDIR
+includedir=OEINCDIR
+
+Name: NSPR
+Description: The Netscape Portable Runtime
+Version: 4.8.9
+Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl
+Cflags: 
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 0000000..fab8657
--- /dev/null
+++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
@@ -0,0 +1,40 @@
+DESCRIPTION = "Netscape Portable Runtime Library"
+HOMEPAGE =  "http://www.mozilla.org/projects/nspr/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+SECTION = "libs/network"
+
+PR = "r0"
+
+SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz"
+
+SRC_URI += "file://nspr.pc "
+
+SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8"
+SRC_URI[sha256sum] = "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce"
+
+S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
+
+inherit autotools 
+
+do_configure() {
+	oe_runconf
+}
+
+do_compile_prepend() {
+	oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
+}
+
+do_install_append() {
+    install -D ${WORKDIR}/nspr.pc ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
+}
+
+FILES_${PN} = "/usr/lib/*.so"
+FILES_${PN}-dev = "/usr/bin/* /usr/include/* /usr/share/aclocal/* /usr/lib/pkgconfig/*"
+FILES_${PN}-dbg = "/usr/bin/.debug/* /usr/lib/.debug/* /usr/src/debug/*"
+FILE_${PN}-staticdev= "/usr/lib/*.a"
+
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-11 12:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-11 12:45 [PATCH] nspr: Integrate version 4.8.9 Andrei Gherzan
  -- strict thread matches above, loose matches on Subject: below --
2012-02-07 17:33 Andrei Gherzan
2012-02-07 17:35 ` Otavio Salvador
2012-02-07 17:40 ` Phil Blundell
2012-02-07 18:14   ` Andrei Gherzan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.