summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/libldb/libldb_2.3.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/libldb/libldb_2.3.2.bb')
-rw-r--r--meta-networking/recipes-support/libldb/libldb_2.3.2.bb69
1 files changed, 69 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libldb/libldb_2.3.2.bb b/meta-networking/recipes-support/libldb/libldb_2.3.2.bb
new file mode 100644
index 0000000000..3f7ed36d3a
--- /dev/null
+++ b/meta-networking/recipes-support/libldb/libldb_2.3.2.bb
@@ -0,0 +1,69 @@
1SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
2HOMEPAGE = "http://ldb.samba.org"
3SECTION = "libs"
4LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
5
6DEPENDS += "libtdb libtalloc libtevent popt"
7RDEPENDS:pyldb += "python3"
8
9SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
10 file://0001-do-not-import-target-module-while-cross-compile.patch \
11 file://0002-ldb-Add-configure-options-for-packages.patch \
12 file://libldb-fix-musl-libc-conflict-type-error.patch \
13 "
14
15PACKAGECONFIG ??= "\
16 ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \
17 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
18"
19PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl"
20PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
21PACKAGECONFIG[ldap] = ",,openldap"
22PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio"
23PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
24PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
25PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
26PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb,"
27
28SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://0003-avoid-openldap-unless-wanted.patch', d)}"
29
30LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9adade \
31 file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \
32 file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42"
33
34SRC_URI[md5sum] = "650a05f8a2b2e6455f590dc815a71879"
35SRC_URI[sha256sum] = "1416c949dc4326e41c0d8a5ecf8ef784f8c0b6e9d3dad8fa971e84ad56227603"
36
37inherit pkgconfig waf-samba
38
39S = "${WORKDIR}/ldb-${PV}"
40
41#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
42#to cross Popen
43export WAF_NO_PREFORK="yes"
44
45EXTRA_OECONF += "--disable-rpath \
46 --disable-rpath-install \
47 --bundled-libraries=cmocka \
48 --builtin-libraries=replace \
49 --with-modulesdir=${libdir}/ldb/modules \
50 --with-privatelibdir=${libdir}/ldb \
51 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
52 "
53
54PACKAGES =+ "pyldb pyldb-dbg pyldb-dev"
55
56NOAUTOPACKAGEDEBUG = "1"
57
58FILES:${PN} += "${libdir}/ldb/*"
59FILES:${PN}-dbg += "${bindir}/.debug/* \
60 ${libdir}/.debug/* \
61 ${libdir}/ldb/.debug/* \
62 ${libdir}/ldb/modules/ldb/.debug/*"
63
64FILES:pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \
65 ${libdir}/libpyldb-util.*.so.* \
66 "
67FILES:pyldb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
68 ${libdir}/.debug/libpyldb-util.*.so.*"
69FILES:pyldb-dev = "${libdir}/libpyldb-util.*.so"