blob: eac8d6bd4f07e0c7f94e77c3595adffbaf78bfc3 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "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://run-ptest \
21 "
22
23SRC_URI[md5sum] = "508bee7e4f1b99f2d50aaa7d38ede56e"
24SRC_URI[sha256sum] = "97d756bad8e92588e6997d2227797eaa900d05e34a426829b149f65d87118eb6"
25
26inherit autotools-brokensep ptest pkgconfig
27
28CFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3"
29CPPFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3"
30
31PACKAGECONFIG ??= "gnutls libgcrypt nss openssl des"
32PACKAGECONFIG[gnutls] = ",,gnutls"
33PACKAGECONFIG[libgcrypt] = ",,libgcrypt"
34PACKAGECONFIG[nss] = "--with-nss=${STAGING_LIBDIR}/../.. --with-nspr=${STAGING_LIBDIR}/../..,,nss nspr"
35PACKAGECONFIG[openssl] = ",,openssl"
36PACKAGECONFIG[des] = ",--disable-des,,"
37
38# these can be dynamically loaded with xmlSecCryptoDLLoadLibrary()
39FILES_SOLIBSDEV = "${libdir}/libxmlsec1.so"
40FILES_${PN} += "${libdir}/libxmlsec1-*.so"
41INSANE_SKIP_${PN} = "dev-so"
42
43FILES_${PN}-dev += "${libdir}/xmlsec1Conf.sh"
44FILES_${PN}-dbg += "${PTEST_PATH}/.debug/*"
45
46RDEPENDS_${PN}-ptest += "${PN}-dev"
47INSANE_SKIP_${PN}-ptest += "dev-deps"
48
49PTEST_EXTRA_ARGS = "top_srcdir=${S} top_builddir=${B}"
50
51do_compile_ptest () {
52 oe_runmake -C ${S}/examples ${PTEST_EXTRA_ARGS} all
53}
54
55do_install_append() {
56 for i in ${bindir}/xmlsec1-config ${libdir}/xmlsec1Conf.sh \
57 ${libdir}/pkgconfig/xmlsec1-openssl.pc; do
58 sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i
59 done
60}
61
62do_install_ptest () {
63 oe_runmake -C ${S}/examples DESTDIR=${D}${PTEST_PATH} ${PTEST_EXTRA_ARGS} install-ptest
64}