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
19 include $(INCLUDE_DIR)/package.mk
22 define Package/libexpat
25 TITLE:=An XML parsing library
26 URL:=http://expat.sourceforge.net/
29 define Package/libexpat/description
30 A fast, non-validating, stream-oriented XML parsing library.
34 PKG_CONFIGURE_ARGS += \
39 define Build/Configure
40 $(call Build/Configure/Default)
41 $(call libtool_disable_rpath)
45 $(MAKE) -C $(PKG_BUILD_DIR) all
46 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
47 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
57 define Build/UninstallDev
58 rm -rf $(STAGING_DIR)/usr/include/expat{,_external}.h \
59 $(STAGING_DIR)/usr/lib/libexpat.{a,so*}
63 define Package/libexpat/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
69 $(eval $(call BuildPackage,libexpat))