Brad Bishop | 0f291cc | 2019-09-01 15:16:57 -0400 | [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 zlib" |
| 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 | |
Brad Bishop | 93c3acf | 2019-10-29 09:48:15 -0400 | [diff] [blame] | 23 | SRC_URI[md5sum] = "4755621ff2a7150e208de6bd7decca10" |
| 24 | SRC_URI[sha256sum] = "b1d1deba966019930f608d1f2b95c40ca3450f1393bcd3a3c001a8ba1d2839ab" |
Brad Bishop | 0f291cc | 2019-09-01 15:16:57 -0400 | [diff] [blame] | 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 | PACKAGECONFIG ??= "gnutls libgcrypt nss openssl des" |
| 32 | PACKAGECONFIG[gnutls] = ",,gnutls" |
| 33 | PACKAGECONFIG[libgcrypt] = ",,libgcrypt" |
| 34 | PACKAGECONFIG[nss] = "--with-nss=${STAGING_LIBDIR}/../.. --with-nspr=${STAGING_LIBDIR}/../..,,nss nspr" |
| 35 | PACKAGECONFIG[openssl] = ",,openssl" |
| 36 | PACKAGECONFIG[des] = ",--disable-des,," |
| 37 | |
| 38 | # these can be dynamically loaded with xmlSecCryptoDLLoadLibrary() |
| 39 | FILES_SOLIBSDEV = "${libdir}/libxmlsec1.so" |
| 40 | FILES_${PN} += "${libdir}/libxmlsec1-*.so" |
| 41 | INSANE_SKIP_${PN} = "dev-so" |
| 42 | |
| 43 | FILES_${PN}-dev += "${libdir}/xmlsec1Conf.sh" |
| 44 | FILES_${PN}-dbg += "${PTEST_PATH}/.debug/*" |
| 45 | |
| 46 | RDEPENDS_${PN}-ptest += "${PN}-dev" |
| 47 | INSANE_SKIP_${PN}-ptest += "dev-deps" |
| 48 | |
| 49 | PTEST_EXTRA_ARGS = "top_srcdir=${S} top_builddir=${B}" |
| 50 | |
| 51 | do_compile_ptest () { |
| 52 | oe_runmake -C ${S}/examples ${PTEST_EXTRA_ARGS} all |
| 53 | } |
| 54 | |
| 55 | do_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 | |
| 62 | do_install_ptest () { |
| 63 | oe_runmake -C ${S}/examples DESTDIR=${D}${PTEST_PATH} ${PTEST_EXTRA_ARGS} install-ptest |
| 64 | } |