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
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= libevent2
21 COMPONENT_VERSION
= 2.1.12
23 COMPONENT_PROJECT_URL
= https
://libevent.org
/
24 COMPONENT_SUMMARY
= An event notification library for event-driven network servers
25 COMPONENT_FMRI
= library
/libevent2
26 COMPONENT_CLASSIFICATION
= System
/Libraries
27 COMPONENT_SRC
= libevent-
$(COMPONENT_VERSION
)-stable
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
29 COMPONENT_ARCHIVE_HASH
= \
30 sha256
:92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
31 COMPONENT_ARCHIVE_URL
=\
32 https
://github.com
/libevent
/libevent
/releases
/download
/release-
$(COMPONENT_VERSION
)-stable
/$(COMPONENT_ARCHIVE
)
33 COMPONENT_LICENSE
= BSD
34 COMPONENT_LICENSE_FILE
= LICENSE
38 include $(WS_MAKE_RULES
)/common.mk
40 # Replace the python script with a python3 version
41 COMPONENT_PREP_ACTION
= \
42 ( $(CP
) $(COMPONENT_DIR
)/files
/event_rpcgen.py
$(@D
) )
44 CONFIGURE_OPTIONS
+= --disable-static
45 CONFIGURE_OPTIONS
+= --includedir=/usr
/include/libevent2
47 # Setup event-config.h file to support 32 & 64 bit.
49 COMPONENT_POST_INSTALL_ACTION
= \
50 ($(MV
) $(PROTO_DIR
)/usr
/include/libevent2
/event2
/event-config.h
$(PROTO_DIR
)/usr
/include/libevent2
/event2
/event-config-
$(BITS
).h
)
52 # Typical results from the test target
65 # FAIL .../libevent-2.0.22-stable/test/regress_util.c:972: assert(a)
66 # [getaddrinfo FAILED]
67 #1/180 TESTS FAILED. (0 skipped)
73 # util/getaddrinfo fails (https://github.com/libevent/libevent/issues/134)
75 # Auto-generated dependencies
76 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
77 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
78 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)/32
79 REQUIRED_PACKAGES
+= system
/library