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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_MD5SUM
:=ee8b492592568805593f81f8cdf2a04c
16 PKG_SOURCE_URL
:=@SF
/expat
20 include $(INCLUDE_DIR
)/host-build.mk
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libexpat
26 TITLE
:=An XML parsing library
27 URL
:=http
://expat.sourceforge.net
/
30 define Package
/libexpat
/description
31 A fast
, non-validating
, stream-oriented XML parsing library.
35 TARGET_CFLAGS
+= $(FPIC
)
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" install
46 $(MAKE
) -C
$(HOST_BUILD_DIR
) install
49 define Build
/InstallDev
50 mkdir
-p
$(1)/usr
/include
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/expat
{,_external
}.h
$(1)/usr
/include/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libexpat.
{a
,so
*} $(1)/usr
/lib
/
56 define Package
/libexpat
/install
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libexpat.so.
* $(1)/usr
/lib
/
61 $(eval
$(call HostBuild
))
62 $(eval
$(call BuildPackage
,libexpat
))