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.

69 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=expat
  9. PKG_VERSION:=2.1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_MD5SUM:=dd7dab7a5fea97d2a6a43f511449b7cd
  13. PKG_SOURCE_URL:=@SF/expat
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_LICENSE:=MIT
  16. PACKAGE_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_REMOVE_FILES:=conftools/libtool.m4
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/host-build.mk
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libexpat
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=An XML parsing library
  26. URL:=http://expat.sourceforge.net/
  27. endef
  28. define Package/libexpat/description
  29. A fast, non-validating, stream-oriented XML parsing library.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_ARGS += \
  33. --enable-shared \
  34. --enable-static
  35. define Build/Compile
  36. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
  37. endef
  38. define Host/Install
  39. $(MAKE) -C $(HOST_BUILD_DIR) install
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
  46. endef
  47. define Package/libexpat/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
  50. endef
  51. $(eval $(call HostBuild))
  52. $(eval $(call BuildPackage,libexpat))