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.

48 lines
1.4 KiB

  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=msgpack-c
  6. PKG_VERSION:=3.3.0
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/msgpack/msgpack-c/tar.gz/cpp-$(PKG_VERSION)?
  10. PKG_HASH:=754c3ace499a63e45b77ef4bcab4ee602c2c414f58403bce826b76ffc2f77d0b
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-cpp-$(PKG_VERSION)
  12. PKG_LICENSE:=BSL-1.0
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  15. PKG_BUILD_PARALLEL:=1
  16. CMAKE_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. CMAKE_OPTIONS+= -DMSGPACK_BUILD_EXAMPLES:BOOL=OFF
  20. define Package/msgpack-c
  21. SECTION:=lib
  22. CATEGORY:=Libraries
  23. TITLE:=MessagePack implementation for C and C++
  24. URL:=https://github.com/msgpack/msgpack-c
  25. endef
  26. define Package/msgpack-c/description
  27. MessagePack is an efficient binary serialization format, which lets
  28. you exchange data among multiple languages like JSON, except that
  29. it's faster and smaller. Small integers are encoded into a single
  30. byte and short strings require only one extra byte in addition to
  31. the strings themselves.
  32. endef
  33. define Package/msgpack-c/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmsgpackc.so* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,msgpack-c))