Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jun 1998 23:15:46 -0700 (PDT)
From:      giffunip@asme.org
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   ports/6883: Small fixes to the SPICE port
Message-ID:  <199806070615.XAA12512@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         6883
>Category:       ports
>Synopsis:       Small fixes to the SPICE port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun  6 23:20:00 PDT 1998
>Last-Modified:
>Originator:     Pedro Giffuni S.
>Organization:
U. Nacional de Colombia
>Release:        2.2.6-R
>Environment:
>Description:
I found some things that could be improved and fixed a mismatch in the 
main Makefile.
>How-To-Repeat:

>Fix:
diff -rNu /cdrom/ports/cad/spice/Makefile spice/Makefile
--- /cdrom/ports/cad/spice/Makefile	Wed Oct 22 02:04:48 1997
+++ spice/Makefile	Sun Jun  7 01:03:14 1998
@@ -25,10 +25,13 @@
 MAN3=		mfb.3
 MAN5=		mfbcap.5
 
-.if !defined(NOPORTDOCS)
 post-install:
-	${MKDIR} ${PREFIX}/share/examples/spice
-	${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${PREFIX}/share/examples/spice
+	(strip ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg	\
+	${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \
+	${PREFIX}/bin/multidec)
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${PREFIX}/share/examples/spice3
+	${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${PREFIX}/share/examples/spice3
 .endif
 
 .include <bsd.port.mk>
diff -rNu /cdrom/ports/cad/spice/files/FreeBSD spice/files/FreeBSD
--- /cdrom/ports/cad/spice/files/FreeBSD	Wed Oct 22 02:04:49 1997
+++ spice/files/FreeBSD	Sat Jun  6 23:56:16 1998
@@ -4,7 +4,7 @@
 INTERFACE_OPTS  = -DWANT_X11
 CC              = gcc
 CC_OPT          = -O2 -pipe
-CC_OPT_SAFE     = -O2 -pipe
-LDFLAGS		= -L /usr/X11R6/lib -lm -ltermcap
+CC_OPT_SAFE     = -O2 -fno-strength-reduce -pipe
+LDFLAGS		= -L$(X11BASE)/lib -lm -ltermcap
 ASM_HACK	= < /dev/null
 SYS_CFLAGS	= -Dbsd
diff -rNu /cdrom/ports/cad/spice/files/Makefile spice/files/Makefile
--- /cdrom/ports/cad/spice/files/Makefile	Wed Oct 22 02:04:50 1997
+++ spice/files/Makefile	Sun Jun  7 00:44:34 1998
@@ -4,15 +4,12 @@
 
 install:
 	util/build FreeBSD install 
+	chmod a+rx ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
+	  ${PREFIX}/bin/sconvert ${PREFIX}/bin/help	\
+	  ${PREFIX}/bin/proc2mod ${PREFIX}/bin/multidec
+	chmod -R a+rX ${PREFIX}/share/spice3
 	install -c -m 644 -o bin -g bin man/man5/mfbcap.5 ${PREFIX}/man/man5/mfbcap.5
 	install -c -m 644 -o bin -g bin man/man1/sconvert.1 ${PREFIX}/man/man1/sconvert.1
 	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 -rNu /cdrom/ports/cad/spice/patches/patch-aa spice/patches/patch-aa
--- /cdrom/ports/cad/spice/patches/patch-aa	Wed Oct 22 02:04:52 1997
+++ spice/patches/patch-aa	Sat Jun  6 23:44:19 1998
@@ -1,5 +1,5 @@
-*** conf/defaults.orig	Thu Jul 29 23:33:56 1993
---- conf/defaults	Sat Dec 21 14:15:35 1996
+*** conf/defaults.orig	Thu Jul 29 16:33:56 1993
+--- conf/defaults	Sat Jun  6 23:40:14 1998
 ***************
 *** 65,71 ****
   #	the following definition:
@@ -36,16 +36,16 @@
   #	file listed on the "build" command line.
   
 ! SPICE_DIR	= ${PREFIX}
-! SPICE_LIB_DIR	= $(SPICE_DIR)/share/spice
+! SPICE_LIB_DIR	= $(SPICE_DIR)/share/spice3
   SPICE_EXEC_DIR	= $(SPICE_DIR)/bin
   
   S_SPICE_DIR	= $(SPICE_DIR)
-! S_SPICE_LIB_DIR	= $(S_SPICE_DIR)/share/spice
+! S_SPICE_LIB_DIR	= $(S_SPICE_DIR)/share/spice3
   S_SPICE_EXEC_DIR= $(S_SPICE_DIR)/bin
   
   #	INSTALL_DIRS lists the directories that need to be created before
 ***************
-*** 129,135 ****
+*** 129,139 ****
   #	an extra definition to work around the same strange bug.  See either
   #	file "conf/vax" or "conf/gcc".
   
@@ -53,7 +53,11 @@
   
   #	CC_OPT: Default compile options (optimization/debug level, other)
   
---- 129,135 ----
+! CC_OPT		= -O
+  
+  #	CC_OPT_SAFE: Special compile options to override CC_OPT for code
+  #	which typically causes problems for most compilers (bsim1 and bsim2).
+--- 129,139 ----
   #	an extra definition to work around the same strange bug.  See either
   #	file "conf/vax" or "conf/gcc".
   
@@ -61,6 +65,10 @@
   
   #	CC_OPT: Default compile options (optimization/debug level, other)
   
+! CC_OPT		= -O2 -pipe
+  
+  #	CC_OPT_SAFE: Special compile options to override CC_OPT for code
+  #	which typically causes problems for most compilers (bsim1 and bsim2).
 ***************
 *** 203,209 ****
   #	X_DIR indicates the top of the X11 lib/include hierarchy; it is only
@@ -78,40 +86,6 @@
   
   #	INCX lists the X include directories.  This may be different between
   #	MIT X11r5, X11r4, and your vendor's version of X11, though listing
-***************
-*** 282,288 ****
-  #	code for either or both MFB (a terminal independent graphics
-  #	interface) or X11.
-  
-! INTERFACE_OPTS	= -DWANT_MFB -DWANT_X11
-  
-  #	BUGADDR is the e-mail address to send bug reports.  If left blank
-  #	the "bug" command in spice will not operate.
---- 282,288 ----
-  #	code for either or both MFB (a terminal independent graphics
-  #	interface) or X11.
-  
-! INTERFACE_OPTS	= -DWANT_X11
-  
-  #	BUGADDR is the e-mail address to send bug reports.  If left blank
-  #	the "bug" command in spice will not operate.
-***************
-*** 292,298 ****
-  #	DEFAULT_EDITOR lists where the default editor used by the "edit"
-  #	command is located.
-  
-! DEFAULT_EDITOR	= vi
-  
-  #	ASCII_RAWFILE indicates that the default format of the spice3 raw data
-  #	file should be in human-readable format ( = 1 ) or in the smaller,
---- 292,298 ----
-  #	DEFAULT_EDITOR lists where the default editor used by the "edit"
-  #	command is located.
-  
-! DEFAULT_EDITOR	= /usr/bin/vi
-  
-  #	ASCII_RAWFILE indicates that the default format of the spice3 raw data
-  #	file should be in human-readable format ( = 1 ) or in the smaller,
 *** util/build.orig	Sun Mar 31 10:56:09 1996
 --- util/build	Sun Mar 31 10:57:21 1996
 ***************
@@ -176,3 +150,53 @@
   
   #  ifndef index
   #    ifdef HAS_INDEX
+*** src/include/os_bsd.h.orig	Sat Apr 24 18:09:46 1993
+--- src/include/os_bsd.h	Tue Jun  2 22:28:04 1998
+***************
+*** 8,19 ****
+  
+  #include "os_unix.h"
+  
+  #define HAS_NO_ATRIGH_DECL	/* if asinh( ) is not in math.h		*/
+- #define HAS_ATRIGH		/* acosh( ), asinh( ), atanh( )         */
+  #define HAS_FTIME		/* ftime( ), <times.h>			*/
+  #define HAS_TERMCAP		/* tgetxxx( )				*/
+  #define HAS_VFORK		/* BSD-ism, should not be necessary	*/
+- #define HAS_INDEX		/* index( ) instead of strchr( )	*/
+  #define HAS_BCOPY		/* bcopy( ), bzero( )			*/
+  #define HAS_BSDRANDOM		/* srandom( ) and random( )		*/
+  #define HAS_BSDTTY		/* <sgtty.h>				*/
+--- 8,23 ----
+  
+  #include "os_unix.h"
+  
++ #ifndef __FreeBSD__
+  #define HAS_NO_ATRIGH_DECL	/* if asinh( ) is not in math.h		*/
+  #define HAS_FTIME		/* ftime( ), <times.h>			*/
++ #define HAS_INDEX		/* index( ) instead of strchr( )	*/
++ #define HAS_STRINGS		/* use <strings.h> instead of <string.h> */
++ #endif
++ 
++ #define HAS_ATRIGH		/* acosh( ), asinh( ), atanh( )         */
+  #define HAS_TERMCAP		/* tgetxxx( )				*/
+  #define HAS_VFORK		/* BSD-ism, should not be necessary	*/
+  #define HAS_BCOPY		/* bcopy( ), bzero( )			*/
+  #define HAS_BSDRANDOM		/* srandom( ) and random( )		*/
+  #define HAS_BSDTTY		/* <sgtty.h>				*/
+***************
+*** 22,25 ****
+  #define HAS_BSDRLIMIT		/* getrlimit( )				*/
+  #define HAS_DUP2
+  #define HAS_GETWD		/* getwd(buf)				*/
+! #define HAS_STRINGS		/* use <strings.h> instead of <string.h> */
+--- 26,35 ----
+  #define HAS_BSDRLIMIT		/* getrlimit( )				*/
+  #define HAS_DUP2
+  #define HAS_GETWD		/* getwd(buf)				*/
+! 
+! #ifdef __FreeBSD__
+! #define HAS_BSDSOCKETS		/* <net/inet.h>, socket( ), etc.	*/
+! #define HAS_BSDTIME		/* gettimeofday( ) return time		*/
+! #define HAS_FLOAT_H		/* float.h				*/
+! #define HAS_STRCHR		/* strchr( ) instead of index( )	*/
+! #endif
diff -rNu /cdrom/ports/cad/spice/patches/patch-ac spice/patches/patch-ac
--- /cdrom/ports/cad/spice/patches/patch-ac	Wed Oct 22 02:04:54 1997
+++ spice/patches/patch-ac	Sun May 31 23:01:48 1998
@@ -25,19 +25,19 @@
 
           case 1: printf("Input file: ");
               (void) fflush(stdout);
-!             (void) fgets(buf,256,stdin);
+!             (void) fgets(buf,BSIZE_SP,stdin);
               sf = copy(buf);
               printf("Input type: ");
               (void) fflush(stdout);
-!             (void) fgets(buf,256,stdin);
+!             (void) fgets(buf,BSIZE_SP,stdin);
               f = buf[0];
               printf("Output file: ");
               (void) fflush(stdout);
-!             (void) fgets(buf,256,stdin);
+!             (void) fgets(buf,BSIZE_SP,stdin);
               af = copy(buf);
               printf("Output type: ");
               (void) fflush(stdout);
-!             (void) fgets(buf,256,stdin);
+!             (void) fgets(buf,BSIZE_SP,stdin);
               t = buf[0];
               break;
           default:
@@ -56,7 +56,7 @@
 
       fprintf(cp_out, "run circuit? ");
       fflush(cp_out);
-!     (void) fgets(buf,256,stdin);
+!     (void) fgets(buf,BSIZE_SP,stdin);
       if (buf[0] != 'n') {
         fprintf(cp_out, "running circuit\n");
         com_run(NULL);
diff -rNu /cdrom/ports/cad/spice/pkg/COMMENT spice/pkg/COMMENT
--- /cdrom/ports/cad/spice/pkg/COMMENT	Wed Oct 22 02:04:55 1997
+++ spice/pkg/COMMENT	Sun Jun  7 00:10:40 1998
@@ -1 +1 @@
-Simulation Program for Integrated Circuit Electronics
+A general-purpose circuit simulation program
diff -rNu /cdrom/ports/cad/spice/pkg/DESCR spice/pkg/DESCR
--- /cdrom/ports/cad/spice/pkg/DESCR	Sun May 26 21:53:06 1996
+++ spice/pkg/DESCR	Wed Jun  3 20:33:33 1998
@@ -1,4 +1,4 @@
-SPICE is a general-purpose circuit  simulation  program for nonlinear dc,
+SPICE is a general-purpose circuit simulation  program for nonlinear dc,
 nonlinear transient, and linear ac analyses. Circuits may contain resistors,
 capacitors, inductors, mutual inductors, independent voltage and current
 sources, four types of dependent sources, lossless and lossy transmission
@@ -9,6 +9,8 @@
 	From the SPICE3 Version3f3 User's Manual.
 	This is availble as a postscript document from:
 		ftp://ic.eecs.berkeley.edu/pub/Spice3/um.3f3.ps
-		
+	or you can read the online documentation at:
+		http://infopad.eecs.berkeley.edu/~icdesign/SPICE/
+
 Julian Jenkins
 kaveman@magna.com.au
diff -rNu /cdrom/ports/cad/spice/pkg/PLIST spice/pkg/PLIST
--- /cdrom/ports/cad/spice/pkg/PLIST	Wed Oct 22 02:04:55 1997
+++ spice/pkg/PLIST	Wed Jun  3 21:24:31 1998
@@ -4,38 +4,38 @@
 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
-share/spice/scripts/spinit
-share/spice/mfbcap
-share/spice/news
+share/examples/spice3/bjtnoise.cir
+share/examples/spice3/bsim1tst.cir
+share/examples/spice3/bsim2tst.cir
+share/examples/spice3/diffpair.cir
+share/examples/spice3/diodisto.cir
+share/examples/spice3/ltra_1.cir
+share/examples/spice3/ltra_2.cir
+share/examples/spice3/ltra_3.cir
+share/examples/spice3/mixdisto.cir
+share/examples/spice3/mos6inv.cir
+share/examples/spice3/mosamp2.cir
+share/examples/spice3/mosmem.cir
+share/examples/spice3/pz2.cir
+share/examples/spice3/pzt.cir
+share/examples/spice3/rc.cir
+share/examples/spice3/rca3040.cir
+share/examples/spice3/resnoise.cir
+share/examples/spice3/rtlinv.cir
+share/examples/spice3/schmitt.cir
+share/examples/spice3/simplepz.cir
+share/spice3/helpdir/spice.txt
+share/spice3/helpdir/spice.idx
+share/spice3/scripts/setplot
+share/spice3/scripts/spinit
+share/spice3/mfbcap
+share/spice3/news
 man/man5/mfbcap.5.gz
 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/examples/spice3
+@dirrm share/spice3/helpdir
+@dirrm share/spice3/scripts
 @dirrm share/spice

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806070615.XAA12512>