2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_REVISION).tar.xz
16 PKG_SOURCE_URL:=http://gmplib.org/download/gmp/
17 PKG_MD5SUM:=1e6da4e434553d2811437aa42c7f7c76
26 include $(INCLUDE_DIR)/host-build.mk
27 include $(INCLUDE_DIR)/package.mk
32 TITLE:=GNU multiprecision arithmetic library
33 URL:=http://gmplib.org/
36 define Package/libgmp/description
37 GMP is a free library for arbitrary precision arithmetic, operating on
38 signed integers, rational numbers, and floating point numbers.
41 TARGET_CFLAGS += $(FPIC)
42 CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
50 $(call Build/Compile/Default, \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(1)/usr/include/
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(1)/usr/lib/
64 define Package/libgmp/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
69 $(eval $(call BuildPackage,libgmp))
70 $(eval $(call HostBuild))