Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Hierarchical, reference counted memory pool system with destructors" |
| 2 | HOMEPAGE = "http://ldb.samba.org" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+" |
| 5 | |
| 6 | DEPENDS += "libtdb libtalloc libtevent popt" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 7 | RDEPENDS_pyldb += "python3" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 8 | |
| 9 | SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ |
| 10 | file://do-not-import-target-module-while-cross-compile.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | file://libldb-fix-musl-libc-unkown-type-error.patch \ |
| 12 | file://libldb-fix-musl-libc-conflict-type-error.patch \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 13 | file://0001-waf-add-support-of-cross_compile.patch \ |
| 14 | file://options-1.5.4.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | " |
| 16 | |
| 17 | PACKAGECONFIG ??= "\ |
| 18 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 19 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 20 | " |
| 21 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 22 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 23 | PACKAGECONFIG[ldap] = ",,openldap" |
| 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" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 28 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb," |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 29 | |
| 30 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://avoid-openldap-unless-wanted.patch', d)}" |
| 31 | |
| 32 | LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9adade \ |
| 33 | file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ |
| 34 | file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" |
| 35 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 36 | SRC_URI[md5sum] = "339a41ac9efaec680e6d1469dd9aa35b" |
| 37 | SRC_URI[sha256sum] = "199f5861aa863f538ec66d5fa95ecc13254a2030c53daf0e47363fa9ba235c68" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 38 | |
| 39 | inherit waf-samba distro_features_check |
| 40 | REQUIRED_DISTRO_FEATURES = "pam" |
| 41 | |
| 42 | S = "${WORKDIR}/ldb-${PV}" |
| 43 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 44 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 45 | #to cross Popen |
| 46 | export WAF_NO_PREFORK="yes" |
| 47 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 48 | EXTRA_OECONF += "--disable-rpath \ |
| 49 | --disable-rpath-install \ |
| 50 | --bundled-libraries=cmocka \ |
| 51 | --builtin-libraries=replace \ |
| 52 | --with-modulesdir=${libdir}/ldb/modules \ |
| 53 | --with-privatelibdir=${libdir}/ldb \ |
| 54 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 55 | " |
| 56 | |
| 57 | PACKAGES =+ "pyldb pyldb-dbg pyldb-dev" |
| 58 | |
| 59 | NOAUTOPACKAGEDEBUG = "1" |
| 60 | |
| 61 | FILES_${PN} += "${libdir}/ldb/*" |
| 62 | FILES_${PN}-dbg += "${bindir}/.debug/* \ |
| 63 | ${libdir}/.debug/* \ |
| 64 | ${libdir}/ldb/.debug/* \ |
| 65 | ${libdir}/ldb/modules/ldb/.debug/*" |
| 66 | |
| 67 | FILES_pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 68 | ${libdir}/libpyldb-util.*.so.* \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 69 | " |
| 70 | FILES_pyldb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 71 | ${libdir}/.debug/libpyldb-util.*.so.*" |
| 72 | FILES_pyldb-dev = "${libdir}/libpyldb-util.*.so" |