openssl: revert EOF detection change in 1.1.1
[librecmc/librecmc.git] / package / libs / expat / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=expat
9 PKG_VERSION:=2.2.7
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@SF/expat
14 PKG_HASH:=30e3f40acf9a8fdbd5c379bdcc8d1178a1d9af306de29fc8ece922bc4c57bef8
15
16 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=COPYING
19 PKG_CPE_ID:=cpe:/a:libexpat:expat
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libexpat
29   SECTION:=libs
30   CATEGORY:=Libraries
31   TITLE:=An XML parsing library
32   URL:=https://libexpat.github.io/
33 endef
34
35 define Package/libexpat/description
36  A fast, non-validating, stream-oriented XML parsing library.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 CONFIGURE_ARGS += \
42         --enable-shared \
43         --enable-static \
44         --without-docbook
45
46 HOST_CONFIGURE_ARGS += \
47         --without-docbook
48
49 define Host/Install
50         $(MAKE) -C $(HOST_BUILD_DIR) install
51 endef
52
53 define Build/InstallDev
54         $(INSTALL_DIR) $(1)/usr/include
55         $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
56
57         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/expat.pc $(1)/usr/lib/pkgconfig/
59
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
62 endef
63
64 define Package/libexpat/install
65         $(INSTALL_DIR) $(1)/usr/lib
66         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
67 endef
68
69 $(eval $(call HostBuild))
70 $(eval $(call BuildPackage,libexpat))