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://tevent.samba.org" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPLv3+" |
| 5 | |
| 6 | DEPENDS += "libtalloc libtirpc" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 7 | RDEPENDS:python3-tevent = "python3" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 8 | |
| 9 | SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 10 | file://options-0.10.0.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | file://0001-libtevent-fix-musl-libc-compile-error.patch \ |
| 12 | " |
| 13 | LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=4e458d658cb25e21efc16f720e78b85a" |
| 14 | |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 15 | SRC_URI[md5sum] = "105c7a4dbb96f1751eb27dfd05e7fa84" |
| 16 | SRC_URI[sha256sum] = "f8427822e5b2878fb8b28d6f50d96848734f3f3130612fb574fdd2d2148a6696" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 17 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame^] | 18 | inherit pkgconfig waf-samba |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 19 | |
| 20 | PACKAGECONFIG ??= "\ |
| 21 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 23 | " |
| 24 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 25 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 26 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" |
| 27 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 28 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 29 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
| 30 | |
| 31 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" |
| 32 | |
| 33 | S = "${WORKDIR}/tevent-${PV}" |
| 34 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 35 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 36 | #to cross Popen |
| 37 | export WAF_NO_PREFORK="yes" |
| 38 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 39 | EXTRA_OECONF += "--disable-rpath \ |
| 40 | --bundled-libraries=NONE \ |
| 41 | --builtin-libraries=replace \ |
| 42 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 43 | --without-gettext \ |
| 44 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | do_install:append() { |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 46 | # add this link for cross check python module existence. eg: on x86-64 host, check python module |
| 47 | # under recipe-sysroot which is mips64. |
| 48 | cd ${D}${PYTHON_SITEPACKAGES_DIR}; ln -s _tevent.*.so _tevent.so |
| 49 | } |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 50 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 51 | PACKAGES += "python3-tevent" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 52 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 53 | RPROVIDES:${PN}-dbg += "python3-tevent-dbg" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | FILES:python3-tevent = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 56 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 57 | INSANE_SKIP:${MLPREFIX}python3-tevent = "dev-so" |