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.

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