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.

67 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:=expat
  7. PKG_VERSION:=2.2.5
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=@SF/expat
  11. PKG_HASH:=d9dc32efba7e74f788fcc4f212a43216fc37cf5f23f4c2339664d473353aedf6
  12. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>, \
  13. Ted Hess <thess@kitschensync.net>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/host-build.mk
  20. include $(INCLUDE_DIR)/package.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. TARGET_CFLAGS += $(FPIC)
  31. CONFIGURE_ARGS += \
  32. --enable-shared \
  33. --enable-static
  34. define Host/Install
  35. $(MAKE) -C $(HOST_BUILD_DIR) install
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  41. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/expat.pc $(1)/usr/lib/pkgconfig/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
  44. endef
  45. define Package/libexpat/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
  48. endef
  49. $(eval $(call HostBuild))
  50. $(eval $(call BuildPackage,libexpat))