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