Merge pull request #4578 from dermoth/ddns_afraidv2
[feed/packages.git] / libs / expat / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=expat
11 PKG_VERSION:=2.2.2
12 PKG_RELEASE:=1
13
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>
18
19 PKG_LICENSE:=MIT
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/host-build.mk
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/libexpat
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=An XML parsing library
34 URL:=https://libexpat.github.io/
35 endef
36
37 define Package/libexpat/description
38 A fast, non-validating, stream-oriented XML parsing library.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 CONFIGURE_ARGS += \
44 --enable-shared \
45 --enable-static
46
47 define Host/Install
48 $(MAKE) -C $(HOST_BUILD_DIR) install
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
54
55 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
56 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/expat.pc $(1)/usr/lib/pkgconfig/
57
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
60 endef
61
62 define Package/libexpat/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call HostBuild))
68 $(eval $(call BuildPackage,libexpat))