openmpi: new package
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Fri, 20 May 2016 11:01:00 +0000 (12:01 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 9 Jun 2016 20:28:11 +0000 (22:28 +0200)
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
[Thomas:
 - disable the tracing mechanism using --disable-vt, since it was
   causing the build failure. Avoids the need for a patch.
 - remove the option to pass arbitrary config options.
 - specify the license as being BSD-3c instead of just BSD.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/openmpi/Config.in [new file with mode: 0644]
package/openmpi/openmpi.hash [new file with mode: 0644]
package/openmpi/openmpi.mk [new file with mode: 0644]

index bc114aa07a5980fa7e4bebc00bf117ad6ff02d78..f9afbc0c34297ffe5245ffa1837b3d558ecef6cc 100644 (file)
@@ -1194,6 +1194,7 @@ menu "Networking"
        source "package/nss-pam-ldapd/Config.in"
        source "package/omniorb/Config.in"
        source "package/openldap/Config.in"
+       source "package/openmpi/Config.in"
        source "package/openpgm/Config.in"
        source "package/openzwave/Config.in"
        source "package/ortp/Config.in"
diff --git a/package/openmpi/Config.in b/package/openmpi/Config.in
new file mode 100644 (file)
index 0000000..9638040
--- /dev/null
@@ -0,0 +1,16 @@
+comment "openmpi needs a toolchain w/ dynamic library, NPTL, wchar, C++"
+       depends on BR2_USE_MMU
+       depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
+               || !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
+
+config BR2_PACKAGE_OPENMPI
+       bool "openmpi"
+       depends on BR2_USE_MMU # fork()
+       depends on BR2_USE_WCHAR
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+       depends on BR2_INSTALL_LIBSTDCPP
+       depends on !BR2_STATIC_LIBS # dlfcn.h
+       help
+         A High Performance Message Passing Library.
+
+         https://www.open-mpi.org/
diff --git a/package/openmpi/openmpi.hash b/package/openmpi/openmpi.hash
new file mode 100644 (file)
index 0000000..92152a2
--- /dev/null
@@ -0,0 +1,3 @@
+# From: https://www.open-mpi.org/software/ompi/v1.10/
+md5 b2f43d9635d2d52826e5ef9feb97fd4c  openmpi-1.10.2.tar.bz2
+sha1 03934fc0a2dd0d0d2d0459d714a976eabca938fb  openmpi-1.10.2.tar.bz2
diff --git a/package/openmpi/openmpi.mk b/package/openmpi/openmpi.mk
new file mode 100644 (file)
index 0000000..8871eaf
--- /dev/null
@@ -0,0 +1,20 @@
+################################################################################
+#
+# openmpi
+#
+################################################################################
+
+OPENMPI_VERSION_MAJOR = 1.10
+OPENMPI_VERSION = $(OPENMPI_VERSION_MAJOR).2
+OPENMPI_SITE = https://www.open-mpi.org/software/ompi/v$(OPENMPI_VERSION_MAJOR)/downloads
+OPENMPI_SOURCE = openmpi-$(OPENMPI_VERSION).tar.bz2
+OPENMPI_LICENSE = BSD-3c
+OPENMPI_LICENSE_FILES = LICENSE
+OPENMPI_INSTALL_STAGING = YES
+OPENMPI_CONF_OPTS = --disable-vt
+
+# Disable fortran by default until we add BR2_TOOLCHAIN_HAS_FORTRAN
+# hidden symbol to our toolchain infrastructure
+OPENMPI_CONF_OPTS += --enable-mpi-fortran=no
+
+$(eval $(autotools-package))