mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
02aee122de
371910a7682ecdaf86b3e65753667746add1ecd2 depends: Fix CMake-generated `libzmq.pc` file (Hennadii Stepanov) Pull request description: This is a backport of: https://github.com/zeromq/libzmq/pull/4706. Similar to https://github.com/bitcoin/bitcoin/pull/30488. Addresses https://github.com/bitcoin/bitcoin/pull/29723#issuecomment-2239864170: > Looking at the mingw .pc generated by this PR: > > ``` > Libs: -L${libdir} -lzmq > Libs.private: > Requires.private: > ``` > > It looks like we'll need to take [zeromq/libzmq#4706](https://github.com/zeromq/libzmq/pull/4706) as well for CMake. That can be done as a follow-up though, as it's not yet merged upstream. ACKs for top commit: fanquake: ACK 371910a7682ecdaf86b3e65753667746add1ecd2 Tree-SHA512: 6f9c2e32f83c0e629e32fd3e4c86712af00ffeaf0906bf85e5c2df889302707b9df102e8031249d1bae036eb4fc019c2a5124655682fbc5652d9337cb21c5f2c
50 lines
1.9 KiB
Makefile
50 lines
1.9 KiB
Makefile
package=zeromq
|
|
$(package)_version=4.3.5
|
|
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a913bfab43
|
|
$(package)_build_subdir=build
|
|
$(package)_patches = remove_libstd_link.patch
|
|
$(package)_patches += macos_mktemp_check.patch
|
|
$(package)_patches += builtin_sha1.patch
|
|
$(package)_patches += fix_have_windows.patch
|
|
$(package)_patches += cmake_minimum.patch
|
|
$(package)_patches += no_librt.patch
|
|
$(package)_patches += fix_mingw_link.patch
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts := -DCMAKE_BUILD_TYPE=None -DWITH_DOCS=OFF -DWITH_LIBSODIUM=OFF
|
|
$(package)_config_opts += -DWITH_LIBBSD=OFF -DENABLE_CURVE=OFF -DENABLE_CPACK=OFF
|
|
$(package)_config_opts += -DBUILD_SHARED=OFF -DBUILD_TESTS=OFF -DZMQ_BUILD_TESTS=OFF
|
|
$(package)_config_opts += -DENABLE_DRAFTS=OFF -DZMQ_BUILD_TESTS=OFF
|
|
$(package)_cxxflags += -ffile-prefix-map=$($(package)_extract_dir)=/usr
|
|
$(package)_config_opts_mingw32 += -DZMQ_WIN32_WINNT=0x0601 -DZMQ_HAVE_IPC=OFF
|
|
$(package)_cxxflags+=-std=c++17
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/remove_libstd_link.patch && \
|
|
patch -p1 < $($(package)_patch_dir)/macos_mktemp_check.patch && \
|
|
patch -p1 < $($(package)_patch_dir)/builtin_sha1.patch && \
|
|
patch -p1 < $($(package)_patch_dir)/fix_have_windows.patch && \
|
|
patch -p1 < $($(package)_patch_dir)/cmake_minimum.patch && \
|
|
patch -p1 < $($(package)_patch_dir)/no_librt.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 -rf bin share lib/*.la
|
|
endef
|