[package] gmp: Version bump
[openwrt/svn-archive/archive.git] / libs / gmp / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gmp
11 PKG_VERSION:=5.1.0
12 PKG_RELEASE:=1
13
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:=362cf515aff8dc240958ce47418e4c78
17
18 PKG_BUILD_PARALLEL:=1
19 PKG_INSTALL:=1
20 PKG_FIXUP:=autoreconf
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libgmp
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=GNU multiprecision arithmetic library
28 URL:=http://gmplib.org/
29 endef
30
31 define Package/libgmp/description
32 GMP is a free library for arbitrary precision arithmetic, operating on
33 signed integers, rational numbers, and floating point numbers.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37 CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
38 CONFIGURE_ARGS += \
39 --enable-shared \
40 --enable-static \
41
42 define Build/Compile
43 $(call Build/Compile/Default, \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 CC="$(TARGET_CC)" \
46 all \
47 )
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(1)/usr/include/
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(1)/usr/lib/
55 endef
56
57 define Package/libgmp/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libgmp))