Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= protobuf
  5. PKG_VERSION:= 3.19.4
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 3bd7828aa5af4b13b99c191e8b1e884ebfa9ad371b0ce264605d347f135d2568
  8. PKG_DESCR:= extensible mechanism for serializing structured data
  9. PKG_SECTION:= libs/misc
  10. PKG_URL:= https://developers.google.com/protocol-buffers/
  11. PKG_SITES:= https://github.com/google/protobuf/archive/
  12. PKG_OPTS:= dev
  13. DISTFILES:= v$(PKG_VERSION).tar.gz
  14. include $(ADK_TOPDIR)/mk/host.mk
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,PROTOBUF,protobuf,$(PKG_VERSION)-$(PKG_RELEASE)))
  17. $(eval $(call PKG_template,PROTOBUF,protobuf,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  18. AUTOTOOL_STYLE:= autogen
  19. CONFIGURE_ARGS+= --with-protoc=$(STAGING_HOST_DIR)/usr/bin/protoc
  20. protobuf-install:
  21. $(INSTALL_DIR) $(IDIR_PROTOBUF)/usr/lib
  22. $(CP) $(WRKINST)/usr/lib/libprotobuf*.so* \
  23. $(IDIR_PROTOBUF)/usr/lib
  24. include $(ADK_TOPDIR)/mk/host-bottom.mk
  25. include $(ADK_TOPDIR)/mk/pkg-bottom.mk