2015-01-20 04:47:44 +01:00
|
|
|
package=libevent
|
2023-06-20 15:28:05 +02:00
|
|
|
$(package)_version=2.1.12-stable
|
|
|
|
$(package)_download_path=https://github.com/libevent/libevent/releases/download/release-$($(package)_version)/
|
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
|
2015-01-20 04:47:44 +01:00
|
|
|
|
2020-03-07 02:12:32 +01:00
|
|
|
# When building for Windows, we set _WIN32_WINNT to target the same Windows
|
|
|
|
# version as we do in configure. Due to quirks in libevents build system, this
|
|
|
|
# is also required to enable support for ipv6. See #19375.
|
2015-01-20 04:47:44 +01:00
|
|
|
define $(package)_set_vars
|
2017-09-10 04:38:59 +02:00
|
|
|
$(package)_config_opts=--disable-shared --disable-openssl --disable-libevent-regress --disable-samples
|
2019-10-18 21:40:22 +02:00
|
|
|
$(package)_config_opts += --disable-dependency-tracking --enable-option-checking
|
2015-01-20 04:47:44 +01:00
|
|
|
$(package)_config_opts_release=--disable-debug-mode
|
2020-03-07 02:12:32 +01:00
|
|
|
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
|
2015-01-20 04:47:44 +01:00
|
|
|
endef
|
|
|
|
|
2023-06-20 15:29:58 +02:00
|
|
|
define $(package)_preprocess_cmds
|
2023-06-20 16:43:56 +02:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
|
2023-06-20 15:29:58 +02:00
|
|
|
endef
|
|
|
|
|
2015-01-20 04:47:44 +01:00
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
2022-03-12 19:19:22 +01:00
|
|
|
rm lib/*.la && \
|
2022-09-16 12:55:55 +02:00
|
|
|
rm include/ev*.h && \
|
|
|
|
rm include/event2/*_compat.h
|
2015-01-20 04:47:44 +01:00
|
|
|
endef
|