forked from xagau/Placeholders-X16R
-
Notifications
You must be signed in to change notification settings - Fork 1
/
veriblock-pop-cpp.mk
46 lines (42 loc) · 1.67 KB
/
veriblock-pop-cpp.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package=veriblock-pop-cpp
$(package)_version=757c52ac187a4f8aadac2738b2d53aa453adc639
$(package)_download_path=https://github.com/VeriBlock/alt-integration-cpp/archive/
$(package)_file_name=$($(package)_version).tar.gz
$(package)_sha256_hash=1f27b545c9b18c05abed593841c7fa764e54c0f429334a03bb1fd4ae947d0224
$(package)_build_subdir=build
$(package)_build_type=$(BUILD_TYPE)
$(package)_asan=$(ASAN)
define $(package)_preprocess_cmds
mkdir -p build
endef
ifeq ($(strip $(HOST)),)
define $(package)_config_cmds
cmake -DCMAKE_INSTALL_PREFIX=$(host_prefix) -DCMAKE_BUILD_TYPE=$(package)_build_type \
-DTESTING=OFF -DSHARED=OFF -DASAN:BOOL=$(package)_asan ..
endef
else ifeq ($(HOST), x86_64-apple-darwin16)
define $(package)_config_cmds
cmake -DCMAKE_C_COMPILER=$(darwin_CC) -DCMAKE_CXX_COMPILER=$(darwin_CXX) \
-DCMAKE_INSTALL_PREFIX=$(host_prefix) -DCMAKE_BUILD_TYPE=$(package)_build_type \
-DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_PROCESSOR=x86_64 \
-DCMAKE_C_COMPILER_TARGET=$(HOST) -DCMAKE_CXX_COMPILER_TARGET=$(HOST) \
-DCMAKE_OSX_SYSROOT=$(OSX_SDK) -DTESTING=OFF \
-DSHARED=OFF ..
endef
else ifeq ($(HOST), x86_64-pc-linux-gnu)
define $(package)_config_cmds
cmake -DCMAKE_INSTALL_PREFIX=$(host_prefix) -DCMAKE_BUILD_TYPE=$(package)_build_type \
-DTESTING=OFF -DSHARED=OFF ..
endef
else
define $(package)_config_cmds
cmake -DCMAKE_C_COMPILER=$(HOST)-gcc -DCMAKE_CXX_COMPILER=$(HOST)-g++ \
-DCMAKE_INSTALL_PREFIX=$(host_prefix) -DTESTING=OFF -DSHARED=OFF ..
endef
endif
define $(package)_build_cmds
$(MAKE)
endef
define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install
endef