Merge pull request #15797 from lnslbrty/update/libulfius-2.7.3
[feed/packages.git] / 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.4.1
10 PKG_RELEASE:=$(AUTORELEASE)
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@SF/expat
14 PKG_HASH:=cf032d0dba9b928636548e32b327a2d66b1aab63c4f4a13dd132c2d1d2f2fb6a
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 CMAKE_INSTALL:=1
22
23 include $(INCLUDE_DIR)/host-build.mk
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/libexpat
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=An XML parsing library
31 URL:=https://libexpat.github.io/
32 endef
33
34 define Package/libexpat/description
35 A fast, non-validating, stream-oriented XML parsing library.
36 endef
37
38 OPTIONS += \
39 -DDOCBOOK_TO_MAN=OFF \
40 -DEXPAT_BUILD_TOOLS=OFF \
41 -DEXPAT_BUILD_EXAMPLES=OFF \
42 -DEXPAT_BUILD_TESTS=OFF \
43 -DEXPAT_BUILD_DOCS=OFF \
44 -DEXPAT_WITH_LIBBSD=OFF \
45 -DEXPAT_ENABLE_INSTALL=ON \
46 -DEXPAT_DTD=OFF \
47 -DEXPAT_NS=OFF \
48 -DEXPAT_DEV_URANDOM=OFF
49
50 CMAKE_OPTIONS += $(OPTIONS)
51 CMAKE_HOST_OPTIONS += $(OPTIONS)
52
53 define Package/libexpat/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call HostBuild))
59 $(eval $(call BuildPackage,libexpat))