Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [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://xmlsec1-fix-a-typo-in-examples-verify3.c.patch \ |
| 21 | file://run-ptest \ |
| 22 | " |
| 23 | |
| 24 | SRC_URI[md5sum] = "dbbef1efc69e61bc4629650205a05b41" |
| 25 | SRC_URI[sha256sum] = "967ca83edf25ccb5b48a3c4a09ad3405a63365576503bf34290a42de1b92fcd2" |
| 26 | |
| 27 | inherit autotools-brokensep ptest pkgconfig |
| 28 | |
| 29 | CFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3" |
| 30 | CPPFLAGS += "-I${STAGING_INCDIR}/nspr4 -I${STAGING_INCDIR}/nss3" |
| 31 | |
| 32 | EXTRA_OECONF = "\ |
| 33 | --with-nss=${STAGING_LIBDIR}/../.. --with-nspr=${STAGING_LIBDIR}/../.. \ |
| 34 | " |
| 35 | |
| 36 | FILES_${PN}-dev += "${libdir}/xmlsec1Conf.sh" |
| 37 | FILES_${PN}-dbg += "${PTEST_PATH}/.debug/*" |
| 38 | |
| 39 | RDEPENDS_${PN}-ptest += "${PN}-dev" |
| 40 | INSANE_SKIP_${PN}-ptest += "dev-deps" |
| 41 | |
| 42 | PTEST_EXTRA_ARGS = "top_srcdir=${S} top_builddir=${B}" |
| 43 | |
| 44 | do_compile_ptest () { |
| 45 | oe_runmake -C ${S}/examples ${PTEST_EXTRA_ARGS} all |
| 46 | } |
| 47 | |
| 48 | do_install_append() { |
| 49 | for i in ${bindir}/xmlsec1-config ${libdir}/xmlsec1Conf.sh \ |
| 50 | ${libdir}/pkgconfig/xmlsec1-openssl.pc; do |
| 51 | sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i |
| 52 | done |
| 53 | } |
| 54 | |
| 55 | do_install_ptest () { |
| 56 | oe_runmake -C ${S}/examples DESTDIR=${D}${PTEST_PATH} ${PTEST_EXTRA_ARGS} install-ptest |
| 57 | } |