aboutsummaryrefslogtreecommitdiff
path: root/academic/mpb/mpb.SlackBuild
diff options
context:
space:
mode:
authorPaulKinsler <dr.paul@kinsler.org>2020-05-11 04:10:55 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-16 08:44:08 +0700
commit874ea1700355410160c0b1f4342be73a0e91e583 (patch)
tree5b09c74d32a636b77e74291ca44166109d65dd87 /academic/mpb/mpb.SlackBuild
parent583705b55836576a730185489a1ee671c0630a3c (diff)
academic/mpb: Updated for version 1.10.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/mpb/mpb.SlackBuild')
-rw-r--r--academic/mpb/mpb.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/academic/mpb/mpb.SlackBuild b/academic/mpb/mpb.SlackBuild
index 11cecb63cbfb..2be79e92082a 100644
--- a/academic/mpb/mpb.SlackBuild
+++ b/academic/mpb/mpb.SlackBuild
@@ -75,13 +75,14 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# if there is no configure script, try to build one!
-if [ ! -f ./configure ] ; then
+if [ ! -f ./configure ] ; then
./autogen.sh
fi
+
+
LOCALCONFIGS=
XDBFILE=/etc/sbo_pkg_options.conf
-
if [ -f ${XDBFILE} ] ; then
LOCALCONFIGS=${LOCALCONFIGS}" "$(grep "^${PRGNAM}:" ${XDBFILE} | grep -v '^#' | awk -F: '{print$2}')
echo Build options selected by file: LOCALCONFIGS=${LOCALCONFIGS}
@@ -92,11 +93,11 @@ if [ -n "${SBOPTIONS_MPB}" ] ; then
fi
-# check for the Atlas replacement for blas; if the libraries are found,
+# check for the Atlas replacement for blas; if the libraries are found,
# add the configure option accordingly
-if [ -f /usr/lib${LIBDIRSUFFIX}/libatlas.a ] ; then
- if [ -f /usr/lib{$LIBDIRSUFFIX}/libatlas.so ] ; then
+if [ -f /usr/lib/libatlas.a ] ; then
+ if [ -f /usr/lib/libatlas.so ] ; then
echo "NOTICE: libatlas was found, configure --with-blas=atlas"
LOCALCONFIGS=${LOCALCONFIGS}" --with-blas=atlas"
fi
@@ -131,7 +132,7 @@ CPPFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux \
- $LOCALCONFIGS
+ $LOCALCONFIGS
make
make install DESTDIR=$PKG
@@ -150,5 +151,10 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+
+if [ -f $CWD/doinst.sh ] ; then
+ cat $CWD/doinst.sh > $PKG/install/doinst.sh
+fi
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}