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.3 KiB

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