Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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-c
  5. PKG_VERSION:= 1.5.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= d4cb022d55f49796959b07a9d83040822e39129bc0eb28f4e8301da17d758f62
  8. PKG_DESCR:= protocol buffers implementation in c
  9. PKG_SECTION:= libs/misc
  10. PKG_BUILDDEP:= protobuf-c-host protobuf
  11. HOST_BUILDDEP:= protobuf-host
  12. PKG_SITES:= https://github.com/protobuf-c/protobuf-c/archive/refs/tags/
  13. PKG_OPTS:= dev
  14. DISTFILES:= v$(PKG_VERSION).tar.gz
  15. include $(ADK_TOPDIR)/mk/host.mk
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,PROTOBUF_C,protobuf-c,$(PKG_VERSION)-$(PKG_RELEASE)))
  18. $(eval $(call PKG_template,PROTOBUF_C,protobuf-c,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  19. AUTOTOOL_STYLE:= autogen
  20. CONFIGURE_ENV+= PROTOC="$(STAGING_HOST_DIR)/usr/bin/protoc"
  21. protobuf-c-install:
  22. $(INSTALL_DIR) $(IDIR_PROTOBUF_C)/usr/lib
  23. $(CP) $(WRKINST)/usr/lib/libprotobuf-c*.so* \
  24. $(IDIR_PROTOBUF_C)/usr/lib
  25. include $(ADK_TOPDIR)/mk/host-bottom.mk
  26. include $(ADK_TOPDIR)/mk/pkg-bottom.mk