build system refactoring in preparation for allowing packages to do host-build steps
[openwrt/staging/chunkeey.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 Host/Configure
19 (cd $(HOST_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 Host/Compile
30 make -C $(HOST_BUILD_DIR) all
31 endef
32
33 define Host/Install
34 make -C $(HOST_BUILD_DIR) install
35 endef
36
37 define Host/Clean
38 rm -rf $(HOST_BUILD_DIR)
39 endef
40
41 $(eval $(call HostBuild))