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.

60 lines
1.3 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.2.10
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@SF/expat
  11. PKG_HASH:=5dfe538f8b5b63f03e98edac520d7d9a6a4d22e482e5c96d4d06fcc5485c25f2
  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. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/host-build.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libexpat
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=An XML parsing library
  25. URL:=https://libexpat.github.io/
  26. endef
  27. define Package/libexpat/description
  28. A fast, non-validating, stream-oriented XML parsing library.
  29. endef
  30. OPTIONS += \
  31. -DDOCBOOK_TO_MAN=OFF \
  32. -DEXPAT_BUILD_TOOLS=OFF \
  33. -DEXPAT_BUILD_EXAMPLES=OFF \
  34. -DEXPAT_BUILD_TESTS=OFF \
  35. -DEXPAT_BUILD_DOCS=OFF \
  36. -DEXPAT_WITH_LIBBSD=OFF \
  37. -DEXPAT_ENABLE_INSTALL=ON \
  38. -DEXPAT_DTD=OFF \
  39. -DEXPAT_NS=OFF \
  40. -DEXPAT_DEV_URANDOM=OFF
  41. CMAKE_OPTIONS += $(OPTIONS)
  42. CMAKE_HOST_OPTIONS += $(OPTIONS)
  43. define Package/libexpat/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
  46. endef
  47. $(eval $(call HostBuild))
  48. $(eval $(call BuildPackage,libexpat))