Merge #11597: [trivial] Fix error messages in CFeeBumper
[bitcoinplatinum.git] / depends / packages / protobuf.mk
blob54d3fd924519be2ed612830e24c3baf25629c7fa
1 package=protobuf
2 $(package)_version=$(native_$(package)_version)
3 $(package)_download_path=$(native_$(package)_download_path)
4 $(package)_file_name=$(native_$(package)_file_name)
5 $(package)_sha256_hash=$(native_$(package)_sha256_hash)
6 $(package)_dependencies=native_$(package)
7 $(package)_cxxflags=-std=c++11
9 define $(package)_set_vars
10 $(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc
11 $(package)_config_opts_linux=--with-pic
12 endef
14 define $(package)_config_cmds
15 $($(package)_autoconf)
16 endef
18 define $(package)_build_cmds
19 $(MAKE) -C src libprotobuf.la
20 endef
22 define $(package)_stage_cmds
23 $(MAKE) DESTDIR=$($(package)_staging_dir) -C src install-libLTLIBRARIES install-nobase_includeHEADERS &&\
24 $(MAKE) DESTDIR=$($(package)_staging_dir) install-pkgconfigDATA
25 endef
27 define $(package)_postprocess_cmds
28 rm lib/libprotoc.a
29 endef