python/hypothesis: update to 6.121.0
[oi-userland.git] / components / library / libevent2 / Makefile
blob249b98d9e7f79d85946092e07e0c2c1da39f3b3a
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2021 Gary Mills
13 # Copyright 2014 Alexander Pyhalov
14 # Copyright 2023 Niklas Poslovski
17 BUILD_BITS= 32_and_64
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= libevent2
21 COMPONENT_VERSION= 2.1.12
22 COMPONENT_PROJECT_URL= https://libevent.org/
23 COMPONENT_SUMMARY= An event notification library for event-driven network servers
24 COMPONENT_FMRI= library/libevent2
25 COMPONENT_CLASSIFICATION= System/Libraries
26 COMPONENT_SRC= libevent-$(COMPONENT_VERSION)-stable
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
28 COMPONENT_ARCHIVE_HASH= \
29 sha256:92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
30 COMPONENT_ARCHIVE_URL=\
31 https://github.com/libevent/libevent/releases/download/release-$(COMPONENT_VERSION)-stable/$(COMPONENT_ARCHIVE)
32 COMPONENT_LICENSE= BSD
33 COMPONENT_LICENSE_FILE= LICENSE
35 PYTHON_VERSION= 3.9
37 include $(WS_MAKE_RULES)/common.mk
39 # Replace the python script with a python3 version
40 COMPONENT_PREP_ACTION= \
41 ( $(CP) $(COMPONENT_DIR)/files/event_rpcgen.py $(@D) )
43 CONFIGURE_OPTIONS+= --disable-static
44 CONFIGURE_OPTIONS+= --includedir=/usr/include/libevent2
46 # Setup event-config.h file to support 32 & 64 bit.
48 COMPONENT_POST_INSTALL_ACTION= \
49 ($(MV) $(PROTO_DIR)/usr/include/libevent2/event2/event-config.h $(PROTO_DIR)/usr/include/libevent2/event2/event-config-$(BITS).h )
51 # Typical results from the test target
52 #EVPORT
53 #...
54 #EPOLL
55 #...
56 #EPOLL (changelist)
57 #...
58 #DEVPOLL
59 #...
60 #POLL
61 #...
62 #SELECT
63 #...
64 # FAIL .../libevent-2.0.22-stable/test/regress_util.c:972: assert(a)
65 # [getaddrinfo FAILED]
66 #1/180 TESTS FAILED. (0 skipped)
67 #....
68 #==================
69 #1 of 1 test failed
70 #==================
72 # util/getaddrinfo fails (https://github.com/libevent/libevent/issues/134)
74 # Auto-generated dependencies
75 PYTHON_REQUIRED_PACKAGES += runtime/python
76 REQUIRED_PACKAGES += library/security/openssl-31
77 REQUIRED_PACKAGES += system/library