2 # Copyright (C) 2006-2012 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.gmplib.org/pub/$(PKG_NAME)-$(PKG_VERSION)/
16 PKG_MD5SUM:=a082867cbca5e898371a97bb27b31fea
24 include $(INCLUDE_DIR)/package.mk
29 TITLE:=GNU multiprecision arithmetic library
30 URL:=http://gmplib.org/
33 define Package/libgmp/description
34 GMP is a free library for arbitrary precision arithmetic, operating on
35 signed integers, rational numbers, and floating point numbers.
38 TARGET_CFLAGS += $(FPIC)
39 CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
45 $(call Build/Compile/Default, \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(1)/usr/include/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(1)/usr/lib/
59 define Package/libgmp/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
64 $(eval $(call BuildPackage,libgmp))