summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2014-11-27 00:52:01 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-11-27 00:52:01 +0700
commit57e0f196c5590c976d202f85880432fd60ae7033 (patch)
tree6771f42ad35771f4ef8a89a6b3dad00c3ab050f1 /academic
parent99cfa5a783ef879d31d4848731870a272ae79154 (diff)
downloadslackbuilds-57e0f196c5590c976d202f85880432fd60ae7033.tar.gz
academic/sundial: Fix library installation.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/sundials/sundials.SlackBuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/academic/sundials/sundials.SlackBuild b/academic/sundials/sundials.SlackBuild
index aa6b0405b5..669d3917db 100644
--- a/academic/sundials/sundials.SlackBuild
+++ b/academic/sundials/sundials.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=sundials
VERSION=${VERSION:-2.5.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -62,6 +62,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+mkdir build
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,21 +70,24 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+cd build
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
+../configure \
+ --prefix=$PKG/usr \
+ --libdir=$PKG/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux \
F77=gfortran \
--disable-mpi \
--with-cflags=-fPIC \
- --enable-shared
+ --enable-shared \
+ --enable-static=no
+
make
-make prefix="$PKG/usr/" install
+make install
+
+cd ..
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