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.

53 lines
1.4 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=pugixml
  7. PKG_VERSION:=1.10
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://github.com/zeux/pugixml/releases/download/v$(PKG_VERSION)
  11. PKG_HASH:=55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. CMAKE_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/pugixml
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=pugixml
  23. URL:=https://github.com/zeux/pugixml
  24. DEPENDS:=+libstdcpp
  25. endef
  26. define Package/pugixml/description
  27. pugixml is a C++ XML processing library, which consists of a DOM-like interface
  28. with rich traversal/modification capabilities, an extremely fast XML parser which
  29. constructs the DOM tree from an XML file/buffer, and an XPath 1.0 implementation
  30. for complex data-driven tree queries. Full Unicode support is also available,
  31. with Unicode interface variants and conversions between different Unicode encodings
  32. (which happen automatically during parsing/saving).
  33. endef
  34. CMAKE_OPTIONS += \
  35. -DBUILD_SHARED_LIBS=ON
  36. TARGET_CXXFLAGS += -flto
  37. define Package/pugixml/install
  38. $(INSTALL_DIR) $(1)/usr/lib/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpugixml.so* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,pugixml))