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