openmpi.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. else ifeq ($(BR2_mips64)$(BR2_mips64el),y)
  21. OPENMPI_FORTRAN_CONF_CACHE = package/openmpi/openmpi-mips64-fortran.cache
  22. endif
  23. endif
  24. ifneq ($(OPENMPI_FORTRAN_CONF_CACHE),)
  25. define OPENMPI_COPY_FORTRAN_CACHE
  26. cp $(OPENMPI_FORTRAN_CONF_CACHE) $(@D)/openmpi-config.cache
  27. endef
  28. OPENMPI_POST_PATCH_HOOKS += OPENMPI_COPY_FORTRAN_CACHE
  29. OPENMPI_CONF_OPTS += \
  30. --enable-mpi-fortran=yes \
  31. --cache-file=$(@D)/openmpi-config.cache
  32. else
  33. OPENMPI_CONF_OPTS += --enable-mpi-fortran=no
  34. endif
  35. $(eval $(autotools-package))