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.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2017 OpenWrt.org
  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:=libyang
  9. PKG_VERSION:=2.0.112
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/CESNET/libyang/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=184dd67c66c1ad968a2ee4d0950fb6b103834917b04b17af9c7bca80967636ee
  14. PKG_MAINTAINER:=Jakov Smolic <jakov.smolic@sartura.hr>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. CMAKE_INSTALL:=1
  18. CMAKE_BINARY_SUBDIR:=build
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libyang
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=YANG data modeling language library
  25. URL:=https://github.com/CESNET/libyang
  26. DEPENDS:=+libpcre2 +libpthread
  27. endef
  28. define Package/yanglint
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. TITLE:=YANG data modeling language utility
  32. URL:=https://github.com/CESNET/libyang
  33. DEPENDS:=+libyang
  34. endef
  35. define Package/libyang/description
  36. libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
  37. The library is used e.g. in libnetconf2, Netopeer2 or sysrepo projects.
  38. endef
  39. define Package/libyang/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyang.so* $(1)/usr/lib/
  42. endef
  43. define Package/yanglint/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/yanglint $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,libyang))
  48. $(eval $(call BuildPackage,yanglint))