wok annotate openmpi/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | ad8b9ff412d2 |
children |
rev | line source |
---|---|
slaxemulator@8149 | 1 # SliTaz package receipt. |
slaxemulator@8149 | 2 |
slaxemulator@8149 | 3 PACKAGE="openmpi" |
Hans-G?nter@25020 | 4 VERSION="4.1.3" |
slaxemulator@8149 | 5 CATEGORY="development" |
Hans-G?nter@21634 | 6 SHORT_DESC="High performance message passing library (MPI)." |
slaxemulator@8149 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15601 | 8 LICENSE="BSD" |
Hans-G?nter@21634 | 9 WEB_SITE="https://www.open-mpi.org/" |
Hans-G?nter@21634 | 10 |
slaxemulator@8149 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@21634 | 12 WGET_URL="${WEB_SITE}software/ompi/v${VERSION%.*}/downloads/$TARBALL" |
slaxemulator@8149 | 13 |
pascal@15601 | 14 DEPENDS="gcc gfortran libtool openssh valgrind" |
Hans-G?nter@25020 | 15 BUILD_DEPENDS="$DEPENDS bash file valgrind-dev" |
pascal@15601 | 16 |
pascal@24433 | 17 # What is the latest version available today? |
pascal@24433 | 18 current_version() |
pascal@24433 | 19 { |
pascal@24433 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24433 | 21 sed '/Open MPI v[0-9\.]* released/!d;s|.*Open MPI v||;s| released.*||;q' |
pascal@24433 | 22 } |
pascal@24433 | 23 |
slaxemulator@8149 | 24 # Rules to configure and make the package. |
slaxemulator@8149 | 25 compile_rules() |
slaxemulator@8149 | 26 { |
Hans-G?nter@25020 | 27 # bash is needed, because var+=val is not known to sh |
Hans-G?nter@25020 | 28 export SHELL=/bin/bash |
Hans-G?nter@25020 | 29 export CONFIG_SHELL=/bin/bash |
Hans-G?nter@25020 | 30 |
Hans-G?nter@25020 | 31 # 4.1.3 unrecognized options: |
Hans-G?nter@25020 | 32 # --enable-mpi-f90 |
Hans-G?nter@25020 | 33 # --with-threads |
Hans-G?nter@25020 | 34 # --enable-mpi-threads |
Hans-G?nter@25020 | 35 # --enable-smp-locks |
Hans-G?nter@25020 | 36 |
Hans-G?nter@21634 | 37 ./configure \ |
Hans-G?nter@21634 | 38 --sysconfdir=/etc/${PACKAGE} \ |
Hans-G?nter@21634 | 39 --libdir=/usr/lib/${pkgname} \ |
Hans-G?nter@25020 | 40 --enable-mpi-fortran \ |
Hans-G?nter@21634 | 41 --with-valgrind \ |
Hans-G?nter@21634 | 42 --enable-pretty-print-stacktrace \ |
Hans-G?nter@21634 | 43 --without-slurm \ |
Hans-G?nter@21634 | 44 --with-libltdl=/usr \ |
Hans-G?nter@21634 | 45 FC=/usr/bin/gfortran \ |
Hans-G?nter@21634 | 46 LDFLAGS='-Wl,-z,noexecstack' && |
Hans-G?nter@21634 | 47 make && |
Hans-G?nter@21634 | 48 make install |
slaxemulator@8149 | 49 } |
slaxemulator@8149 | 50 |
slaxemulator@8149 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8149 | 52 genpkg_rules() |
slaxemulator@8149 | 53 { |
slaxemulator@9090 | 54 mkdir -p $fs/usr/lib/$PACKAGE |
Hans-G?nter@21634 | 55 |
Hans-G?nter@21634 | 56 cp -a $install/etc $fs |
Hans-G?nter@21634 | 57 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21634 | 58 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21634 | 59 cp -a $install/usr/lib/$PACKAGE/*.so* $fs/usr/lib/$PACKAGE |
Hans-G?nter@21634 | 60 cp -a $install/usr/lib/mpi.mod $fs/usr/lib |
slaxemulator@8149 | 61 } |