summaryrefslogtreecommitdiff
path: root/system/openmpi/openmpi.SlackBuild
diff options
context:
space:
mode:
authorEmmanuel N. Millán <emmanueln@gmail.com>2016-10-13 14:56:28 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-13 14:56:28 +0700
commitf9046698c4d5934791f1462aa8ef5e28c3f53e0d (patch)
treea802c1e8c959e6f816a1a9e287a5ff9c81e7b87f /system/openmpi/openmpi.SlackBuild
parentf43a8618e3c23198d2e7f4a50e1af3157d716a3d (diff)
downloadslackbuilds-f9046698c4d5934791f1462aa8ef5e28c3f53e0d.tar.gz
system/openmpi: Updated for version 1.10.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/openmpi/openmpi.SlackBuild')
-rw-r--r--system/openmpi/openmpi.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/system/openmpi/openmpi.SlackBuild b/system/openmpi/openmpi.SlackBuild
index 22c6ed87a3..fd1c8ed7fc 100644
--- a/system/openmpi/openmpi.SlackBuild
+++ b/system/openmpi/openmpi.SlackBuild
@@ -26,7 +26,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openmpi
-VERSION=${VERSION:-1.8.8}
+VERSION=${VERSION:-1.10.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,16 +35,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -87,12 +88,12 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+find $PKG/usr/lib${LIBDIRSUFFIX} -name '*.la' -delete
+
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-mv $PKG/etc/openmpi-default-hostfile $PKG/etc/openmpi-default-hostfile.new
-mv $PKG/etc/openmpi-totalview.tcl $PKG/etc/openmpi-totalview.tcl.new
-mv $PKG/etc/openmpi-mca-params.conf $PKG/etc/openmpi-mca-params.conf.new
+find $PKG/etc -type f -exec mv {} {}.new \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS INSTALL LICENSE NEWS README VERSION $PKG/usr/doc/$PRGNAM-$VERSION