2015-01-20 04:47:44 +01:00
|
|
|
package=libevent
|
2021-05-17 03:31:14 +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-06-25 04:25:23 +02: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
|
2019-10-11 19:31:50 +02:00
|
|
|
$(package)_config_opts=--disable-shared --disable-openssl --disable-libevent-regress --disable-samples
|
|
|
|
$(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
|
2019-10-18 22:03:51 +02:00
|
|
|
$(package)_config_opts_android=--with-pic
|
2020-06-25 04:25:23 +02:00
|
|
|
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
|
2015-01-20 04:47:44 +01:00
|
|
|
endef
|
|
|
|
|
2021-05-03 13:51:45 +02:00
|
|
|
define $(package)_preprocess_cmds
|
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
|
|
|
|
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
|
2019-04-18 19:49:11 +02:00
|
|
|
rm lib/*.la
|
2015-01-20 04:47:44 +01:00
|
|
|
endef
|