Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "An HTTP and WebDAV client library with a C interface" |
| 2 | HOMEPAGE = "http://www.webdav.org/neon/" |
| 3 | SECTION = "libs" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "LGPL-2.0-or-later" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://src/COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a \ |
| 6 | file://src/ne_utils.h;beginline=1;endline=20;md5=2caca609538eddaa6f6adf120a218037" |
| 7 | |
| 8 | SRC_URI = "${DEBIAN_MIRROR}/main/n/neon27/neon27_${PV}.orig.tar.gz \ |
| 9 | file://pkgconfig.patch \ |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 10 | file://fix-package-check-for-libxml2.patch \ |
| 11 | file://run-ptest \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 12 | " |
| 13 | |
| 14 | SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41" |
| 15 | SRC_URI[sha256sum] = "db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca" |
| 16 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 17 | inherit autotools binconfig-disabled lib_package pkgconfig ptest |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | |
| 19 | # Enable gnutls or openssl, not both |
| 20 | PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | PACKAGECONFIG:class-native = "expat gnutls webdav zlib" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | |
| 23 | PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat" |
| 24 | PACKAGECONFIG[gnutls] = "--with-ssl=gnutls,,gnutls" |
| 25 | PACKAGECONFIG[gssapi] = "--with-gssapi,--without-gssapi,krb5" |
| 26 | PACKAGECONFIG[libproxy] = "--with-libproxy,--without-libproxy,libproxy" |
| 27 | PACKAGECONFIG[libxml2] = "--with-libxml2,--without-libxml2,libxml2" |
| 28 | PACKAGECONFIG[openssl] = "--with-ssl=openssl,,openssl" |
| 29 | PACKAGECONFIG[webdav] = "--enable-webdav,--disable-webdav," |
| 30 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" |
| 31 | |
| 32 | EXTRA_OECONF += "--enable-shared" |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | do_compile:append() { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 35 | oe_runmake -C test |
| 36 | } |
| 37 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 38 | do_install_ptest(){ |
| 39 | BASIC_TESTS="auth basic redirect request session socket string-tests \ |
| 40 | stubs uri-tests util-tests" |
| 41 | DAV_TESTS="acl3744 lock oldacl props xml xmlreq" |
| 42 | mkdir "${D}${PTEST_PATH}/test" |
| 43 | for i in ${BASIC_TESTS} ${DAV_TESTS} |
| 44 | do |
| 45 | install -m 0755 "${B}/test/${i}" \ |
| 46 | "${D}${PTEST_PATH}/test" |
| 47 | done |
| 48 | } |
| 49 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 50 | BINCONFIG = "${bindir}/neon-config" |
| 51 | |
| 52 | BBCLASSEXTEND = "native" |