| 1 | package=zeromq |
| 2 | $(package)_version=4.3.4 |
| 3 | $(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/ |
| 4 | $(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 5 | $(package)_sha256_hash=c593001a89f5a85dd2ddf564805deb860e02471171b3f204944857336295c3e5 |
| 6 | $(package)_patches=06aba27b04c5822cb88a69677382a0f053367143.patch |
| 7 | |
| 8 | define $(package)_set_vars |
| 9 | $(package)_config_opts=--without-documentation --disable-shared --without-libsodium --disable-curve |
| 10 | $(package)_config_opts_linux=--with-pic |
| 11 | $(package)_config_opts_freebsd=--with-pic |
| 12 | $(package)_cxxflags=-std=c++11 |
| 13 | endef |
| 14 | |
| 15 | define $(package)_preprocess_cmds |
| 16 | patch -p1 < $($(package)_patch_dir)/06aba27b04c5822cb88a69677382a0f053367143.patch |
| 17 | endef |
| 18 | |
| 19 | define $(package)_config_cmds |
| 20 | $($(package)_autoconf) AR_FLAGS=$($(package)_arflags) |
| 21 | endef |
| 22 | |
| 23 | define $(package)_build_cmds |
| 24 | $(MAKE) src/libzmq.la |
| 25 | endef |
| 26 | |
| 27 | define $(package)_stage_cmds |
| 28 | $(MAKE) DESTDIR=$($(package)_staging_dir) install-libLTLIBRARIES install-includeHEADERS install-pkgconfigDATA |
| 29 | endef |
| 30 | |
| 31 | define $(package)_postprocess_cmds |
| 32 | rm -rf bin share &&\ |
| 33 | rm lib/*.la |
| 34 | endef |
| 35 |