mirror of
https://github.com/monero-project/monero.git
synced 2025-01-07 03:19:24 +00:00
depends: zeromq: build with cmake
This commit is contained in:
parent
f421ecca17
commit
bf914df102
1 changed files with 15 additions and 10 deletions
|
@ -3,28 +3,33 @@ $(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
|
||||
|
||||
define $(package)_set_vars
|
||||
$(package)_config_opts=--without-documentation --disable-shared --without-libsodium --disable-curve
|
||||
$(package)_config_opts_linux=--with-pic
|
||||
$(package)_config_opts_freebsd=--with-pic
|
||||
$(package)_cxxflags=-std=c++11
|
||||
$(package)_config_opts := -DBUILD_SHARED=OFF
|
||||
$(package)_config_opts += -DWITH_DOC=OFF
|
||||
$(package)_config_opts += -DZMQ_BUILD_TESTS=OFF
|
||||
$(package)_config_opts += -DZMQ_HAVE_IPC=OFF
|
||||
endef
|
||||
|
||||
# Remove (autogenerated) files that are not present in the git source tree
|
||||
define $(package)_preprocess_cmds
|
||||
rm ChangeLog configure Makefile.in aclocal.m4 builds/Makefile.in && \
|
||||
rm -rf doc config builds/deprecated-msvc
|
||||
endef
|
||||
|
||||
define $(package)_config_cmds
|
||||
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
||||
$($(package)_cmake) -S .. -B .
|
||||
endef
|
||||
|
||||
define $(package)_build_cmds
|
||||
$(MAKE) src/libzmq.la
|
||||
$(MAKE)
|
||||
endef
|
||||
|
||||
define $(package)_stage_cmds
|
||||
$(MAKE) DESTDIR=$($(package)_staging_dir) install-libLTLIBRARIES install-includeHEADERS install-pkgconfigDATA
|
||||
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
||||
endef
|
||||
|
||||
define $(package)_postprocess_cmds
|
||||
rm -rf bin share &&\
|
||||
rm lib/*.la
|
||||
rm -rf share
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in a new issue