diff options
author | R. S. Ananda Murthy <rsamurti@gmail.com> | 2019-02-08 20:58:29 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-02-08 20:58:29 +0700 |
commit | c727d5885850011669035bdb3a51dc9383c39258 (patch) | |
tree | e24d8293640fb758a624645d33ed3c995c22522f | |
parent | f294b9c2f25aaca345dce70e2ab0850c3a8971a8 (diff) |
academic/ngspice: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | academic/ngspice/ngspice.SlackBuild | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/academic/ngspice/ngspice.SlackBuild b/academic/ngspice/ngspice.SlackBuild index eac231a444983..770b6960b49b2 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 |