Update hostapd to 0.6.4
[openwrt.git] / package / gmp / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gmp
12 PKG_VERSION:=4.2.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNU/gmp
17 PKG_MD5SUM:=7ce52531644e6d12f16911b7e3151f3f
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libgmp
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=GNU multiprecision arithmetic library
25 URL:=http://gmplib.org/
26 endef
27
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.
31 endef
32
33 TARGET_CFLAGS += $(FPIC)
34 CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
35 CONFIGURE_ARGS += \
36 --enable-shared \
37 --enable-static \
38
39 define Build/Compile
40 $(call Build/Compile/Default, \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 CC="$(TARGET_CC)" \
43 all install \
44 )
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(1)/usr/include/
50 mkdir -p $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/libgmp/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libgmp))
This page took 0.041525 seconds and 5 git commands to generate.