1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #
  2. # Copyright (C) 2006-2014 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.2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_MD5SUM:=2f47841c829facb346eb6e3fab5212e2
  13. PKG_SOURCE_URL:=@SF/expat
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_REMOVE_FILES:=conftools/libtool.m4
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/host-build.mk
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libexpat
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=An XML parsing library
  27. URL:=http://expat.sourceforge.net/
  28. endef
  29. define Package/libexpat/description
  30. A fast, non-validating, stream-oriented XML parsing library.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_ARGS += \
  34. --enable-shared \
  35. --enable-static
  36. define Host/Install
  37. $(MAKE) -C $(HOST_BUILD_DIR) install
  38. endef
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  43. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/expat.pc $(1)/usr/lib/pkgconfig/
  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))