2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@GNU
/gmp
17 PKG_MD5SUM
:=7ce52531644e6d12f16911b7e3151f3f
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=GNU multiprecision arithmetic library
25 URL
:=http
://gmplib.org
/
28 define Package
/libgmp
/description
29 GMP is a free library for arbitrary precision arithmetic
, operating on
30 signed integers
, rational numbers
, and floating point numbers.
33 CONFIGURE_VARS
+= CC
="$(TARGET_CROSS)gcc"
39 $(call Build
/Compile
/Default
, \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
46 define Build
/InstallDev
47 mkdir
-p
$(1)/usr
/include
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gmp
* $(1)/usr
/include/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.
{a
,so
*} $(1)/usr
/lib
/
53 define Package
/libgmp
/install
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.so.
* $(1)/usr
/lib
/
58 $(eval
$(call BuildPackage
,libgmp
))