Commit 6bebd7f2 authored by Thomas Petazzoni's avatar Thomas Petazzoni
Browse files

mpdecimal: new package

parent 513b1b9b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -860,6 +860,7 @@ menu "Other"
	source "package/linux-pam/Config.in"
	source "package/lttng-libust/Config.in"
	source "package/mpc/Config.in"
	source "package/mpdecimal/Config.in"
	source "package/mpfr/Config.in"
	source "package/msgpack/Config.in"
	source "package/mtdev2tuio/Config.in"
+10 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_MPDECIMAL
	bool "mpdecimal"
	help
	  mpdecimal is a package for correctly-rounded arbitrary
	  precision decimal floating point arithmetic. Starting from
	  version 2.4, mpdecimal includes only the libmpdec
	  library. Further mpdecimal development will focus
	  exclusively on libmpdec.

	  http://www.bytereef.org/mpdecimal/
+24 −0
Original line number Diff line number Diff line
################################################################################
#
# mpdecimal
#
################################################################################

MPDECIMAL_SITE = http://www.bytereef.org/software/mpdecimal/releases/
MPDECIMAL_VERSION = 2.4.0
MPDECIMAL_INSTALL_STAGING = YES
MPDECIMAL_LICENSE = BSD-2c
MPDECIMAL_LICENSE_FILES = LICENSE.txt
MPDECIMAL_CONF_OPT = LD="$(TARGET_CC)"

# On i386, by default, mpdecimal tries to uses <fenv.h> which is not
# available in musl/glibc. So in this case, we tell mpdecimal to use
# the generic 32 bits code, which is anyway the one used on ARM,
# PowerPC, etc.
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
ifeq ($(BR2_i386),y)
MPDECIMAL_CONF_ENV += MACHINE=ansi32
endif
endif

$(eval $(autotools-package))