aboutsummaryrefslogtreecommitdiffstats
path: root/cad/spice
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1997-10-22 15:04:55 +0800
committertg <tg@FreeBSD.org>1997-10-22 15:04:55 +0800
commitf607bdc45e1fa0d4995c270d5b3acdb75b5313f7 (patch)
tree62890b91146b1cf5d1637746c37d26fc90d6e489 /cad/spice
parent06a7d18a17c40141dc664c480533a02c134883b5 (diff)
downloadfreebsd-ports-gnome-f607bdc45e1fa0d4995c270d5b3acdb75b5313f7.tar.gz
freebsd-ports-gnome-f607bdc45e1fa0d4995c270d5b3acdb75b5313f7.tar.zst
freebsd-ports-gnome-f607bdc45e1fa0d4995c270d5b3acdb75b5313f7.zip
Port cleanup. Upgrade version number to 3f5.
PR: 4721 Submitted by: Pedro Giffuni <pgiffuni@FPS.biblos.unal.edu.co>
Diffstat (limited to 'cad/spice')
-rw-r--r--cad/spice/Makefile27
-rw-r--r--cad/spice/files/FreeBSD5
-rw-r--r--cad/spice/files/Makefile7
-rw-r--r--cad/spice/files/patch-aa2
-rw-r--r--cad/spice/files/patch-ab1
-rw-r--r--cad/spice/files/patch-ac62
-rw-r--r--cad/spice/pkg-comment2
-rw-r--r--cad/spice/pkg-plist24
8 files changed, 112 insertions, 18 deletions
diff --git a/cad/spice/Makefile b/cad/spice/Makefile
index bb481e2f5546..2622d79dd877 100644
--- a/cad/spice/Makefile
+++ b/cad/spice/Makefile
@@ -1,35 +1,34 @@
# New ports collection makefile for: spice
-# Version required: 3f4 (3f5?)
+# Version required: 3f5
# Date created: 26 Mar 96
# Whom: Julian Jenkins <kaveman@magna.com.au>
#
-# $Id: Makefile,v 1.7 1996/12/24 07:31:49 asami Exp $
+# $Id: Makefile,v 1.8 1997/01/31 08:23:06 tg Exp $
#
-DISTNAME= sp3f4.kit
-PKGNAME= spice-3f4
+DISTNAME= sp3f4.kit
+PKGNAME= spice-3f5
CATEGORIES= cad
MASTER_SITES= ftp://ic.eecs.berkeley.edu/pub/Spice3/
EXTRACT_SUFX= .tar.Z
-#PATCH_SITES= ftp://ic.eecs.berkeley.edu/pub/Spice3/3f4patches
-#PATCHFILES= grid.patch newcoms.patch spsmp.patch
+MAINTAINER= kaveman@magna.com.au
+
# documentation in ftp://ic.eecs.berkeley.edu/pub/Spice3/um.3f3.ps
-MAINTAINER= kaveman@magna.com.au
+# These are included as patch-ab
+#PATCH_SITES= ftp://ilpsoft.eecs.berkeley.edu/pub/SPICE3F5/
+#PATCHFILES= grid.patch newcoms.patch spsmp.patch
NO_WRKSUBDIR= yes
MAN1= sconvert.1 nutmeg.1 spice.1
MAN3= mfb.3
MAN5= mfbcap.5
+.if !defined(NOPORTDOCS)
post-install:
- chmod a+rx ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
- ${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \
- ${PREFIX}/bin/multidec
- strip ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
- ${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \
- ${PREFIX}/bin/multidec
- chmod -R a+rX ${PREFIX}/share/spice
+ ${MKDIR} ${PREFIX}/share/examples/spice
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${PREFIX}/share/examples/spice
+.endif
.include <bsd.port.mk>
diff --git a/cad/spice/files/FreeBSD b/cad/spice/files/FreeBSD
index 87835b625228..59a8f9359bd6 100644
--- a/cad/spice/files/FreeBSD
+++ b/cad/spice/files/FreeBSD
@@ -3,7 +3,8 @@
MAKE = /usr/bin/make
INTERFACE_OPTS = -DWANT_X11
CC = gcc
-CC_OPT = -O2 -pipe -Dbsd
-CC_OPT_SAFE = -O2 -pipe -Dbsd
+CC_OPT = -O2 -pipe
+CC_OPT_SAFE = -O2 -pipe
LDFLAGS = -L /usr/X11R6/lib -lm -ltermcap
ASM_HACK = < /dev/null
+SYS_CFLAGS = -Dbsd
diff --git a/cad/spice/files/Makefile b/cad/spice/files/Makefile
index 0327cb4ac36c..c74c0f3747f8 100644
--- a/cad/spice/files/Makefile
+++ b/cad/spice/files/Makefile
@@ -9,3 +9,10 @@ install:
install -c -m 644 -o bin -g bin man/man1/nutmeg.1 ${PREFIX}/man/man1/nutmeg.1
install -c -m 644 -o bin -g bin man/man1/spice.1 ${PREFIX}/man/man1/spice.1
install -c -m 644 -o bin -g bin man/man3/mfb.3 ${PREFIX}/man/man3/mfb.3
+ chmod a+rx ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
+ ${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \
+ ${PREFIX}/bin/multidec
+ strip ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
+ ${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \
+ ${PREFIX}/bin/multidec
+ chmod -R a+rX ${PREFIX}/share/spice
diff --git a/cad/spice/files/patch-aa b/cad/spice/files/patch-aa
index 9b4c5d314d90..36d04d4a4708 100644
--- a/cad/spice/files/patch-aa
+++ b/cad/spice/files/patch-aa
@@ -74,7 +74,7 @@
# X_DIR indicates the top of the X11 lib/include hierarchy; it is only
# a convenience that is used in the following definitions.
-! X_DIR = /usr/X11R6
+! X_DIR = ${X11BASE}
# INCX lists the X include directories. This may be different between
# MIT X11r5, X11r4, and your vendor's version of X11, though listing
diff --git a/cad/spice/files/patch-ab b/cad/spice/files/patch-ab
index d561a07a85ed..b271cc97905d 100644
--- a/cad/spice/files/patch-ab
+++ b/cad/spice/files/patch-ab
@@ -1,3 +1,4 @@
+NOTE: This are Berkeley patches for 3F4
*** src/lib/fte/grid.c.orig Sun Apr 25 14:53:11 1993
--- src/lib/fte/grid.c Sat Jan 29 10:47:59 1994
***************
diff --git a/cad/spice/files/patch-ac b/cad/spice/files/patch-ac
new file mode 100644
index 000000000000..8ffa725d64cf
--- /dev/null
+++ b/cad/spice/files/patch-ac
@@ -0,0 +1,62 @@
+*** src/bin/sconvert.c.orig Tue Aug 19 17:44:17 1997
+--- src/bin/sconvert.c Tue Aug 19 17:47:11 1997
+***************
+*** 80,98 ****
+
+ case 1: printf("Input file: ");
+ (void) fflush(stdout);
+! (void) gets(buf);
+ sf = copy(buf);
+ printf("Input type: ");
+ (void) fflush(stdout);
+! (void) gets(buf);
+ f = buf[0];
+ printf("Output file: ");
+ (void) fflush(stdout);
+! (void) gets(buf);
+ af = copy(buf);
+ printf("Output type: ");
+ (void) fflush(stdout);
+! (void) gets(buf);
+ t = buf[0];
+ break;
+ default:
+--- 80,98 ----
+
+ case 1: printf("Input file: ");
+ (void) fflush(stdout);
+! (void) fgets(buf,256,stdin);
+ sf = copy(buf);
+ printf("Input type: ");
+ (void) fflush(stdout);
+! (void) fgets(buf,256,stdin);
+ f = buf[0];
+ printf("Output file: ");
+ (void) fflush(stdout);
+! (void) fgets(buf,256,stdin);
+ af = copy(buf);
+ printf("Output type: ");
+ (void) fflush(stdout);
+! (void) fgets(buf,256,stdin);
+ t = buf[0];
+ break;
+ default:
+*** src/lib/fte/inp.c.orig Tue Aug 19 17:38:25 1997
+--- src/lib/fte/inp.c Tue Aug 19 17:33:01 1997
+***************
+*** 666,672 ****
+
+ fprintf(cp_out, "run circuit? ");
+ fflush(cp_out);
+! (void) gets(buf);
+ if (buf[0] != 'n') {
+ fprintf(cp_out, "running circuit\n");
+ com_run(NULL);
+--- 666,672 ----
+
+ fprintf(cp_out, "run circuit? ");
+ fflush(cp_out);
+! (void) fgets(buf,256,stdin);
+ if (buf[0] != 'n') {
+ fprintf(cp_out, "running circuit\n");
+ com_run(NULL);
diff --git a/cad/spice/pkg-comment b/cad/spice/pkg-comment
index 222f634fe162..0db132c05913 100644
--- a/cad/spice/pkg-comment
+++ b/cad/spice/pkg-comment
@@ -1 +1 @@
-A general-purpose circuit simulator.
+Simulation Program for Integrated Circuit Electronics
diff --git a/cad/spice/pkg-plist b/cad/spice/pkg-plist
index 849ae3f56720..bc4d56172655 100644
--- a/cad/spice/pkg-plist
+++ b/cad/spice/pkg-plist
@@ -4,6 +4,26 @@ bin/sconvert
bin/help
bin/proc2mod
bin/multidec
+share/examples/spice/bjtnoise.cir
+share/examples/spice/bsim1tst.cir
+share/examples/spice/bsim2tst.cir
+share/examples/spice/diffpair.cir
+share/examples/spice/diodisto.cir
+share/examples/spice/ltra_1.cir
+share/examples/spice/ltra_2.cir
+share/examples/spice/ltra_3.cir
+share/examples/spice/mixdisto.cir
+share/examples/spice/mos6inv.cir
+share/examples/spice/mosamp2.cir
+share/examples/spice/mosmem.cir
+share/examples/spice/pz2.cir
+share/examples/spice/pzt.cir
+share/examples/spice/rc.cir
+share/examples/spice/rca3040.cir
+share/examples/spice/resnoise.cir
+share/examples/spice/rtlinv.cir
+share/examples/spice/schmitt.cir
+share/examples/spice/simplepz.cir
share/spice/helpdir/spice.txt
share/spice/helpdir/spice.idx
share/spice/scripts/setplot
@@ -15,3 +35,7 @@ man/man1/sconvert.1.gz
man/man1/nutmeg.1.gz
man/man1/spice.1.gz
man/man3/mfb.3.gz
+@dirrm share/examples/spice
+@dirrm share/spice/helpdir
+@dirrm share/spice/scripts
+@dirrm share/spice