blob: 6d8b53d308f30ed0033669924ca1054dd75a7c99 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001DESCRIPTION = "The gSOAP toolkit provides a unique SOAP-to-C/C++ language binding \
2for the development of SOAP Web Services and clients."
3SECTION = "devel"
4LICENSE = "GPL-2.0-with-OpenSSL-exception"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4f40a941379143186f9602242c3fb729 \
6 file://GPLv2_license.txt;md5=a33672dbe491b6517750a0389063508b"
7
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05008SRC_URI = "https://prdownloads.sourceforge.net/${BPN}2/${BPN}_${PV}.zip"
9SRC_URI:append:libc-musl = " file://0001-Simplify-check-for-gethostbyname_r.patch"
10SRC_URI[sha256sum] = "b65190ebf8c2517d6fafbdc2000bc7bc650d921a02f4aa53eb1e3df267592c4a"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011
12inherit autotools
13
14BBCLASSEXTEND = "native"
15
16S = "${WORKDIR}/${BPN}-2.8"
17
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050018EXTRA_OECONF += "--enable-ipv6 --enable-c-locale"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019PARALLEL_MAKE = ""
20
Patrick Williams213cb262021-08-07 19:21:33 -050021EXTRA_OEMAKE:class-target = "SOAP=${STAGING_BINDIR_NATIVE}/soapcpp2"
Andrew Geissler82c905d2020-04-13 13:39:40 -050022
23DEPENDS = "openssl zlib flex bison bison-native"
Patrick Williams213cb262021-08-07 19:21:33 -050024DEPENDS:append:class-target = " gsoap-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050025
Patrick Williams213cb262021-08-07 19:21:33 -050026do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 install -d ${D}${libdir}
28 for lib in libgsoapssl libgsoapssl++ libgsoap libgsoapck++ libgsoap++ libgsoapck
29 do
30 oe_libinstall -C gsoap $lib ${D}${libdir}
31 done
32}
33
Patrick Williams213cb262021-08-07 19:21:33 -050034do_install:class-native() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050035 oe_runmake DESTDIR=${D} BINDIR=${D}${bindir} install
36}
37
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN} = "${bindir}/wsdl2h ${bindir}/soapcpp2"
39FILES:${PN} += "${datadir}"
40FILES:${PN}-staticdev = "${libdir}"
41FILES:${PN}-dev = "${includedir}"
42RRECOMMENDS:${PN}-dev = "${PN}-staticdev"