bitcoin/depends/packages/native_libtapi.mk

20 lines
723 B
Makefile
Raw Normal View History

2021-03-17 01:06:29 -03:00
package=native_libtapi
2020-08-26 22:36:07 -04:00
$(package)_version=664b8414f89612f2dfd35a9b679c345aa5389026
2021-03-17 01:06:29 -03:00
$(package)_download_path=https://github.com/tpoechtrager/apple-libtapi/archive
$(package)_file_name=$($(package)_version).tar.gz
2020-08-26 22:36:07 -04:00
$(package)_sha256_hash=62e419c12d1c9fad67cc1cd523132bc00db050998337c734c15bc8d73cc02b61
2021-03-17 01:06:29 -03:00
ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),)
$(package)_dependencies=native_clang
endif
define $(package)_build_cmds
CC=$(clang_prog) CXX=$(clangxx_prog) INSTALLPREFIX=$($(package)_staging_prefix_dir) ./build.sh
endef
define $(package)_stage_cmds
./install.sh && \
mkdir -p $($(package)_staging_prefix_dir)/include/llvm-c && \
cp src/llvm/include/llvm-c/lto.h $($(package)_staging_prefix_dir)/include/llvm-c
endef