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.

50 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.12.1
  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:=dcf671a919cc4051210f08ffd3edf9e4247f79ad583c61577a13ee93af33afc7
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-1.12
  13. PKG_MAINTAINER:=
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  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))