mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-01 01:47:42 +00:00
28 lines
726 B
Makefile
28 lines
726 B
Makefile
|
package=native_protobuf
|
||
|
$(package)_version=3.6.1
|
||
|
$(package)_download_path=https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/
|
||
|
$(package)_file_name=protobuf-cpp-3.6.1.tar.gz
|
||
|
$(package)_sha256_hash=b3732e471a9bb7950f090fd0457ebd2536a9ba0891b7f3785919c654fe2a2529
|
||
|
$(package)_cxxflags=-std=c++11
|
||
|
|
||
|
define $(package)_set_vars
|
||
|
$(package)_config_opts=--disable-shared --prefix=$(build_prefix)
|
||
|
$(package)_config_opts_linux=--with-pic
|
||
|
endef
|
||
|
|
||
|
define $(package)_config_cmds
|
||
|
$($(package)_autoconf)
|
||
|
endef
|
||
|
|
||
|
define $(package)_build_cmds
|
||
|
$(MAKE) -C src
|
||
|
endef
|
||
|
|
||
|
define $(package)_stage_cmds
|
||
|
$(MAKE) DESTDIR=$($(package)_staging_dir) -C src install
|
||
|
endef
|
||
|
|
||
|
define $(package)_postprocess_cmds
|
||
|
rm lib/libprotoc.a
|
||
|
endef
|