1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# mpdecimal 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunMPDECIMAL_SITE = http://www.bytereef.org/software/mpdecimal/releases 8*4882a593SmuzhiyunMPDECIMAL_VERSION = 2.5.0 9*4882a593SmuzhiyunMPDECIMAL_INSTALL_STAGING = YES 10*4882a593SmuzhiyunMPDECIMAL_LICENSE = BSD-2-Clause 11*4882a593SmuzhiyunMPDECIMAL_LICENSE_FILES = LICENSE.txt 12*4882a593SmuzhiyunMPDECIMAL_CONF_OPTS = LD="$(TARGET_CC)" 13*4882a593SmuzhiyunMPDECIMAL_AUTORECONF = YES 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun# On i386, by default, mpdecimal tries to uses <fenv.h> which is not 16*4882a593Smuzhiyun# available in musl/uclibc. So in this case, we tell mpdecimal to use 17*4882a593Smuzhiyun# the generic 32 bits code, which is anyway the one used on ARM, 18*4882a593Smuzhiyun# PowerPC, etc. 19*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) 20*4882a593Smuzhiyunifeq ($(BR2_i386),y) 21*4882a593SmuzhiyunMPDECIMAL_CONF_ENV += MACHINE=ansi32 22*4882a593Smuzhiyunendif 23*4882a593Smuzhiyunendif 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunifeq ($(BR2_INSTALL_LIBSTDCPP),y) 26*4882a593SmuzhiyunMPDECIMAL_CONF_OPTS += --enable-cxx 27*4882a593Smuzhiyunelse 28*4882a593SmuzhiyunMPDECIMAL_CONF_OPTS += --disable-cxx 29*4882a593Smuzhiyunendif 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun$(eval $(autotools-package)) 32