blob: 40c585ee10dff8f593815efb4a4d2788f8aed343 [file] [log] [blame]
Brad Bishop0f291cc2019-09-01 15:16:57 -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
Brad Bishop93c3acf2019-10-29 09:48:15 -040023SRC_URI[md5sum] = "4755621ff2a7150e208de6bd7decca10"
24SRC_URI[sha256sum] = "b1d1deba966019930f608d1f2b95c40ca3450f1393bcd3a3c001a8ba1d2839ab"
Brad Bishop0f291cc2019-09-01 15:16:57 -040025
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}