Brad Bishop | 1932369 | 2019-04-05 15:28:33 -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 | file://0001-waf-add-support-of-cross_compile.patch \ |
| 13 | file://0001-Makefile-fix-problem-that-waf-cannot-found.patch \ |
| 14 | " |
| 15 | |
| 16 | SRC_URI[md5sum] = "519d373ac72a66b0a2739dbb495de127" |
| 17 | SRC_URI[sha256sum] = "1cb4399394c60a773430ca54848359adcf54fb6f136afdcfcbbe62b5f4245614" |
| 18 | |
| 19 | PACKAGECONFIG ??= "\ |
| 20 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 21 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 22 | " |
| 23 | |
| 24 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 25 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 26 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" |
| 27 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 28 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 29 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
| 30 | |
| 31 | S = "${WORKDIR}/tdb-${PV}" |
| 32 | |
| 33 | inherit waf-samba |
| 34 | |
| 35 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 36 | #to cross Popen |
| 37 | export WAF_NO_PREFORK="yes" |
| 38 | |
| 39 | EXTRA_OECONF += "--disable-rpath \ |
| 40 | --bundled-libraries=NONE \ |
| 41 | --builtin-libraries=replace \ |
| 42 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 43 | " |
| 44 | |
| 45 | PACKAGES += "tdb-tools python-tdb" |
| 46 | |
| 47 | RPROVIDES_${PN}-dbg += "python-tdb-dbg" |
| 48 | |
| 49 | FILES_${PN} = "${libdir}/*.so.*" |
| 50 | FILES_tdb-tools = "${bindir}/*" |
| 51 | FILES_python-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 52 | RDEPENDS_python-tdb = "python" |