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) 2014 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:=libroxml
  9. PKG_VERSION:=3.0.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.libroxml.net/pool/v3.x
  13. PKG_HASH:=ed6d68d1bceabf98e5e76907411e2e4d93b2dbd48479ab41dede851f59dad6a3
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=License.txt
  17. CMAKE_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../devel/ninja/ninja-cmake.mk
  20. define Package/libroxml
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Minimum, easy-to-use, C implementation for xml file parsing
  24. URL:=http://www.libroxml.net/
  25. ABI_VERSION:=2
  26. endef
  27. CMAKE_OPTIONS += \
  28. -DBUILD_TESTING=OFF \
  29. -DCONFIG_XML_FILE=OFF \
  30. -DCONFIG_XML_EDIT=OFF \
  31. -DCONFIG_XML_COMMIT=OFF \
  32. -DCONFIG_XML_XPATH=OFF
  33. define Package/libroxml/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libroxml.so.* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,libroxml))