diff options
Diffstat (limited to 'meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb')
-rw-r--r-- | meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb b/meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb new file mode 100644 index 0000000000..7ee044d146 --- /dev/null +++ b/meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb | |||
@@ -0,0 +1,62 @@ | |||
1 | SUMMARY = "Hierarchical, reference counted memory pool system with destructors" | ||
2 | HOMEPAGE = "https://tevent.samba.org" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPL-3.0-or-later" | ||
5 | |||
6 | DEPENDS += "libtalloc libtirpc cmocka" | ||
7 | RDEPENDS:python3-tevent = "python3" | ||
8 | |||
9 | export PYTHONHASHSEED = "1" | ||
10 | export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" | ||
11 | |||
12 | SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ | ||
13 | file://0001-Add-configure-options-for-packages.patch \ | ||
14 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | |||
18 | LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681" | ||
19 | |||
20 | SRC_URI[sha256sum] = "7702fb373b69da2960b86134b6a9ec6fa0b949a01756fec00a4a6a43575c8361" | ||
21 | |||
22 | inherit pkgconfig ptest waf-samba | ||
23 | |||
24 | PACKAGECONFIG ??= "\ | ||
25 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ | ||
26 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
27 | " | ||
28 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | ||
29 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
30 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" | ||
31 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" | ||
32 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | ||
33 | |||
34 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" | ||
35 | |||
36 | S = "${UNPACKDIR}/tevent-${PV}" | ||
37 | |||
38 | # Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen | ||
39 | # to cross Popen | ||
40 | export WAF_NO_PREFORK = "yes" | ||
41 | |||
42 | EXTRA_OECONF += "--disable-rpath \ | ||
43 | --disable-rpath-install \ | ||
44 | --bundled-libraries=NONE \ | ||
45 | --builtin-libraries=replace \ | ||
46 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ | ||
47 | --without-gettext \ | ||
48 | " | ||
49 | |||
50 | do_install_ptest() { | ||
51 | install -d ${D}${PTEST_PATH}/tests | ||
52 | install -m 0755 ${B}/bin/test_tevent_* ${D}${PTEST_PATH}/tests/ | ||
53 | install -m 0755 ${B}/bin/replace_testsuite ${D}${PTEST_PATH}/tests/ | ||
54 | } | ||
55 | |||
56 | PACKAGES += "python3-tevent" | ||
57 | |||
58 | RPROVIDES:${PN}-dbg += "python3-tevent-dbg" | ||
59 | |||
60 | FILES:python3-tevent = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
61 | |||
62 | INSANE_SKIP:${MLPREFIX}python3-tevent = "dev-so" | ||