2009-01-21 13:58:17 +02:00
|
|
|
#
|
2010-04-24 23:11:08 +03:00
|
|
|
# Copyright (C) 2009 -2010 OpenWrt.org
|
2009-01-21 13:58:17 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gmp
|
2010-04-24 23:11:08 +03:00
|
|
|
PKG_VERSION:=4.3.2
|
2009-01-21 13:58:17 +02:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=@GNU/gmp/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-04-24 23:11:08 +03:00
|
|
|
PKG_MD5SUM:=dd60683d7057917e34630b4a787932e8
|
2009-01-21 13:58:17 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2009-09-25 12:28:26 +03:00
|
|
|
unexport CFLAGS
|
|
|
|
|
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
|
|
GNU_HOST_NAME:=
|
|
|
|
HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
|
|
|
|
endif
|
|
|
|
|
2009-04-06 12:56:25 +03:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--enable-static \
|
|
|
|
--disable-shared \
|
|
|
|
--enable-cxx \
|
|
|
|
--enable-mpbsd
|
2009-01-21 13:58:17 +02:00
|
|
|
|
2009-09-25 12:28:26 +03:00
|
|
|
define Host/Configure
|
|
|
|
(cd $(HOST_BUILD_DIR)/$(3); \
|
|
|
|
$(HOST_CONFIGURE_CMD) \
|
|
|
|
$(HOST_CONFIGURE_VARS) \
|
|
|
|
$(HOST_CONFIGURE_ARGS); \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2009-01-21 13:58:17 +02:00
|
|
|
$(eval $(call HostBuild))
|