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.

52 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uci2
  3. PKG_VERSION:=1.0
  4. PKG_RELEASE:=2
  5. PKG_SOURCE_URL:=https://github.com/sartura/uci2.git
  6. PKG_SOURCE_PROTO:=git
  7. PKG_SOURCE_DATE:=2021-07-12
  8. PKG_SOURCE_VERSION:=56064182acdd8fa522abab67fdbaa10c2a28165c
  9. PKG_MIRROR_HASH:=94059a5cf110ecc04cfb9a8ffc160f9bd6a03518d4c4b195500d8eff001be9aa
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_DATE).tar.gz
  11. PKG_MAINTAINER:=Jakov Petrina <jakov.petrina@sartura.hr>
  12. PKG_LICENSE:=BSD-3-Clause
  13. PKG_LICENSE_FILES:=LICENSE
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/libuci2/Default
  17. TITLE:=AST-based C parser library for UCI
  18. URL:=https://github.com/sartura/uci2
  19. endef
  20. define Package/libuci2
  21. $(call Package/libuci2/Default)
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. endef
  25. define Package/libuci2/description
  26. UCI2 is a C library that provides an alternative UCI parser with an Abstract
  27. Syntax Tree (AST) representation of configuration files.
  28. endef
  29. CMAKE_OPTIONS += \
  30. -DENABLE_TESTS=OFF
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include
  33. $(CP) $(PKG_INSTALL_DIR)/usr/include/{libuci2,uci2_ast}.h $(1)/usr/include/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuci2.so $(1)/usr/lib/
  36. endef
  37. define Package/libuci2/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuci2.so $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libuci2))