summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-12-14 02:18:25 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-12-14 02:18:25 +0000
commite7a188d684d80efbec24866ce8afcd5fefc0af3f (patch)
tree50257e1e8ec6c242a7c7b4cb43c3d0844293342c /cad
parent2156b0ca9140355f3362ae0513f54b471e12203e (diff)
downloadpkgsrc-e7a188d684d80efbec24866ce8afcd5fefc0af3f.tar.gz
import gdsreader-0.3
GDSreader - simple Calma (GDSii) parser/printer tool. This software has as target the printing/plotting/displaying of Calma (GDSii) files without using true layout editors. I had once to visualize an unknown Calma file and customizing LEdit or Magic (the two layout editors I had access to) was so difficult that I decided to write this program. Current status: - gdsreader is in an alpha stage and you should not expect too much from it; - the Calma files are almost completely parsed (had no layout example that makes use of BOX/NODE elements); - given a Calma structure name, a PostScript file and a HPGL/2 file are generated. The way each layer is handled is controlled by an ASCII configuration file. The properties that can be set are color, fill (only solid is supported), hatch (simple or cross, the angle and spacing are user customizable too). In order to produce an useful PostScript output, you need to write a configuration file (default is .layers.config). The one you'll find with the distribution is suitable for the Calma example test.gds (an actual Bandgap reference).
Diffstat (limited to 'cad')
-rw-r--r--cad/gdsreader/DESCR21
-rw-r--r--cad/gdsreader/Makefile21
-rw-r--r--cad/gdsreader/PLIST6
-rw-r--r--cad/gdsreader/distinfo5
-rw-r--r--cad/gdsreader/patches/patch-aa26
5 files changed, 79 insertions, 0 deletions
diff --git a/cad/gdsreader/DESCR b/cad/gdsreader/DESCR
new file mode 100644
index 00000000000..26807301886
--- /dev/null
+++ b/cad/gdsreader/DESCR
@@ -0,0 +1,21 @@
+GDSreader - simple Calma (GDSii) parser/printer tool.
+
+This software has as target the printing/plotting/displaying of Calma (GDSii)
+files without using true layout editors. I had once to visualize an unknown
+Calma file and customizing LEdit or Magic (the two layout editors I had access
+to) was so difficult that I decided to write this program.
+
+Current status:
+- gdsreader is in an alpha stage and you should not expect too much from it;
+- the Calma files are almost completely parsed (had no layout example that
+ makes use of BOX/NODE elements);
+- given a Calma structure name, a PostScript file and a HPGL/2 file are
+ generated. The way each layer is handled is controlled by an ASCII
+ configuration file. The properties that can be set are color, fill (only
+ solid is supported), hatch (simple or cross, the angle and spacing are user
+ customizable too).
+
+In order to produce an useful PostScript output, you need to write a
+configuration file (default is .layers.config). The one you'll find with the
+distribution is suitable for the Calma example test.gds (an actual Bandgap
+reference).
diff --git a/cad/gdsreader/Makefile b/cad/gdsreader/Makefile
new file mode 100644
index 00000000000..c3a695951e9
--- /dev/null
+++ b/cad/gdsreader/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/12/14 02:18:25 dmcmahill Exp $
+#
+
+DISTNAME= GDSreader.0.3
+PKGNAME= gdsreader-0.3
+CATEGORIES= cad
+MASTER_SITES= http://home.netcom.com/~serbanp/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://home.netcom.com/~serbanp/
+COMMENT= GDS-II stream file to Postscript and HP/GL converter
+
+EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAME}
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/test.gds ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/layers.config ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${EXAMPLESDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cad/gdsreader/PLIST b/cad/gdsreader/PLIST
new file mode 100644
index 00000000000..e443d26cece
--- /dev/null
+++ b/cad/gdsreader/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/14 02:18:25 dmcmahill Exp $
+bin/gdsreader
+share/examples/${PKGNAME}/README
+share/examples/${PKGNAME}/layers.config
+share/examples/${PKGNAME}/test.gds
+@dirrm share/examples/${PKGNAME}
diff --git a/cad/gdsreader/distinfo b/cad/gdsreader/distinfo
new file mode 100644
index 00000000000..488578f8c81
--- /dev/null
+++ b/cad/gdsreader/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/12/14 02:18:25 dmcmahill Exp $
+
+SHA1 (GDSreader.0.3.tar.gz) = a3ed81812e37011b648f373bae0bce62b9a5a8ac
+Size (GDSreader.0.3.tar.gz) = 68272 bytes
+SHA1 (patch-aa) = a25780e60636fdbbbbac382d8b602ad840508463
diff --git a/cad/gdsreader/patches/patch-aa b/cad/gdsreader/patches/patch-aa
new file mode 100644
index 00000000000..f89d15faa31
--- /dev/null
+++ b/cad/gdsreader/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/12/14 02:18:25 dmcmahill Exp $
+
+--- Makefile.orig Thu Apr 8 01:39:45 1999
++++ Makefile
+@@ -1,12 +1,18 @@
+
+-CC = gcc
++#CC = gcc
+ #CFLAGS = -I.
+-CFLAGS = -I. -Wall -g #-pg
+-LDFLAGS = #-pg
++#CFLAGS = -I. -Wall -g #-pg
++#LDFLAGS = #-pg
++CFLAGS+= -I.
+
+ OBJS = GDSreader.o GDSmain.o GDSaux.o GDSboundary.o GDSpath.o \
+ GDSsref.o GDSaref.o GDStext.o GDSnode.o GDSbox.o GDStoHPGL.o \
+ GDSstruct.o GDStransf.o GDStoPS.o GDSparser.o
++
++all: gdsreader
++
++install: gdsreader
++ ${BSD_INSTALL_PROGRAM} gdsreader ${PREFIX}/bin
+
+ gdsreader: ${OBJS}
+ ${CC} ${LDFLAGS} -o gdsreader ${OBJS} -lm