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://talloc.samba.org" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0+ & GPL-3.0+" |
| 5 | LIC_FILES_CHKSUM = "file://talloc.h;beginline=3;endline=27;md5=a301712782cad6dd6d5228bfa7825249 \ |
| 6 | file://pytalloc.h;beginline=1;endline=18;md5=2c498cc6f2263672483237b20f46b43d" |
| 7 | |
| 8 | |
| 9 | SRC_URI = "https://samba.org/ftp/talloc/talloc-${PV}.tar.gz \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 10 | file://options-2.2.0.patch \ |
| 11 | file://0001-waf-add-support-of-cross_compile.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | " |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 13 | SRC_URI[md5sum] = "b60781acc2fb42d7a1e08751e508d3df" |
| 14 | SRC_URI[sha256sum] = "5c6f6a45ef96b3fd0b28942673a68d0c6af5dcca9d676a2e4d57ce7e86c22ebc" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | |
| 16 | inherit waf-samba |
| 17 | |
| 18 | PACKAGECONFIG ??= "\ |
| 19 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 20 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 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 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" |
| 30 | |
| 31 | S = "${WORKDIR}/talloc-${PV}" |
| 32 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 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 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 37 | EXTRA_OECONF += "--disable-rpath \ |
| 38 | --disable-rpath-install \ |
| 39 | --bundled-libraries=NONE \ |
| 40 | --builtin-libraries=replace \ |
| 41 | --disable-silent-rules \ |
| 42 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 43 | " |
| 44 | |
| 45 | PACKAGES += "pytalloc pytalloc-dev" |
| 46 | |
| 47 | RPROVIDES_${PN}-dbg += "pytalloc-dbg" |
| 48 | |
| 49 | FILES_pytalloc = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ |
| 50 | ${libdir}/libpytalloc-util.so.2 \ |
| 51 | ${libdir}/libpytalloc-util.so.2.1.1 \ |
| 52 | " |
| 53 | FILES_pytalloc-dev = "${libdir}/libpytalloc-util.so" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 54 | RDEPENDS_pytalloc = "python3" |