openmpi.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ################################################################################
  2. #
  3. # openmpi
  4. #
  5. ################################################################################
  6. OPENMPI_VERSION_MAJOR = 1.10
  7. OPENMPI_VERSION = $(OPENMPI_VERSION_MAJOR).2
  8. OPENMPI_SITE = https://www.open-mpi.org/software/ompi/v$(OPENMPI_VERSION_MAJOR)/downloads
  9. OPENMPI_SOURCE = openmpi-$(OPENMPI_VERSION).tar.bz2
  10. OPENMPI_LICENSE = BSD-3c
  11. OPENMPI_LICENSE_FILES = LICENSE
  12. OPENMPI_INSTALL_STAGING = YES
  13. OPENMPI_CONF_OPTS = --disable-vt
  14. # Enabling Fortran support requires pre-seeding the configure script
  15. # with various values that cannot be guessed, so we provide cache
  16. # files for various architectures.
  17. ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
  18. ifeq ($(BR2_mips)$(BR2_mipsel),y)
  19. OPENMPI_FORTRAN_CONF_CACHE = package/openmpi/openmpi-mips32-fortran.cache
  20. endif
  21. endif
  22. ifneq ($(OPENMPI_FORTRAN_CONF_CACHE),)
  23. define OPENMPI_COPY_FORTRAN_CACHE
  24. cp $(OPENMPI_FORTRAN_CONF_CACHE) $(@D)/openmpi-config.cache
  25. endef
  26. OPENMPI_POST_PATCH_HOOKS += OPENMPI_COPY_FORTRAN_CACHE
  27. OPENMPI_CONF_OPTS += \
  28. --enable-mpi-fortran=yes \
  29. --cache-file=$(@D)/openmpi-config.cache
  30. else
  31. OPENMPI_CONF_OPTS += --enable-mpi-fortran=no
  32. endif
  33. $(eval $(autotools-package))