58a15eb273a6d5e0e52e422b01c305a089eac874
[openwrt/svn-archive/archive.git] / tools / mpfr / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=mpfr
10 PKG_VERSION:=2.3.2
11
12 PKG_SOURCE_URL:=http://www.mpfr.org/mpfr-2.3.2
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_MD5SUM:=527147c097874340cb9cee0579dacf3b
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 define Build/Configure
19 (cd $(PKG_BUILD_DIR); \
20 ./configure \
21 --prefix=$(STAGING_DIR_HOST) \
22 --build=$(GNU_HOST_NAME) \
23 --enable-static \
24 --disable-shared \
25 --with-gmp=$(STAGING_DIR_HOST) \
26 );
27 endef
28
29 define Build/Compile
30 make -C $(PKG_BUILD_DIR) all
31 endef
32
33 define Build/Install
34 make -C $(PKG_BUILD_DIR) install
35 endef
36
37 define Build/Clean
38 rm -rf $(PKG_BUILD_DIR)
39 endef
40
41 $(eval $(call HostBuild))