Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "The tdb library" |
| 2 | HOMEPAGE = "http://tdb.samba.org/" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0+ & GPL-3.0+" |
| 5 | |
| 6 | LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \ |
| 7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" |
| 8 | |
| 9 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ |
| 10 | file://do-not-check-xsltproc-manpages.patch \ |
| 11 | file://tdb-Add-configure-options-for-packages.patch \ |
| 12 | " |
| 13 | |
| 14 | SRC_URI[md5sum] = "60ece3996acc8d85b6f713199da971a6" |
| 15 | SRC_URI[sha256sum] = "b4a1bf3833601bd9f10aff363cb750860aef9ce5b4617989239923192f946728" |
| 16 | |
| 17 | PACKAGECONFIG ??= "\ |
| 18 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 19 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 20 | " |
| 21 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 22 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 23 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" |
| 24 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 25 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 26 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
| 27 | |
| 28 | S = "${WORKDIR}/tdb-${PV}" |
| 29 | |
| 30 | inherit waf-samba |
| 31 | |
| 32 | EXTRA_OECONF += "--disable-rpath \ |
| 33 | --bundled-libraries=NONE \ |
| 34 | --builtin-libraries=replace \ |
| 35 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 36 | " |
| 37 | |
| 38 | PACKAGES += "tdb-tools python-tdb python-tdb-dbg" |
| 39 | |
| 40 | FILES_${PN} = "${libdir}/*.so.*" |
| 41 | FILES_tdb-tools = "${bindir}/*" |
| 42 | FILES_python-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 43 | FILES_python-tdb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*" |
| 44 | RDEPENDS_python-tdb = "python" |