Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "The tdb library" |
| 2 | HOMEPAGE = "http://tdb.samba.org/" |
| 3 | SECTION = "libs" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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://tdb-Add-configure-options-for-packages.patch \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 11 | file://0001-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | " |
| 13 | |
| 14 | SRC_URI[md5sum] = "e638e8890f743624a754304b3f994f4d" |
| 15 | SRC_URI[sha256sum] = "c8058393dfa15f47e11ebd2f1d132693f0b3b3b8bf22d0201bfb305026f88a1b" |
| 16 | |
| 17 | PACKAGECONFIG ??= "\ |
| 18 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 19 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 20 | " |
| 21 | |
| 22 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 23 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 24 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" |
| 25 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 26 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 27 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
| 28 | |
| 29 | S = "${WORKDIR}/tdb-${PV}" |
| 30 | |
| 31 | inherit waf-samba |
| 32 | |
| 33 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 34 | #to cross Popen |
| 35 | export WAF_NO_PREFORK="yes" |
| 36 | |
| 37 | EXTRA_OECONF += "--disable-rpath \ |
| 38 | --bundled-libraries=NONE \ |
| 39 | --builtin-libraries=replace \ |
| 40 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 41 | " |
| 42 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | PACKAGES += "tdb-tools python3-tdb" |
| 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | RPROVIDES:${PN}-dbg += "python3-tdb-dbg" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 46 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 47 | FILES:${PN} = "${libdir}/*.so.*" |
| 48 | FILES:tdb-tools = "${bindir}/*" |
| 49 | FILES:python3-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 50 | RDEPENDS:python3-tdb = "python3" |
| 51 | INSANE_SKIP:${MLPREFIX}python3-tdb = "dev-so" |