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:=ftp://ftp.gmplib.org/pub/$(PKG_NAME)/
17 PKG_MD5SUM:=1e6da4e434553d2811437aa42c7f7c76
25 include $(INCLUDE_DIR)/package.mk
30 TITLE:=GNU multiprecision arithmetic library
31 URL:=http://gmplib.org/
34 define Package/libgmp/description
35 GMP is a free library for arbitrary precision arithmetic, operating on
36 signed integers, rational numbers, and floating point numbers.
39 TARGET_CFLAGS += $(FPIC)
40 CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
49 $(call Build/Compile/Default, \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(1)/usr/include/
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(1)/usr/lib/
63 define Package/libgmp/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
68 $(eval $(call BuildPackage,libgmp))