mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
24973ee34c
8c935e625ea75d180144f0526d6a0d5fd58c1f29 depends: Fix CMake-generated `libevent*.pc` files (Hennadii Stepanov) Pull request description: Broken out of #30454. This is a backport of the merged upstream PR: https://github.com/libevent/libevent/pull/1622. Note that after #29835 we might end up dropping pkg-config and using the installed CMake files directly, but that depends on whether or not enough distros actually ship those files. Either way, having fixed up .pc files won't hurt. ACKs for top commit: hebasto: ACK 8c935e625ea75d180144f0526d6a0d5fd58c1f29. fanquake: ACK 8c935e625ea75d180144f0526d6a0d5fd58c1f29 Tree-SHA512: 259c2ad78fb9e90370a7205dc71c40acda1a872f6509435133bc1c4c2c3de57366e80679aa083e13ed85e7966883dc470c0147ee171a2ed0171a18cd5ffc99b3
42 lines
1.4 KiB
Makefile
42 lines
1.4 KiB
Makefile
package=libevent
|
|
$(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
|
|
$(package)_patches=cmake_fixups.patch
|
|
$(package)_patches+=fix_mingw_link.patch
|
|
$(package)_build_subdir=build
|
|
|
|
# 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.
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=-DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_OPENSSL=ON
|
|
$(package)_config_opts+=-DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_REGRESS=ON
|
|
$(package)_config_opts+=-DEVENT__DISABLE_TESTS=ON -DEVENT__LIBRARY_TYPE=STATIC
|
|
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/cmake_fixups.patch && \
|
|
patch -p1 < $($(package)_patch_dir)/fix_mingw_link.patch
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_cmake) -S .. -B .
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm bin/event_rpcgen.py && \
|
|
rm include/ev*.h && \
|
|
rm include/event2/*_compat.h
|
|
endef
|