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.

54 lines
1.2 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:=expat
  7. PKG_VERSION:=2.4.7
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@SF/expat
  11. PKG_HASH:=9875621085300591f1e64c18fd3da3a0eeca4a74f884b9abac2758ad1bd07a7d
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_CPE_ID:=cpe:/a:libexpat:expat
  16. CMAKE_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/libexpat
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=An XML parsing library
  23. URL:=https://libexpat.github.io/
  24. endef
  25. define Package/libexpat/description
  26. A fast, non-validating, stream-oriented XML parsing library.
  27. endef
  28. CMAKE_OPTIONS += \
  29. -DDOCBOOK_TO_MAN=OFF \
  30. -DEXPAT_BUILD_TOOLS=OFF \
  31. -DEXPAT_BUILD_EXAMPLES=OFF \
  32. -DEXPAT_BUILD_TESTS=OFF \
  33. -DEXPAT_BUILD_DOCS=OFF \
  34. -DEXPAT_WITH_LIBBSD=OFF \
  35. -DEXPAT_ENABLE_INSTALL=ON \
  36. -DEXPAT_DTD=OFF \
  37. -DEXPAT_NS=OFF \
  38. -DEXPAT_DEV_URANDOM=OFF
  39. define Package/libexpat/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libexpat))