1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.5.0
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=@SF/expat \
  11. https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$(PKG_VERSION))
  12. PKG_HASH:=ef2420f0232c087801abf705e89ae65f6257df6b7931d37846a193ef2e8cdcbe
  13. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:libexpat:expat
  17. CMAKE_INSTALL:=1
  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. CMAKE_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. define Package/libexpat/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libexpat))