2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
13 PKG_SOURCE_URL
:=@SF
/expat
14 PKG_HASH
:=03ad85db965f8ab2d27328abcf0bc5571af6ec0a414874b2066ee3fdd372019e
15 PKG_MAINTAINER
:=Steven Barth
<cyrus@openwrt.org
>, \
16 Ted Hess
<thess@kitschensync.net
>
19 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/host-build.mk
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libexpat
32 TITLE
:=An XML parsing library
33 URL
:=https
://libexpat.github.io
/
36 define Package
/libexpat
/description
37 A fast
, non-validating
, stream-oriented XML parsing library.
40 TARGET_CFLAGS
+= $(FPIC
)
47 $(MAKE
) -C
$(HOST_BUILD_DIR
) install
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/expat
{,_external
}.h
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
55 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/expat.
pc $(1)/usr
/lib
/pkgconfig
/
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libexpat.
{a
,so
*} $(1)/usr
/lib
/
61 define Package
/libexpat
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libexpat.so.
* $(1)/usr
/lib
/
66 $(eval
$(call HostBuild
))
67 $(eval
$(call BuildPackage
,libexpat
))