Patchwork [meta-oe] gsoap: added gsoap 2.8.12 recipe

login
register
mail settings
Submitter eu@felipetonello.com
Date Feb. 20, 2013, 6:38 p.m.
Message ID <1361385530-2248-1-git-send-email-ftonello@cercacor.com>
Download mbox | patch
Permalink /patch/44939/
State Superseded, archived
Headers show

Comments

eu@felipetonello.com - Feb. 20, 2013, 6:38 p.m.
From: "Felipe F. Tonello" <ftonello@cercacor.com>

This recipe was inspired on the gsoap recipe in oe-classic.

Signed-off-by: Felipe F. Tonello <ftonello@cercacor.com>
---
 .../recipes-support/gsoap/gsoap-native_2.8.12.bb   |   17 +++++++++++++++
 meta-oe/recipes-support/gsoap/gsoap_2.8.12.bb      |   17 +++++++++++++++
 meta-oe/recipes-support/gsoap/gsoap_2.8.12.inc     |   23 ++++++++++++++++++++
 3 files changed, 57 insertions(+)
 create mode 100644 meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb
 create mode 100644 meta-oe/recipes-support/gsoap/gsoap_2.8.12.bb
 create mode 100644 meta-oe/recipes-support/gsoap/gsoap_2.8.12.inc
Khem Raj - Feb. 24, 2013, 8:23 a.m.
On (20/02/13 10:38), eu@felipetonello.com wrote:
> From: "Felipe F. Tonello" <ftonello@cercacor.com>
> 
> This recipe was inspired on the gsoap recipe in oe-classic.
> 
> Signed-off-by: Felipe F. Tonello <ftonello@cercacor.com>
> ---
>  .../recipes-support/gsoap/gsoap-native_2.8.12.bb   |   17 +++++++++++++++
>  meta-oe/recipes-support/gsoap/gsoap_2.8.12.bb      |   17 +++++++++++++++
>  meta-oe/recipes-support/gsoap/gsoap_2.8.12.inc     |   23 ++++++++++++++++++++
>  3 files changed, 57 insertions(+)
>  create mode 100644 meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb
>  create mode 100644 meta-oe/recipes-support/gsoap/gsoap_2.8.12.bb
>  create mode 100644 meta-oe/recipes-support/gsoap/gsoap_2.8.12.inc
> 
> diff --git a/meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb b/meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb
> new file mode 100644
> index 0000000..a83eb26
> --- /dev/null
> +++ b/meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb
> @@ -0,0 +1,17 @@
> +require gsoap_${PV}.inc
> +
> +DEPENDS = ""
> +
> +EXTRA_OEMAKE = ""
> +
> +inherit native
> +
> +do_install() {
> +    oe_runmake DESTDIR=${D} BINDIR=${D}${bindir} install
> +
> +    install -m 0755 ${S}/gsoap/src/soapcpp2 ${STAGING_BINDIR_NATIVE}/

can you see if you can use BBCLASSEXTEND to generate the native package
?
why is installing to STAGING_BINDIR_NATIVE needed ?

Patch

diff --git a/meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb b/meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb
new file mode 100644
index 0000000..a83eb26
--- /dev/null
+++ b/meta-oe/recipes-support/gsoap/gsoap-native_2.8.12.bb
@@ -0,0 +1,17 @@ 
+require gsoap_${PV}.inc
+
+DEPENDS = ""
+
+EXTRA_OEMAKE = ""
+
+inherit native
+
+do_install() {
+    oe_runmake DESTDIR=${D} BINDIR=${D}${bindir} install
+
+    install -m 0755 ${S}/gsoap/src/soapcpp2 ${STAGING_BINDIR_NATIVE}/
+}
+
+
+SRC_URI[md5sum] = "5700d26fc6fe3073d038349e19c3640d"
+SRC_URI[sha256sum] = "51eef118544fa846f4d2dea2eedf91c84c46a1abeafc5eee3dcff783f4015a00"
diff --git a/meta-oe/recipes-support/gsoap/gsoap_2.8.12.bb b/meta-oe/recipes-support/gsoap/gsoap_2.8.12.bb
new file mode 100644
index 0000000..5db2e61
--- /dev/null
+++ b/meta-oe/recipes-support/gsoap/gsoap_2.8.12.bb
@@ -0,0 +1,17 @@ 
+require gsoap_${PV}.inc
+
+DEPENDS = "gsoap-native openssl"
+
+do_install_append() {
+   install -d ${D}${libdir}
+   for lib in libgsoapssl libgsoapssl++ libgsoap libgsoapck++ libgsoap++ libgsoapck
+   do
+       oe_libinstall -C gsoap $lib ${D}${libdir}
+   done
+}
+
+FILES_${PN} = "${bindir}/wsdl2h ${bindir}/soapcpp2"
+FILES_${PN} += "${datadir}"
+
+SRC_URI[md5sum] = "5700d26fc6fe3073d038349e19c3640d"
+SRC_URI[sha256sum] = "51eef118544fa846f4d2dea2eedf91c84c46a1abeafc5eee3dcff783f4015a00"
diff --git a/meta-oe/recipes-support/gsoap/gsoap_2.8.12.inc b/meta-oe/recipes-support/gsoap/gsoap_2.8.12.inc
new file mode 100644
index 0000000..30cf9a6
--- /dev/null
+++ b/meta-oe/recipes-support/gsoap/gsoap_2.8.12.inc
@@ -0,0 +1,23 @@ 
+DESCRIPTION = "The gSOAP toolkit provides a unique SOAP-to-C/C++ language binding \
+for the development of SOAP Web Services and clients."
+SECTION = "devel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b338b08b1b61e028e0f399a4de25e58f"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/gsoap2/gsoap_${PV}.zip \
+        "
+
+inherit autotools
+
+PR = "r1"
+
+S = "${WORKDIR}/gsoap-2.8"
+
+FILES_${PN}-dev = "${includedir}"
+RRECOMMENDS_${PN}-dev = "${PN}-staticdev"
+
+FILES_${PN}-staticdev = "${libdir}"
+
+PARALLEL_MAKE = ""
+
+EXTRA_OEMAKE = "SOAP=${STAGING_BINDIR_NATIVE}/soapcpp2"