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.xz
13 PKG_SOURCE_URL:=@SF/expat
14 PKG_HASH:=30e3f40acf9a8fdbd5c379bdcc8d1178a1d9af306de29fc8ece922bc4c57bef8
16 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
18 PKG_LICENSE_FILES:=COPYING
19 PKG_CPE_ID:=cpe:/a:libexpat:expat
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
28 define Package/libexpat
31 TITLE:=An XML parsing library
32 URL:=https://libexpat.github.io/
35 define Package/libexpat/description
36 A fast, non-validating, stream-oriented XML parsing library.
39 TARGET_CFLAGS += $(FPIC)
46 HOST_CONFIGURE_ARGS += \
50 $(MAKE) -C $(HOST_BUILD_DIR) install
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/expat.pc $(1)/usr/lib/pkgconfig/
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
64 define Package/libexpat/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
69 $(eval $(call HostBuild))
70 $(eval $(call BuildPackage,libexpat))