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.

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