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.

48 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. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libroxml
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Minimum, easy-to-use, C implementation for xml file parsing
  25. URL:=http://www.libroxml.net/
  26. ABI_VERSION:=2
  27. endef
  28. CMAKE_OPTIONS += \
  29. -DBUILD_TESTING=OFF \
  30. -DCONFIG_XML_FILE=OFF \
  31. -DCONFIG_XML_EDIT=OFF \
  32. -DCONFIG_XML_COMMIT=OFF \
  33. -DCONFIG_XML_XPATH=OFF
  34. define Package/libroxml/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libroxml.so.* $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,libroxml))