summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorblizzack <slackbuilds@blizzack.com>2018-01-26 00:55:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-27 07:43:49 +0700
commit42d7e4dc989835a436948739f73c8ebb971d1eab (patch)
tree22dd754e5be02a8204c2264afcd0bfc58079b780 /libraries
parentab5493e4a2857f3945fbe874a6265ede97ea4ff6 (diff)
downloadslackbuilds-42d7e4dc989835a436948739f73c8ebb971d1eab.tar.gz
libraries/med: Added (Data Modelization and Exchanges).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/med/README5
-rw-r--r--libraries/med/med.SlackBuild108
-rw-r--r--libraries/med/med.info10
-rw-r--r--libraries/med/slack-desc19
4 files changed, 142 insertions, 0 deletions
diff --git a/libraries/med/README b/libraries/med/README
new file mode 100644
index 0000000000..b65dadb5ca
--- /dev/null
+++ b/libraries/med/README
@@ -0,0 +1,5 @@
+MED (Modelisation et Echanges de Donnees) is the Data Exchange Module
+used by Code_Aster and based on the HDF library.
+
+MED/HDF can read and save data in a format which is portable between
+machines of different architectures.
diff --git a/libraries/med/med.SlackBuild b/libraries/med/med.SlackBuild
new file mode 100644
index 0000000000..9256b4e3b0
--- /dev/null
+++ b/libraries/med/med.SlackBuild
@@ -0,0 +1,108 @@
+#!/bin/sh
+
+# Slackware build script for med
+
+# Copyright 2018 blizzack <slackbuilds@blizzack.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=med
+VERSION=${VERSION:-3.2.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+SRCVERSION=$(echo $VERSION'_SRC')
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$SRCVERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$SRCVERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-fortran \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+# fix directory paths in Makefiles
+# from /usr//lib to /usr/lib64 for 64-bit
+# from /usr// to /usr/
+find -name Makefile -exec sed -i "s/\/usr\/\/lib/\/usr\/lib$LIBDIRSUFFIX/g" {} \;
+find -name Makefile -exec sed -i "s/\/usr\/\//\/usr\//g" {} \;
+
+make
+make install DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Remove unnecessary stuff
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.settings
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/med/med.info b/libraries/med/med.info
new file mode 100644
index 0000000000..b35c93daa5
--- /dev/null
+++ b/libraries/med/med.info
@@ -0,0 +1,10 @@
+PRGNAM="med"
+VERSION="3.2.1"
+HOMEPAGE="https://www.code-aster.org"
+DOWNLOAD="http://files.salome-platform.org/Salome/other/med-3.2.1.tar.gz"
+MD5SUM="4965899bb578229ba27c9bc5293c651e"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="hdf5"
+MAINTAINER="blizzack"
+EMAIL="slackbuilds@blizzack.com" \ No newline at end of file
diff --git a/libraries/med/slack-desc b/libraries/med/slack-desc
new file mode 100644
index 0000000000..69731858ef
--- /dev/null
+++ b/libraries/med/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+med: med (Data Modelization and Exchanges)
+med:
+med:
+med: MED is the Data Exchange Module used by Code_Aster
+med: and based on the HDF (hdf5) library.
+med:
+med: Homepage: https://www.code-aster.org/
+med:
+med:
+med:
+med: