Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "XML Security Library is a C library based on LibXML2" |
| 2 | DESCRIPTION = "\ |
| 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 | " |
| 7 | HOMEPAGE = "http://www.aleksey.com/xmlsec/" |
| 8 | DEPENDS = "libtool libxml2 libxslt openssl zlib libgcrypt gnutls nss nspr libgpg-error" |
| 9 | |
| 10 | LICENSE = "MIT" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=352791d62092ea8104f085042de7f4d0" |
| 12 | |
| 13 | SECTION = "libs" |
| 14 | |
| 15 | SRC_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 | |
| 23 | SRC_URI[md5sum] = "9c4aaf9ff615a73921b9e3bf4988d878" |
| 24 | SRC_URI[sha256sum] = "8d8276c9c720ca42a3b0023df8b7ae41a2d6c5f9aa8d20ed1672d84cc8982d50" |
| 25 | |
| 26 | inherit autotools-brokensep ptest pkgconfig |
| 27 | |
| 28 | CFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3" |
| 29 | CPPFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3" |
| 30 | |
| 31 | EXTRA_OECONF = "\ |
| 32 | --with-nss=${STAGING_LIBDIR}/../.. --with-nspr=${STAGING_LIBDIR}/../.. \ |
| 33 | " |
| 34 | |
| 35 | FILES_${PN}-dev += "${libdir}/xmlsec1Conf.sh" |
| 36 | FILES_${PN}-dbg += "${PTEST_PATH}/.debug/*" |
| 37 | |
| 38 | RDEPENDS_${PN}-ptest += "${PN}-dev" |
| 39 | INSANE_SKIP_${PN}-ptest += "dev-deps" |
| 40 | |
| 41 | PTEST_EXTRA_ARGS = "top_srcdir=${S} top_builddir=${B}" |
| 42 | |
| 43 | do_compile_ptest () { |
| 44 | oe_runmake -C ${S}/examples ${PTEST_EXTRA_ARGS} all |
| 45 | } |
| 46 | |
| 47 | do_install_append() { |
| 48 | for i in ${bindir}/xmlsec1-config ${libdir}/xmlsec1Conf.sh \ |
| 49 | ${libdir}/pkgconfig/xmlsec1-openssl.pc; do |
| 50 | sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i |
| 51 | done |
| 52 | } |
| 53 | |
| 54 | do_install_ptest () { |
| 55 | oe_runmake -C ${S}/examples DESTDIR=${D}${PTEST_PATH} ${PTEST_EXTRA_ARGS} install-ptest |
| 56 | } |