2022-06-02 12:50:33 +00:00
|
|
|
package=native_protobuf
|
2024-12-07 17:21:25 +00:00
|
|
|
$(package)_version=29.1
|
2024-09-29 07:36:18 +00:00
|
|
|
$(package)_download_path=https://github.com/protocolbuffers/protobuf/releases/download/v$($(package)_version)
|
|
|
|
$(package)_file_name=protobuf-$($(package)_version).tar.gz
|
2024-12-07 17:21:25 +00:00
|
|
|
$(package)_sha256_hash=3d32940e975c4ad9b8ba69640e78f5527075bae33ca2890275bf26b853c0962c
|
2024-09-29 07:36:18 +00:00
|
|
|
$(package)_dependencies=native_abseil
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2024-09-29 07:36:18 +00:00
|
|
|
$(package)_cxxflags+=-std=c++17
|
|
|
|
$(package)_config_opts=-Dprotobuf_BUILD_TESTS=OFF
|
|
|
|
$(package)_config_opts+=-Dprotobuf_ABSL_PROVIDER=package
|
|
|
|
$(package)_config_opts+=-Dprotobuf_BUILD_SHARED_LIBS=OFF
|
|
|
|
$(package)_config_opts+=-Dprotobuf_WITH_ZLIB=OFF
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2024-10-24 21:58:35 +00:00
|
|
|
rm -rf examples docs php/src/GPBMetadata compatibility objectivec/Tests csharp/keys php/tests src/google/protobuf/testdata csharp/src/Google.Protobuf.Test
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2024-09-29 07:36:18 +00:00
|
|
|
$($(package)_cmake)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2024-09-29 07:36:18 +00:00
|
|
|
$(MAKE)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2024-09-29 07:36:18 +00:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
2024-09-29 07:36:18 +00:00
|
|
|
rm -rf lib64
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|