8e46aa989eb70b553fb517eb0ea3f028aeb6b962
[openwrt/openwrt.git] / tools / 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_CPE_ID:=cpe:/a:libexpat:libexpat
12 PKG_VERSION:=2.7.1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_HASH:=0cce2e6e69b327fc607b8ff264f4b66bdf71ead55a87ffd5f3143f535f15cfa2
16 PKG_SOURCE_URL:=https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$(PKG_VERSION))
17
18 HOST_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 HOSTCC := $(HOSTCC_NOCACHE)
23 HOSTCXX := $(HOSTCXX_NOCACHE)
24
25 HOST_CONFIGURE_ARGS += \
26 --disable-shared \
27 --without-docbook \
28 --without-tests \
29 --with-pic
30
31 define Host/Uninstall
32 -$(call Host/Compile/Default,uninstall)
33 endef
34
35 $(eval $(call HostBuild))