summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb')
-rw-r--r--meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb70
1 files changed, 70 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb b/meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb
new file mode 100644
index 0000000000..0f4ae205b1
--- /dev/null
+++ b/meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb
@@ -0,0 +1,70 @@
1SUMMARY = "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 = "https://github.com/lsh123/xmlsec/releases/download/${PV}/${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 \
22 file://ensure-search-path-non-host.patch \
23 "
24
25SRC_URI[sha256sum] = "d82e93b69b8aa205a616b62917a269322bf63a3eaafb3775014e61752b2013ea"
26
27inherit autotools-brokensep ptest pkgconfig
28
29#CFLAGS += "-I${STAGING_INCDIR}/nss3"
30#CPPFLAGS += "-I${STAGING_INCDIR}/nss3"
31
32PACKAGECONFIG ??= "gnutls libgcrypt nss openssl des"
33PACKAGECONFIG[gnutls] = ",,gnutls"
34PACKAGECONFIG[libgcrypt] = ",,libgcrypt"
35PACKAGECONFIG[nss] = "--with-nss=${STAGING_DIR_HOST} --with-nspr=${STAGING_DIR_HOST},--with-nss=no --with-nspr=no,nss nspr"
36PACKAGECONFIG[openssl] = ",,openssl"
37PACKAGECONFIG[des] = ",--disable-des,,"
38
39# these can be dynamically loaded with xmlSecCryptoDLLoadLibrary()
40FILES_SOLIBSDEV = "${libdir}/libxmlsec1.so"
41FILES:${PN} += "${libdir}/libxmlsec1-*.so"
42INSANE_SKIP:${PN} = "dev-so"
43
44FILES:${PN}-dev += "${libdir}/xmlsec1Conf.sh"
45FILES:${PN}-dbg += "${PTEST_PATH}/.debug/*"
46
47RDEPENDS:${PN}-ptest += "${PN}-dev"
48INSANE_SKIP:${PN}-ptest += "dev-deps"
49
50PTEST_EXTRA_ARGS = "top_srcdir=${S} top_builddir=${B}"
51
52do_compile_ptest () {
53 oe_runmake -C ${S}/examples ${PTEST_EXTRA_ARGS} all
54}
55
56do_install:append() {
57 for i in \
58 ${bindir}/xmlsec1-config \
59 ${libdir}/xmlsec1Conf.sh \
60 ${libdir}/pkgconfig/xmlsec1-openssl.pc \
61 ${libdir}/pkgconfig/xmlsec1-gnutls.pc; do
62 sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i
63 done
64}
65
66do_install_ptest () {
67 oe_runmake -C ${S}/examples DESTDIR=${D}${PTEST_PATH} ${PTEST_EXTRA_ARGS} install-ptest
68}
69
70BBCLASSEXTEND = "native"