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.

49 lines
1.5 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.11.4
  8. PKG_RELEASE:=$(AUTORELEASE)
  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:=8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/pugixml
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=pugixml
  21. URL:=https://github.com/zeux/pugixml
  22. DEPENDS:=+libstdcpp
  23. BUILDONLY:=1
  24. endef
  25. define Package/pugixml/description
  26. pugixml is a C++ XML processing library, which consists of a DOM-like interface
  27. with rich traversal/modification capabilities, an extremely fast XML parser which
  28. constructs the DOM tree from an XML file/buffer, and an XPath 1.0 implementation
  29. for complex data-driven tree queries. Full Unicode support is also available,
  30. with Unicode interface variants and conversions between different Unicode encodings
  31. (which happen automatically during parsing/saving).
  32. endef
  33. TARGET_CXXFLAGS += -flto
  34. define Build/InstallDev
  35. $(call Build/InstallDev/cmake,$(1))
  36. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/pugixml.pc
  37. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/pugixml.pc
  38. endef
  39. $(eval $(call BuildPackage,pugixml))