2 # Copyright (C) 2006-2014 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.bz2
15 PKG_HASH
:=cd77a2869e32354b004cc6b34fcb0bee56114caa2d9ed862aaa8071441e34eb7
16 PKG_SOURCE_URL
:=@SF
/expat
17 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>
20 PKG_LICENSE_FILES
:=COPYING
27 include $(INCLUDE_DIR
)/host-build.mk
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libexpat
33 TITLE
:=An XML parsing library
34 URL
:=https
://libexpat.github.io
/
37 define Package
/libexpat
/description
38 A fast
, non-validating
, stream-oriented XML parsing library.
41 TARGET_CFLAGS
+= $(FPIC
)
48 $(MAKE
) -C
$(HOST_BUILD_DIR
) install
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/expat
{,_external
}.h
$(1)/usr
/include/
55 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
56 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/expat.
pc $(1)/usr
/lib
/pkgconfig
/
58 $(INSTALL_DIR
) $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libexpat.
{a
,so
*} $(1)/usr
/lib
/
62 define Package
/libexpat
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libexpat.so.
* $(1)/usr
/lib
/
67 $(eval
$(call HostBuild
))
68 $(eval
$(call BuildPackage
,libexpat
))