blob: 6a8af5111e6127fcaa1e04ac5e90ac7793730356 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "XML Security Library is a C library based on LibXML2"
2DESCRIPTION = "\
3 XML Security Library is a C library based on \
4 LibXML2 and OpenSSL. The library was created with a goal to support major \
5 XML security standards "XML Digital Signature" and "XML Encryption". \
6 "
7HOMEPAGE = "http://www.aleksey.com/xmlsec/"
8DEPENDS = "libtool libxml2 libxslt zlib"
9
10LICENSE = "MIT"
11LIC_FILES_CHKSUM = "file://COPYING;md5=352791d62092ea8104f085042de7f4d0"
12
13SECTION = "libs"
14
15SRC_URI = "http://www.aleksey.com/xmlsec/download/${BP}.tar.gz \
16 file://fix-ltmain.sh.patch \
17 file://change-finding-path-of-nss.patch \
18 file://makefile-ptest.patch \
19 file://xmlsec1-examples-allow-build-in-separate-dir.patch \
20 file://0001-nss-nspr-fix-for-multilib.patch \
21 file://run-ptest \
Andrew Geisslereef63862021-01-29 15:58:13 -060022 file://ensure-search-path-non-host.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050023 "
24
Andrew Geissler4b7c1152020-11-30 19:55:29 -060025SRC_URI[md5sum] = "182f5cbdfb8ddbac535c04470c170dc3"
26SRC_URI[sha256sum] = "9b10bc52cc31e4f76162e3975e50db26b71ab49c571d810b311ca626be5a0b26"
Andrew Geissler82c905d2020-04-13 13:39:40 -050027
28inherit autotools-brokensep ptest pkgconfig
29
30#CFLAGS += "-I${STAGING_INCDIR}/nss3"
31#CPPFLAGS += "-I${STAGING_INCDIR}/nss3"
32
33PACKAGECONFIG ??= "gnutls libgcrypt nss openssl des"
34PACKAGECONFIG[gnutls] = ",,gnutls"
35PACKAGECONFIG[libgcrypt] = ",,libgcrypt"
Andrew Geisslerd688a012020-09-18 13:36:00 -050036PACKAGECONFIG[nss] = "--with-nss=${STAGING_DIR_HOST} --with-nspr=${STAGING_DIR_HOST},--with-nss=no --with-nspr=no,nss nspr"
Andrew Geissler82c905d2020-04-13 13:39:40 -050037PACKAGECONFIG[openssl] = ",,openssl"
38PACKAGECONFIG[des] = ",--disable-des,,"
39
40# these can be dynamically loaded with xmlSecCryptoDLLoadLibrary()
41FILES_SOLIBSDEV = "${libdir}/libxmlsec1.so"
Patrick Williams213cb262021-08-07 19:21:33 -050042FILES:${PN} += "${libdir}/libxmlsec1-*.so"
43INSANE_SKIP:${PN} = "dev-so"
Andrew Geissler82c905d2020-04-13 13:39:40 -050044
Patrick Williams213cb262021-08-07 19:21:33 -050045FILES:${PN}-dev += "${libdir}/xmlsec1Conf.sh"
46FILES:${PN}-dbg += "${PTEST_PATH}/.debug/*"
Andrew Geissler82c905d2020-04-13 13:39:40 -050047
Patrick Williams213cb262021-08-07 19:21:33 -050048RDEPENDS:${PN}-ptest += "${PN}-dev"
49INSANE_SKIP:${PN}-ptest += "dev-deps"
Andrew Geissler82c905d2020-04-13 13:39:40 -050050
51PTEST_EXTRA_ARGS = "top_srcdir=${S} top_builddir=${B}"
52
53do_compile_ptest () {
54 oe_runmake -C ${S}/examples ${PTEST_EXTRA_ARGS} all
55}
56
Patrick Williams213cb262021-08-07 19:21:33 -050057do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050058 for i in ${bindir}/xmlsec1-config ${libdir}/xmlsec1Conf.sh \
59 ${libdir}/pkgconfig/xmlsec1-openssl.pc; do
60 sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i
61 done
62}
63
64do_install_ptest () {
65 oe_runmake -C ${S}/examples DESTDIR=${D}${PTEST_PATH} ${PTEST_EXTRA_ARGS} install-ptest
66}