mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
While 2.5.1 -> 4.0.0 may seems like a big jump with lots of versions skipped, in fact 4.0.0 is the immediate next release after 2.5.1. Changelog at: https://www.bytereef.org/mpdecimal/changelog.html Build tested successfully with test-pkg, including with the one reverse dependency of mpdecimal: the python3 decimal module: https://gitlab.com/tpetazzoni/buildroot/-/pipelines/1604635008. The license file was renamed from LICENSE.txt to COPYRIGHT.txt. The license is still BSD-2-Clause, but the formatting changed: the license text is no longer inside a C-style comment, but just plain text, and the copyright years were updated. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
34 lines
967 B
Makefile
34 lines
967 B
Makefile
################################################################################
|
|
#
|
|
# mpdecimal
|
|
#
|
|
################################################################################
|
|
|
|
MPDECIMAL_SITE = http://www.bytereef.org/software/mpdecimal/releases
|
|
MPDECIMAL_VERSION = 4.0.0
|
|
MPDECIMAL_INSTALL_STAGING = YES
|
|
MPDECIMAL_LICENSE = BSD-2-Clause
|
|
MPDECIMAL_LICENSE_FILES = COPYRIGHT.txt
|
|
MPDECIMAL_CONF_OPTS = LD="$(TARGET_CC)"
|
|
|
|
# threads are only needed for tests
|
|
MPDECIMAL_MAKE_OPTS = MPD_PTHREAD=
|
|
|
|
# On i386, by default, mpdecimal tries to uses <fenv.h> which is not
|
|
# available in musl/uclibc. 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
|
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
MPDECIMAL_CONF_OPTS += --enable-cxx
|
|
else
|
|
MPDECIMAL_CONF_OPTS += --disable-cxx
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|