aboutsummaryrefslogtreecommitdiffstats
path: root/cad/irsim
diff options
context:
space:
mode:
authorswallace <swallace@FreeBSD.org>1994-12-19 14:01:05 +0800
committerswallace <swallace@FreeBSD.org>1994-12-19 14:01:05 +0800
commitd32122c6ab6e6d11582674d78a93566e3fba4434 (patch)
treec4d91ef21191fd2fa7c9f78af373f8776626856e /cad/irsim
parente2f77028891fb8756d43288c9495cbe9aa995a30 (diff)
downloadfreebsd-ports-gnome-d32122c6ab6e6d11582674d78a93566e3fba4434.tar.gz
freebsd-ports-gnome-d32122c6ab6e6d11582674d78a93566e3fba4434.tar.zst
freebsd-ports-gnome-d32122c6ab6e6d11582674d78a93566e3fba4434.zip
IRSIM version 9.2
Diffstat (limited to 'cad/irsim')
-rw-r--r--cad/irsim/Makefile14
-rw-r--r--cad/irsim/files/Makefile19
-rw-r--r--cad/irsim/files/patch-aa56
-rw-r--r--cad/irsim/pkg-comment1
-rw-r--r--cad/irsim/pkg-descr10
-rw-r--r--cad/irsim/pkg-plist10
-rw-r--r--cad/irsim/scripts/post-configure6
7 files changed, 116 insertions, 0 deletions
diff --git a/cad/irsim/Makefile b/cad/irsim/Makefile
new file mode 100644
index 000000000000..2736077c212a
--- /dev/null
+++ b/cad/irsim/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: magic
+# Version required: 6.4.4
+# Date created: 18 Dec 1994
+# Whom: swallace
+#
+# $Id: Makefile,v 1.2 1994/10/06 07:52:04 swallace Exp $
+#
+
+DISTNAME= irsim-9.2
+EXTRACT_SUFX= .tar.Z
+MASTER_SITES= ftp://gatekeeper.dec.com/pub/DEC/magic/6.4/
+WRKSRC= ${.CURDIR}/work/irsim
+
+.include <bsd.port.mk>
diff --git a/cad/irsim/files/Makefile b/cad/irsim/files/Makefile
new file mode 100644
index 000000000000..586b1bc6f533
--- /dev/null
+++ b/cad/irsim/files/Makefile
@@ -0,0 +1,19 @@
+CFLAGS = -USYS_V -UNO_SIGIO -DULTRIX_VERSION=4 -O2 -m486
+
+all:
+ @(cd src/utils; make)
+ @(cd src/irsim; make SYSF="${CFLAGS}")
+ @(cd src/fsim; make SYSF="${CFLAGS}")
+ @(cd src/other/h2a; make SYSF="${CFLAGS}")
+ @(cd src/other/inet2sim; make SYSF="${CFLAGS}")
+
+install:
+ install -cs -o bin -g bin -m 555 src/irsim/irsim ${PREFIX}/bin
+ install -cs -o bin -g bin -m 555 src/fsim/ifsim ${PREFIX}/bin
+ install -cs -o bin -g bin -m 555 src/other/h2a/h2a ${PREFIX}/bin
+ install -cs -o bin -g bin -m 555 src/other/inet2sim/inet2sim ${PREFIX}/bin
+ install -c -o bin -g bin -m 444 man/irsim.1 ${PREFIX}/man/man1
+ install -c -o bin -g bin -m 444 man/irsim-analyzer.3 ${PREFIX}/man/man3
+ install -c -o bin -g bin -m 444 man/netchange.5 ${PREFIX}/man/man5
+ install -c -o bin -g bin -m 444 calibrate/scmos1_6um.prm ${PREFIX}/lib
+ install -c -o bin -g bin -m 444 calibrate/scmos2um.prm ${PREFIX}/lib
diff --git a/cad/irsim/files/patch-aa b/cad/irsim/files/patch-aa
new file mode 100644
index 000000000000..e95c0bb4975e
--- /dev/null
+++ b/cad/irsim/files/patch-aa
@@ -0,0 +1,56 @@
+*** src/irsim/fio.c.orig Fri Jan 15 11:45:14 1993
+--- src/irsim/fio.c Sun Dec 18 13:58:41 1994
+***************
+*** 15,21 ****
+--- 15,23 ----
+ #include <stdio.h>
+ #include <defs.h>
+
++ #ifndef __FreeBSD__ /* clearerr defined as macro in stdio.h */
+ extern void clearerr();
++ #endif
+
+
+ /*
+*** src/utils/Export/export.c.orig Sun Dec 23 01:15:04 1990
+--- src/utils/Export/export.c Sun Dec 18 13:52:22 1994
+***************
+*** 36,41 ****
+--- 36,42 ----
+ extern String mktemp();
+ String outfname;
+ char syscmd[ 512 ];
++ char name[18];
+ FILE *tmp;
+ int r;
+ int i;
+***************
+*** 46,53 ****
+ signal( SIGINT, abnorm );
+ signal( SIGQUIT, abnorm );
+
+! tmpname = mktemp( "/tmp/exportXXXXXX" );
+! fout = fopen( tmpname, "w", stdout );
+ if( fout == NULL )
+ Crash( "can't write %s", tmpname );
+
+--- 47,55 ----
+ signal( SIGINT, abnorm );
+ signal( SIGQUIT, abnorm );
+
+! strcpy( name, "/tmp/exportXXXXXX" );
+! tmpname = mktemp( name );
+! fout = fopen( tmpname, "w" );
+ if( fout == NULL )
+ Crash( "can't write %s", tmpname );
+
+*** src/irsim/gentbl.c.orig Fri Jan 15 11:45:14 1993
+--- src/irsim/gentbl.c Sun Dec 18 18:56:39 1994
+***************
+*** 188,191 ****
+--- 188,192 ----
+ }
+ }
+ fprintf( out, "\n};\n" );
++ return 0;
+ }
diff --git a/cad/irsim/pkg-comment b/cad/irsim/pkg-comment
new file mode 100644
index 000000000000..d428541970fb
--- /dev/null
+++ b/cad/irsim/pkg-comment
@@ -0,0 +1 @@
+IRSIM 9.2
diff --git a/cad/irsim/pkg-descr b/cad/irsim/pkg-descr
new file mode 100644
index 000000000000..c1a63feb88b7
--- /dev/null
+++ b/cad/irsim/pkg-descr
@@ -0,0 +1,10 @@
+IRSIM version 9.2
+
+Irsim is an event-driven logic-level simulator for MOS circuits
+
+To run irsim, users should set CAD_HOME to the base installation directory
+where magic was installed, e.g. /usr/local. Alternatively, the system
+administrator can create a dummy user named 'cad' with its home
+directory set to the installation directory.
+
+Ported to FreeBSD by Steven Wallace, swallace@freebsd.org
diff --git a/cad/irsim/pkg-plist b/cad/irsim/pkg-plist
new file mode 100644
index 000000000000..ce875fb3190b
--- /dev/null
+++ b/cad/irsim/pkg-plist
@@ -0,0 +1,10 @@
+@cwd /usr/local
+bin/irsim
+bin/ifsim
+bin/h2a
+bin/inet2sim
+man/man1/irsim.1
+man/man3/irsim-analyzer.3
+man/man5/netchange.5
+lib/scmos1_6um.prm
+lib/scmos2um.prm
diff --git a/cad/irsim/scripts/post-configure b/cad/irsim/scripts/post-configure
new file mode 100644
index 000000000000..3acb40fd1609
--- /dev/null
+++ b/cad/irsim/scripts/post-configure
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# $Id: post-configure,v 1.2 1994/10/04 15:12:51 jkh Exp $
+#
+
+cp ${CURDIR}/files/Makefile ${WRKSRC}