tools/gmp: update to 6.3
[openwrt/staging/nbd.git] / tools / gmp / Makefile
1 #
2 # Copyright (C) 2009-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=gmp
10 PKG_VERSION:=6.3.0
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNU/gmp/
14 PKG_HASH:=a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
15 PKG_CPE_ID:=cpe:/a:gmplib:gmp
16
17 HOST_FIXUP:=autoreconf
18
19 HOST_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23 unexport CFLAGS
24
25 HOST_CONFIGURE_ARGS += \
26 --enable-static \
27 --disable-shared \
28 --disable-assembly \
29 --enable-cxx
30
31 ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
32 HOST_CONFIGURE_ARGS += ABI=x32
33 endif
34
35 define Host/Uninstall
36 -$(call Host/Compile/Default,uninstall)
37 endef
38
39 $(eval $(call HostBuild))