SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "openmpi"

# SliTaz package receipt.

PACKAGE="openmpi"
VERSION="4.1.3"
CATEGORY="development"
SHORT_DESC="High performance message passing library (MPI)."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="BSD"
WEB_SITE="https://www.open-mpi.org/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="${WEB_SITE}software/ompi/v${VERSION%.*}/downloads/$TARBALL"

DEPENDS="gcc gfortran libtool openssh valgrind"
BUILD_DEPENDS="$DEPENDS bash file valgrind-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/Open MPI v[0-9\.]* released/!d;s|.*Open MPI v||;s| released.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # bash is needed, because var+=val is not known to sh
    export    SHELL=/bin/bash
    export    CONFIG_SHELL=/bin/bash

    # 4.1.3 unrecognized options:
    # --enable-mpi-f90
    # --with-threads
    # --enable-mpi-threads
    # --enable-smp-locks

    ./configure                    \
        --sysconfdir=/etc/${PACKAGE}        \
        --libdir=/usr/lib/${pkgname}        \
        --enable-mpi-fortran            \
        --with-valgrind                \
        --enable-pretty-print-stacktrace    \
        --without-slurm                \
        --with-libltdl=/usr            \
        FC=/usr/bin/gfortran            \
        LDFLAGS='-Wl,-z,noexecstack' &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/$PACKAGE

    cp -a $install/etc            $fs
    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/lib/*.so*        $fs/usr/lib
    cp -a $install/usr/lib/$PACKAGE/*.so*    $fs/usr/lib/$PACKAGE
    cp -a $install/usr/lib/mpi.mod        $fs/usr/lib
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)