2024-02-23 02:56:52 -07:00
|
|
|
package=native_protobuf
|
2023-09-29 11:13:37 -06:00
|
|
|
$(package)_version=21.12
|
|
|
|
$(package)_version_protobuf_cpp=3.21.12
|
2018-12-04 14:01:03 -07:00
|
|
|
$(package)_download_path=https://github.com/protocolbuffers/protobuf/releases/download/v$($(package)_version)/
|
2023-09-29 11:13:37 -06:00
|
|
|
$(package)_file_name=protobuf-cpp-$($(package)_version_protobuf_cpp).tar.gz
|
|
|
|
$(package)_sha256_hash=4eab9b524aa5913c6fffb20b2a8abf5ef7f95a80bc0701f3a6dbb4c607f73460
|
2018-12-04 14:01:03 -07:00
|
|
|
$(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
|
2024-02-23 02:56:52 -07:00
|
|
|
$(MAKE) -C src protoc
|
2018-12-04 14:01:03 -07:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2024-02-23 02:56:52 -07:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) -C src install-binPROGRAMS install-nobase_dist_protoDATA
|
2018-12-04 14:01:03 -07:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
2024-02-23 02:56:52 -07:00
|
|
|
rm -rf lib/
|
2018-12-04 14:01:03 -07:00
|
|
|
endef
|