@@ -3,14 +3,16 @@ $(package)_version=2.1.12-stable
33$(package)_download_path =https://github.com/libevent/libevent/releases/download/release-$($(package ) _version) /
44$(package)_file_name =$(package ) -$($(package ) _version) .tar.gz
55$(package)_sha256_hash =92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
6+ $(package)_patches =cmake_fixups.patch
7+ $(package)_build_subdir =build
68
79# When building for Windows, we set _WIN32_WINNT to target the same Windows
810# version as we do in configure. Due to quirks in libevents build system, this
911# is also required to enable support for ipv6. See #19375.
1012define $(package)_set_vars
11- $(package ) _config_opts=--disable-shared --disable-openssl --disable-libevent-regress --disable-samples
12- $(package ) _config_opts += --disable-dependency-tracking --enable-option-checking
13- $(package ) _config_opts_release=--disable-debug-mode
13+ $(package ) _config_opts=-DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_OPENSSL=ON
14+ $(package ) _config_opts+=-DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_REGRESS=ON
15+ $(package ) _config_opts+=-DEVENT__DISABLE_TESTS=ON -DEVENT__LIBRARY_TYPE=STATIC
1416 $(package ) _cppflags_mingw32=-D_WIN32_WINNT=0x0601
1517
1618 ifeq ($(NO_HARDEN ) ,)
@@ -19,11 +21,11 @@ define $(package)_set_vars
1921endef
2022
2123define $(package)_preprocess_cmds
22- cp -f $( BASEDIR ) /config.guess $( BASEDIR ) /config.sub build-aux
24+ patch -p1 < $( $( package ) _patch_dir) /cmake_fixups.patch
2325endef
2426
2527define $(package)_config_cmds
26- $($(package ) _autoconf)
28+ $($(package ) _cmake) -S .. -B .
2729endef
2830
2931define $(package)_build_cmds
@@ -35,7 +37,7 @@ define $(package)_stage_cmds
3537endef
3638
3739define $(package)_postprocess_cmds
38- rm lib/*.la && \
40+ rm bin/event_rpcgen.py && \
3941 rm include/ev*.h && \
4042 rm include/event2/*_compat.h
4143endef
0 commit comments