summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-05-11 22:53:05 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 22:53:05 +0200
commit11c6051505ab62e1ed418e8c22e81191bbb2d423 (patch)
treebb7abb742a42ec34d059128954925562b2871c8c
parenteb725f41f121ca176627b932d821b6082913a337 (diff)
downloadslackbuilds-11c6051505ab62e1ed418e8c22e81191bbb2d423.tar.gz
academic/ng-spice: Added to 12.1 repository
-rw-r--r--academic/ng-spice/README4
-rw-r--r--academic/ng-spice/ng-spice.SlackBuild69
-rw-r--r--academic/ng-spice/ng-spice.info8
-rw-r--r--academic/ng-spice/slack-desc11
4 files changed, 92 insertions, 0 deletions
diff --git a/academic/ng-spice/README b/academic/ng-spice/README
new file mode 100644
index 0000000000..df590c3043
--- /dev/null
+++ b/academic/ng-spice/README
@@ -0,0 +1,4 @@
+Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on
+three open source software packages: Spice3f5, Cider1b1 and Xspice. Ngspice
+is part of gEDA project, a full GPL'd suite of Electronic Design Automation
+tools.
diff --git a/academic/ng-spice/ng-spice.SlackBuild b/academic/ng-spice/ng-spice.SlackBuild
new file mode 100644
index 0000000000..c01d8aec0a
--- /dev/null
+++ b/academic/ng-spice/ng-spice.SlackBuild
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+# Slackware build script for ng-spice
+# Written by Kyle Guinn <elyk03@gmail.com>
+
+PRGNAM="ng-spice"
+VERSION="rework-17"
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM-$VERSION
+OUTPUT=${OUTPUT:-/tmp}
+PKGVER=$(echo $VERSION | sed s/-/_/)
+
+DOCS="ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ INSTALL NEWS README doc/ngspice.pdf"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-st .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-shared \
+ --disable-static \
+ --with-readline \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l); do \
+ ln -s $(readlink $i).gz $i.gz; rm $i; \
+ done
+)
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.tgz
diff --git a/academic/ng-spice/ng-spice.info b/academic/ng-spice/ng-spice.info
new file mode 100644
index 0000000000..b521e8182b
--- /dev/null
+++ b/academic/ng-spice/ng-spice.info
@@ -0,0 +1,8 @@
+PRGNAM="ng-spice"
+VERSION="rework-17"
+HOMEPAGE="http://ngspice.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/ngspice/ng-spice-rework-17.tar.gz"
+MD5SUM="abe283dea98b913a2122f085076865b1"
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="Erik Hanson"
diff --git a/academic/ng-spice/slack-desc b/academic/ng-spice/slack-desc
new file mode 100644
index 0000000000..4a1e04c743
--- /dev/null
+++ b/academic/ng-spice/slack-desc
@@ -0,0 +1,11 @@
+ng-spice: Ngspice (circuit simulator)
+ng-spice:
+ng-spice: Ngspice is a mixed-level/mixed-signal circuit simulator. Its
+ng-spice: code is based on three open source software packages: Spice3f5,
+ng-spice: Cider1b1 and Xspice. Ngspice is part of gEDA project, a full
+ng-spice: GPL'd suite of Electronic Design Automation tools.
+ng-spice:
+ng-spice:
+ng-spice:
+ng-spice:
+ng-spice: