mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Add Chia bls-signatures library to depends
This commit is contained in:
parent
f3dcb6916c
commit
3039d44d39
50
depends/packages/chia_bls.mk
Normal file
50
depends/packages/chia_bls.mk
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
package=chia_bls
|
||||||
|
$(package)_version=b24c15cef6567a855e901b4774d1d22efb063ea9
|
||||||
|
# It's actually from https://github.com/Chia-Network/bls-signatures, but we have so many patches atm that it's forked
|
||||||
|
$(package)_download_path=https://github.com/codablock/bls-signatures/archive
|
||||||
|
$(package)_file_name=$($(package)_version).tar.gz
|
||||||
|
$(package)_sha256_hash=96b5f9b70179e2e76123fb19b7a00dec9188b571757db15949bf9f1d8dee864f
|
||||||
|
$(package)_dependencies=gmp
|
||||||
|
#$(package)_patches=...TODO (when we switch back to https://github.com/Chia-Network/bls-signatures)
|
||||||
|
|
||||||
|
#define $(package)_preprocess_cmds
|
||||||
|
# for i in $($(package)_patches); do patch -N -p1 < $($(package)_patch_dir)/$$$$i; done
|
||||||
|
#endef
|
||||||
|
|
||||||
|
define $(package)_set_vars
|
||||||
|
$(package)_config_opts=-DCMAKE_INSTALL_PREFIX=$($(package)_staging_dir)/$(host_prefix)
|
||||||
|
$(package)_config_opts+= -DCMAKE_PREFIX_PATH=$(host_prefix)
|
||||||
|
$(package)_config_opts+= -DSTLIB=ON -DSHLIB=OFF -DSTBIN=ON
|
||||||
|
$(package)_config_opts_linux=-DOPSYS=LINUX -DCMAKE_SYSTEM_NAME=Linux
|
||||||
|
$(package)_config_opts_darwin=-DOPSYS=MACOSX -DCMAKE_SYSTEM_NAME=Darwin
|
||||||
|
$(package)_config_opts_mingw32=-DOPSYS=WINDOWS -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SHARED_LIBRARY_LINK_C_FLAGS="" -DCMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS=""
|
||||||
|
$(package)_config_opts_i686+= -DWSIZE=32
|
||||||
|
$(package)_config_opts_x86_64+= -DWSIZE=64
|
||||||
|
$(package)_config_opts_arm+= -DWSIZE=32
|
||||||
|
$(package)_config_opts_debug=-DDEBUG=ON -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
|
||||||
|
ifneq ($(darwin_native_toolchain),)
|
||||||
|
$(package)_config_opts_darwin+= -DCMAKE_AR="$(host_prefix)/native/bin/$($(package)_ar)"
|
||||||
|
$(package)_config_opts_darwin+= -DCMAKE_RANLIB="$(host_prefix)/native/bin/$($(package)_ranlib)"
|
||||||
|
endif
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_config_cmds
|
||||||
|
export CC="$($(package)_cc)" && \
|
||||||
|
export CXX="$($(package)_cxx)" && \
|
||||||
|
export CFLAGS="$($(package)_cflags) $($(package)_cppflags)" && \
|
||||||
|
export CXXFLAGS="$($(package)_cxxflags) $($(package)_cppflags)" && \
|
||||||
|
export LDFLAGS="$($(package)_ldflags)" && \
|
||||||
|
mkdir build && cd build && \
|
||||||
|
cmake ../ $($(package)_config_opts)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_build_cmds
|
||||||
|
cd build && \
|
||||||
|
$(MAKE) $($(package)_build_opts)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_stage_cmds
|
||||||
|
cd build && \
|
||||||
|
$(MAKE) install
|
||||||
|
endef
|
@ -1,4 +1,4 @@
|
|||||||
packages:=boost openssl libevent zeromq gmp
|
packages:=boost openssl libevent zeromq gmp chia_bls
|
||||||
native_packages := native_ccache
|
native_packages := native_ccache
|
||||||
|
|
||||||
qt_native_packages = native_protobuf
|
qt_native_packages = native_protobuf
|
||||||
|
Loading…
Reference in New Issue
Block a user