summaryrefslogtreecommitdiffstats
path: root/academic/mpb/mpb.SlackBuild
diff options
context:
space:
mode:
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 11cecb63cb..2be79e9208 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}