Changeset View
Changeset View
Standalone View
Standalone View
depends/packages/native_protobuf.mk
package=native_protobuf | package=native_protobuf | ||||
$(package)_version=2.6.1 | $(package)_version=2.6.1 | ||||
$(package)_download_path=https://github.com/google/protobuf/releases/download/v$($(package)_version) | $(package)_download_path=https://github.com/google/protobuf/releases/download/v$($(package)_version) | ||||
$(package)_file_name=protobuf-$($(package)_version).tar.bz2 | $(package)_file_name=protobuf-$($(package)_version).tar.bz2 | ||||
$(package)_sha256_hash=ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910 | $(package)_sha256_hash=ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910 | ||||
define $(package)_set_vars | define $(package)_set_vars | ||||
$(package)_config_opts=--disable-shared | $(package)_config_opts=--disable-shared | ||||
endef | endef | ||||
define $(package)_config_cmds | define $(package)_config_cmds | ||||
$($(package)_autoconf) | $($(package)_autoconf) | ||||
endef | endef | ||||
define $(package)_build_cmds | define $(package)_build_cmds | ||||
$(MAKE) -C src protoc | $(MAKE) -j$(JOBS) -C src protoc | ||||
endef | endef | ||||
define $(package)_stage_cmds | define $(package)_stage_cmds | ||||
$(MAKE) -C src DESTDIR=$($(package)_staging_dir) install-strip | $(MAKE) -C src DESTDIR=$($(package)_staging_dir) install-strip | ||||
endef | endef | ||||
define $(package)_postprocess_cmds | define $(package)_postprocess_cmds | ||||
rm -rf lib include | rm -rf lib include | ||||
endef | endef |