mpdecimal.mk 965 B

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