#
-# Copyright (C) 2006-2014 OpenWrt.org
+# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=gmp
-PKG_VERSION:=6.0.0
-PKG_REVISION:=a
+PKG_VERSION:=6.1.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_REVISION).tar.xz
-PKG_SOURCE_URL:=ftp://ftp.gmplib.org/pub/$(PKG_NAME)/
-PKG_MD5SUM:=1e6da4e434553d2811437aa42c7f7c76
+PKG_SOURCE_URL:=@GNU/gmp/
+PKG_HASH:=d36e9c05df488ad630fff17edb50051d6432357f9ce04e34a09b3d818825e831
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
+PKG_LICENSE:=GPL-2.0+
PKG_USE_MIPS16:=0
+include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/libgmp
--without-readline \
--disable-fft \
-
define Build/Compile
$(call Build/Compile/Default, \
DESTDIR="$(PKG_INSTALL_DIR)" \
endef
$(eval $(call BuildPackage,libgmp))
+$(eval $(call HostBuild))