summaryrefslogtreecommitdiff
path: root/academic/ngspice/ngspice.SlackBuild
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2019-02-08 20:58:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-02-08 20:58:29 +0700
commitc727d5885850011669035bdb3a51dc9383c39258 (patch)
treee24d8293640fb758a624645d33ed3c995c22522f /academic/ngspice/ngspice.SlackBuild
parentf294b9c2f25aaca345dce70e2ab0850c3a8971a8 (diff)
downloadslackbuilds-c727d5885850011669035bdb3a51dc9383c39258.tar.gz
academic/ngspice: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/ngspice/ngspice.SlackBuild')
-rw-r--r--academic/ngspice/ngspice.SlackBuild20
1 files changed, 17 insertions, 3 deletions
diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild
index eac231a444..770b6960b4 100644
--- a/academic/ngspice/ngspice.SlackBuild
+++ b/academic/ngspice/ngspice.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware build script for ngspice
+# Slackware build script for ngspice and libngspice
# Written by B. Jogai <jogaib {at} comcast [dot] net>
# Now maintained by R. S. Ananda Murthy (rsamurti@gmail.com)
@@ -8,7 +8,7 @@
PRGNAM=ngspice
VERSION=${VERSION:-30}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -58,6 +58,16 @@ if [ "$ARCH" = "x86_64" ]; then
sed -i "s%/lib/%/lib${LIBDIRSUFFIX}/%g" src/spinit.in
fi
+./configure --prefix=/usr \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --with-readline=yes \
+ --enable-xspice \
+ --enable-cider \
+ --enable-openmp \
+ --with-ngshared
+make
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -71,8 +81,8 @@ CFLAGS="$SLKCFLAGS" \
--enable-cider \
--enable-shared \
--disable-static \
- --with-ngshared \
--enable-ndev \
+ --enable-openmp \
--build=$ARCH-slackware-linux
make
make DESTDIR=$PKG install
@@ -89,6 +99,10 @@ cp -a ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ \
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/$PRGNAM-$VERSION-manual.pdf > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-$VERSION-manual.pdf
+install -Dm755 src/.libs/libngspice.so.0.0.0 "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0.0.0"
+ln -s "libngspice.so.0.0.0" "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so.0"
+ln -s "libngspice.so.0.0.0" "$PKG/usr/lib${LIBDIRSUFFIX}/libngspice.so"
+
mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps
install -m644 $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png