summaryrefslogtreecommitdiff
path: root/academic/ngspice/ngspice.SlackBuild
diff options
context:
space:
mode:
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