diff options
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.bb | 69 |
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 @@ | |||
| 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" | ||
| 7 | RDEPENDS:pyldb += "python3" | ||
| 8 | |||
| 9 | SRC_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 | |||
| 15 | PACKAGECONFIG ??= "\ | ||
| 16 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ | ||
| 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
| 18 | " | ||
| 19 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | ||
| 20 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
| 21 | PACKAGECONFIG[ldap] = ",,openldap" | ||
| 22 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" | ||
| 23 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" | ||
| 24 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" | ||
| 25 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | ||
| 26 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb," | ||
| 27 | |||
| 28 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://0003-avoid-openldap-unless-wanted.patch', d)}" | ||
| 29 | |||
| 30 | LIC_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 | |||
| 34 | SRC_URI[md5sum] = "650a05f8a2b2e6455f590dc815a71879" | ||
| 35 | SRC_URI[sha256sum] = "1416c949dc4326e41c0d8a5ecf8ef784f8c0b6e9d3dad8fa971e84ad56227603" | ||
| 36 | |||
| 37 | inherit pkgconfig waf-samba | ||
| 38 | |||
| 39 | S = "${WORKDIR}/ldb-${PV}" | ||
| 40 | |||
| 41 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen | ||
| 42 | #to cross Popen | ||
| 43 | export WAF_NO_PREFORK="yes" | ||
| 44 | |||
| 45 | EXTRA_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 | |||
| 54 | PACKAGES =+ "pyldb pyldb-dbg pyldb-dev" | ||
| 55 | |||
| 56 | NOAUTOPACKAGEDEBUG = "1" | ||
| 57 | |||
| 58 | FILES:${PN} += "${libdir}/ldb/*" | ||
| 59 | FILES:${PN}-dbg += "${bindir}/.debug/* \ | ||
| 60 | ${libdir}/.debug/* \ | ||
| 61 | ${libdir}/ldb/.debug/* \ | ||
| 62 | ${libdir}/ldb/modules/ldb/.debug/*" | ||
| 63 | |||
| 64 | FILES:pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ | ||
| 65 | ${libdir}/libpyldb-util.*.so.* \ | ||
| 66 | " | ||
| 67 | FILES:pyldb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \ | ||
| 68 | ${libdir}/.debug/libpyldb-util.*.so.*" | ||
| 69 | FILES:pyldb-dev = "${libdir}/libpyldb-util.*.so" | ||
