diff options
author | Steven Wallace <swallace@FreeBSD.org> | 1994-12-19 06:01:05 +0000 |
---|---|---|
committer | Steven Wallace <swallace@FreeBSD.org> | 1994-12-19 06:01:05 +0000 |
commit | 0066f3c97175bdf54c6165de9eb32773b9e7b47c (patch) | |
tree | e6ac85e9f9751f857ce9d5f6c26984036c8baca8 /cad | |
parent | 73d815c6db6b322e6980d65b64be2a75b1711450 (diff) | |
download | ports-0066f3c97175bdf54c6165de9eb32773b9e7b47c.tar.gz ports-0066f3c97175bdf54c6165de9eb32773b9e7b47c.zip |
Notes
Diffstat (limited to 'cad')
-rw-r--r-- | cad/irsim/Makefile | 14 | ||||
-rw-r--r-- | cad/irsim/files/Makefile | 19 | ||||
-rw-r--r-- | cad/irsim/files/patch-aa | 56 | ||||
-rw-r--r-- | cad/irsim/pkg-comment | 1 | ||||
-rw-r--r-- | cad/irsim/pkg-descr | 10 | ||||
-rw-r--r-- | cad/irsim/pkg-plist | 10 | ||||
-rw-r--r-- | cad/irsim/scripts/post-configure | 6 |
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} |