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.

47 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2020 Linos Giannopoulos
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libcbor
  9. PKG_VERSION:=0.8.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/PJK/libcbor/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=618097166ea4a54499646998ccaa949a5816e6a665cf1d6df383690895217c8b
  14. PKG_LICENSE:=GPL-3.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Linos Giannopoulos <linosgian00+openwrt@gmail.com>
  17. CMAKE_OPTIONS += \
  18. -DBUILD_SHARED_LIBS=ON
  19. CMAKE_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/libcbor
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=libcbor
  26. URL:=https://github.com/PJK/libcbor
  27. ABI_VERSION:=0
  28. endef
  29. define Package/libcbor/description
  30. libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
  31. endef
  32. define Package/libcbor/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcbor.so.* $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,libcbor))