2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=aff487543845a82fe262e6e2922b4c8e
17 PKG_SOURCE_URL:=@SF/expat
21 include $(INCLUDE_DIR)/package.mk
24 define Package/libexpat
27 TITLE:=An XML parsing library
28 URL:=http://expat.sourceforge.net/
31 define Package/libexpat/description
32 A fast, non-validating, stream-oriented XML parsing library.
41 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
44 define Build/InstallDev
45 mkdir -p $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
51 define Package/libexpat/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
57 $(eval $(call BuildPackage,libexpat))