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.

51 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.1
  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:=9dce9f0a3756c5ab84ab7466c99972d030021d81d674f5d38b9e30e9a3ec4922
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/pugixml
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=pugixml
  22. URL:=https://github.com/zeux/pugixml
  23. DEPENDS:=+libstdcpp
  24. BUILDONLY:=1
  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. TARGET_CXXFLAGS += -flto
  35. define Build/InstallDev
  36. $(call Build/InstallDev/cmake,$(1))
  37. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/pugixml.pc
  38. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/pugixml.pc
  39. endef
  40. $(eval $(call BuildPackage,pugixml))