Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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_BUILDDEP:= protobuf-host
  12. PKG_NEEDS:= c++
  13. PKG_SITES:= https://github.com/google/protobuf/archive/
  14. PKG_OPTS:= dev
  15. DISTFILES:= v$(PKG_VERSION).tar.gz
  16. include $(ADK_TOPDIR)/mk/host.mk
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call HOST_template,PROTOBUF,protobuf,$(PKG_VERSION)-$(PKG_RELEASE)))
  19. $(eval $(call PKG_template,PROTOBUF,protobuf,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  20. AUTOTOOL_STYLE:= autogen
  21. CONFIGURE_ARGS+= --with-protoc=$(STAGING_HOST_DIR)/usr/bin/protoc
  22. protobuf-install:
  23. $(INSTALL_DIR) $(IDIR_PROTOBUF)/usr/lib
  24. $(CP) $(WRKINST)/usr/lib/libprotobuf*.so* \
  25. $(IDIR_PROTOBUF)/usr/lib
  26. include $(ADK_TOPDIR)/mk/host-bottom.mk
  27. include $(ADK_TOPDIR)/mk/pkg-bottom.mk