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 \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | file://tdb-Add-configure-options-for-packages.patch \ |
| 11 | file://0001-waf-add-support-of-cross_compile.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | " |
| 13 | |
Brad Bishop | 665fd02 | 2019-08-26 01:32:28 -0400 | [diff] [blame] | 14 | SRC_URI[md5sum] = "d1d0a5d43614add17d1e41bbdb209446" |
| 15 | SRC_URI[sha256sum] = "dd4ecd9678e8d3ea772623bd81fe49b43363a2f970a76fb5468322753787aa4b" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 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 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 43 | do_install_append() { |
| 44 | # add this link for cross check python module existence. eg: on x86-64 host, check python module |
| 45 | # under recipe-sysroot which is mips64. |
| 46 | cd ${D}${PYTHON_SITEPACKAGES_DIR}; ln -s tdb.*.so tdb.so |
| 47 | } |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 48 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 49 | PACKAGES += "tdb-tools python3-tdb" |
| 50 | |
| 51 | RPROVIDES_${PN}-dbg += "python3-tdb-dbg" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 52 | |
| 53 | FILES_${PN} = "${libdir}/*.so.*" |
| 54 | FILES_tdb-tools = "${bindir}/*" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 55 | FILES_python3-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 56 | RDEPENDS_python3-tdb = "python3" |
| 57 | INSANE_SKIP_${MLPREFIX}python3-tdb = "dev-so" |