2015-05-05 20:30:20 -04:00
|
|
|
package=zeromq
|
2023-10-10 10:03:25 +01:00
|
|
|
$(package)_version=4.3.5
|
2016-12-01 12:39:31 +08:00
|
|
|
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/
|
2015-05-05 20:30:20 -04:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2023-10-10 10:03:25 +01:00
|
|
|
$(package)_sha256_hash=6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a913bfab43
|
2023-04-19 15:44:46 -04:00
|
|
|
$(package)_build_subdir=build
|
2024-10-25 16:28:36 +00:00
|
|
|
$(package)_patches = macos_mktemp_check.patch
|
2024-07-15 16:34:44 +01:00
|
|
|
$(package)_patches += builtin_sha1.patch
|
2024-07-15 16:36:42 +01:00
|
|
|
$(package)_patches += fix_have_windows.patch
|
2024-07-31 23:37:50 +01:00
|
|
|
$(package)_patches += openbsd_kqueue_headers.patch
|
2024-07-15 16:38:15 +01:00
|
|
|
$(package)_patches += cmake_minimum.patch
|
2024-08-05 13:44:11 +01:00
|
|
|
$(package)_patches += cacheline_undefined.patch
|
2024-07-15 16:43:18 +01:00
|
|
|
$(package)_patches += no_librt.patch
|
2015-05-05 20:30:20 -04:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2023-04-19 15:44:46 -04:00
|
|
|
$(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
|
2024-10-28 11:55:31 +00:00
|
|
|
$(package)_config_opts_mingw32 += -DZMQ_WIN32_WINNT=0x0A00 -DZMQ_HAVE_IPC=OFF
|
2015-05-05 20:30:20 -04:00
|
|
|
endef
|
|
|
|
|
2016-06-22 17:56:07 +08:00
|
|
|
define $(package)_preprocess_cmds
|
2024-07-15 16:34:44 +01:00
|
|
|
patch -p1 < $($(package)_patch_dir)/macos_mktemp_check.patch && \
|
2024-07-15 16:36:42 +01:00
|
|
|
patch -p1 < $($(package)_patch_dir)/builtin_sha1.patch && \
|
2024-08-05 13:44:11 +01:00
|
|
|
patch -p1 < $($(package)_patch_dir)/cacheline_undefined.patch && \
|
2024-07-15 16:38:15 +01:00
|
|
|
patch -p1 < $($(package)_patch_dir)/fix_have_windows.patch && \
|
2024-07-31 23:37:50 +01:00
|
|
|
patch -p1 < $($(package)_patch_dir)/openbsd_kqueue_headers.patch && \
|
2024-07-15 16:43:18 +01:00
|
|
|
patch -p1 < $($(package)_patch_dir)/cmake_minimum.patch && \
|
2024-10-25 16:28:36 +00:00
|
|
|
patch -p1 < $($(package)_patch_dir)/no_librt.patch
|
2016-06-22 17:56:07 +08:00
|
|
|
endef
|
|
|
|
|
2015-05-05 20:30:20 -04:00
|
|
|
define $(package)_config_cmds
|
2023-04-19 15:44:46 -04:00
|
|
|
$($(package)_cmake) -S .. -B .
|
2015-05-05 20:30:20 -04:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2023-04-19 15:44:46 -04:00
|
|
|
$(MAKE)
|
2015-05-05 20:30:20 -04:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2023-04-19 15:44:46 -04:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
2015-05-05 20:30:20 -04:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
2024-10-25 16:28:36 +00:00
|
|
|
rm -rf share && \
|
|
|
|
rm -rf lib/pkgconfig
|
2015-05-05 20:30:20 -04:00
|
|
|
endef
|