Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "The tdb library" |
| 2 | HOMEPAGE = "https://tdb.samba.org/" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later" |
| 5 | |
| 6 | LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \ |
| 7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" |
| 8 | |
| 9 | export PYTHONHASHSEED="1" |
| 10 | |
| 11 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ |
| 12 | file://0001-tdb-Add-configure-options-for-packages.patch \ |
| 13 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
| 14 | " |
| 15 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 16 | SRC_URI[sha256sum] = "8434c9c857d13ce3fa8466f75601f25c3693676b36919f159e0ad6121baf5ce8" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 17 | |
| 18 | PACKAGECONFIG ??= "\ |
| 19 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 20 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 21 | " |
| 22 | |
| 23 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 24 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 25 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" |
| 26 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 27 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 28 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
| 29 | |
| 30 | S = "${WORKDIR}/tdb-${PV}" |
| 31 | |
| 32 | inherit waf-samba |
| 33 | |
| 34 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 35 | #to cross Popen |
| 36 | export WAF_NO_PREFORK="yes" |
| 37 | |
| 38 | EXTRA_OECONF += "--disable-rpath \ |
| 39 | --disable-rpath-install \ |
| 40 | --bundled-libraries=NONE \ |
| 41 | --builtin-libraries=replace \ |
| 42 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 43 | " |
| 44 | |
| 45 | PACKAGES += "tdb-tools python3-tdb" |
| 46 | |
| 47 | RPROVIDES:${PN}-dbg += "python3-tdb-dbg" |
| 48 | |
| 49 | FILES:${PN} = "${libdir}/*.so.*" |
| 50 | FILES:tdb-tools = "${bindir}/*" |
| 51 | FILES:python3-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 52 | RDEPENDS:python3-tdb = "python3" |
| 53 | INSANE_SKIP:${MLPREFIX}python3-tdb = "dev-so" |