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" |
| 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://tdb-Add-configure-options-for-packages.patch \ |
| 11 | " |
| 12 | |
| 13 | SRC_URI[md5sum] = "e638e8890f743624a754304b3f994f4d" |
| 14 | SRC_URI[sha256sum] = "c8058393dfa15f47e11ebd2f1d132693f0b3b3b8bf22d0201bfb305026f88a1b" |
| 15 | |
| 16 | PACKAGECONFIG ??= "\ |
| 17 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 18 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 19 | " |
| 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 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 33 | #to cross Popen |
| 34 | export WAF_NO_PREFORK="yes" |
| 35 | |
| 36 | EXTRA_OECONF += "--disable-rpath \ |
| 37 | --bundled-libraries=NONE \ |
| 38 | --builtin-libraries=replace \ |
| 39 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 40 | " |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 42 | do_install:append() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | # add this link for cross check python module existence. eg: on x86-64 host, check python module |
| 44 | # under recipe-sysroot which is mips64. |
| 45 | cd ${D}${PYTHON_SITEPACKAGES_DIR}; ln -s tdb.*.so tdb.so |
| 46 | } |
| 47 | |
| 48 | PACKAGES += "tdb-tools python3-tdb" |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 50 | RPROVIDES:${PN}-dbg += "python3-tdb-dbg" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 51 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 52 | FILES:${PN} = "${libdir}/*.so.*" |
| 53 | FILES:tdb-tools = "${bindir}/*" |
| 54 | FILES:python3-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 55 | RDEPENDS:python3-tdb = "python3" |
| 56 | INSANE_SKIP:${MLPREFIX}python3-tdb = "dev-so" |