2015-05-05 21:30:20 -03:00
|
|
|
package=zeromq
|
2021-04-07 22:03:10 -04:00
|
|
|
$(package)_version=4.3.4
|
2016-12-01 01:39:31 -03:00
|
|
|
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/
|
2015-05-05 21:30:20 -03:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2021-04-07 22:03:10 -04:00
|
|
|
$(package)_sha256_hash=c593001a89f5a85dd2ddf564805deb860e02471171b3f204944857336295c3e5
|
2022-01-03 09:39:10 -03:00
|
|
|
$(package)_patches=remove_libstd_link.patch netbsd_kevent_void.patch
|
2015-05-05 21:30:20 -03:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2022-01-25 09:32:32 -03:00
|
|
|
$(package)_config_opts = --without-docs --disable-shared
|
|
|
|
$(package)_config_opts += --disable-perf --disable-curve-keygen --disable-curve --disable-libbsd
|
2019-07-10 21:20:25 -04:00
|
|
|
$(package)_config_opts += --without-libsodium --without-libgssapi_krb5 --without-pgm --without-norm --without-vmci
|
2019-09-24 00:01:19 -03:00
|
|
|
$(package)_config_opts += --disable-libunwind --disable-radix-tree --without-gcov --disable-dependency-tracking
|
2019-10-11 14:31:50 -03:00
|
|
|
$(package)_config_opts += --disable-Werror --disable-drafts --enable-option-checking
|
2015-05-05 21:30:20 -03:00
|
|
|
$(package)_config_opts_linux=--with-pic
|
2019-10-18 17:03:51 -03:00
|
|
|
$(package)_config_opts_android=--with-pic
|
2021-08-30 23:43:48 -04:00
|
|
|
$(package)_cxxflags+=-std=c++17
|
2015-05-05 21:30:20 -03:00
|
|
|
endef
|
|
|
|
|
2016-06-22 05:56:07 -04:00
|
|
|
define $(package)_preprocess_cmds
|
2020-08-18 02:50:14 -04:00
|
|
|
patch -p1 < $($(package)_patch_dir)/remove_libstd_link.patch && \
|
2022-01-03 09:39:10 -03:00
|
|
|
patch -p1 < $($(package)_patch_dir)/netbsd_kevent_void.patch && \
|
2020-08-18 02:50:14 -04:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub config
|
2016-06-22 05:56:07 -04:00
|
|
|
endef
|
|
|
|
|
2015-05-05 21:30:20 -03:00
|
|
|
define $(package)_config_cmds
|
2022-01-03 09:39:10 -03:00
|
|
|
./autogen.sh && \
|
2015-05-05 21:30:20 -03:00
|
|
|
$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2016-12-01 01:39:31 -03:00
|
|
|
$(MAKE) src/libzmq.la
|
2015-05-05 21:30:20 -03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2016-05-03 09:52:10 -03:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install-libLTLIBRARIES install-includeHEADERS install-pkgconfigDATA
|
2015-05-05 21:30:20 -03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
2019-04-18 13:49:11 -04:00
|
|
|
rm -rf bin share lib/*.la
|
2015-05-05 21:30:20 -03:00
|
|
|
endef
|