Files
buildroot/package/mpdecimal/mpdecimal.mk
Thomas Petazzoni 5ebaab7ecc package/mpdecimal: bump version to 4.0.1
Changelog (https://www.bytereef.org/mpdecimal/changelog.html) 4.0.0 to
4.0.1:

    features
        Add Cygwin support.
        Update config.guess and config.sub to the latest versions.

    build fixes
        Fix pkg-config files for custom paths.
        Set LD/LDXX unconditionally to CC/CXX, since LDFLAGS/LDXXFLAGS from ./configure rely on it.
        macOS: use libdir instead of RPATH for the install_name.

This commit also updates the COPYRIGHT.txt license file hash, after a
year update.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[Julien: fix COPYRIGHT.txt license file hash]
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-08-09 00:45:58 +02:00

34 lines
967 B
Makefile

################################################################################
#
# mpdecimal
#
################################################################################
MPDECIMAL_SITE = http://www.bytereef.org/software/mpdecimal/releases
MPDECIMAL_VERSION = 4.0.1
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))