You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

protobuf.mk 837B

12345678910111213141516171819202122232425262728
  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. define $(package)_set_vars
  8. $(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc
  9. $(package)_config_opts_linux=--with-pic
  10. endef
  11. define $(package)_config_cmds
  12. $($(package)_autoconf)
  13. endef
  14. define $(package)_build_cmds
  15. $(MAKE) -C src libprotobuf.la
  16. endef
  17. define $(package)_stage_cmds
  18. $(MAKE) DESTDIR=$($(package)_staging_dir) -C src install-libLTLIBRARIES install-nobase_includeHEADERS &&\
  19. $(MAKE) DESTDIR=$($(package)_staging_dir) install-pkgconfigDATA
  20. endef
  21. define $(package)_postprocess_cmds
  22. rm lib/libprotoc.a
  23. endef