@@ -3,14 +3,16 @@ $(package)_version=2.1.12-stable
3
3
$(package)_download_path =https://github.com/libevent/libevent/releases/download/release-$($(package ) _version) /
4
4
$(package)_file_name =$(package ) -$($(package ) _version) .tar.gz
5
5
$(package)_sha256_hash =92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
6
+ $(package)_patches =cmake_fixups.patch
7
+ $(package)_build_subdir =build
6
8
7
9
# When building for Windows, we set _WIN32_WINNT to target the same Windows
8
10
# version as we do in configure. Due to quirks in libevents build system, this
9
11
# is also required to enable support for ipv6. See #19375.
10
12
define $(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
14
16
$(package ) _cppflags_mingw32=-D_WIN32_WINNT=0x0601
15
17
16
18
ifeq ($(NO_HARDEN ) ,)
@@ -19,11 +21,11 @@ define $(package)_set_vars
19
21
endef
20
22
21
23
define $(package)_preprocess_cmds
22
- cp -f $( BASEDIR ) /config.guess $( BASEDIR ) /config.sub build-aux
24
+ patch -p1 < $( $( package ) _patch_dir) /cmake_fixups.patch
23
25
endef
24
26
25
27
define $(package)_config_cmds
26
- $($(package ) _autoconf)
28
+ $($(package ) _cmake) -S .. -B .
27
29
endef
28
30
29
31
define $(package)_build_cmds
@@ -35,7 +37,7 @@ define $(package)_stage_cmds
35
37
endef
36
38
37
39
define $(package)_postprocess_cmds
38
- rm lib/*.la && \
40
+ rm bin/event_rpcgen.py && \
39
41
rm include/ev*.h && \
40
42
rm include/event2/*_compat.h
41
43
endef
0 commit comments