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
|
|
|
|
$(package)_config_opts_linux=--with-pic
|
2023-06-30 17:51:32 +02:00
|
|
|
$(package)_config_opts_freebsd=--with-pic
|
2022-02-14 21:16:56 +01:00
|
|
|
$(package)_config_opts_netbsd=--with-pic
|
2023-06-30 18:00:24 +02:00
|
|
|
$(package)_config_opts_openbsd=--with-pic
|
2021-11-24 05:32:59 +01:00
|
|
|
$(package)_config_opts_android=--with-pic
|
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 && \
|
|
|
|
rm include/ev*.h
|
2015-01-20 04:47:44 +01:00
|
|
|
endef
|