diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2007-04-28 17:01:15 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2007-04-28 17:01:15 +0000 |
commit | 05dd2ea17f162aa55ddefadb7a168a9527e3c12d (patch) | |
tree | 9875e754aff886ae47bb8fb34247526d137eda82 /cad | |
parent | GDSreader is a simple Calma (GDSii) parser/printer tool. (diff) |
FindHier is a road-map generator for Magic/CIF/gdsII/PCSTR/GED/TeX.
---When you have a large number of or big layout/schematic/TeX files which
have possibly many top cells made by other people, how can you manage
those layout/schematic/TeXs? FH is written for that. It can be useful
up to your imagination or shell programming skill. FH analyses the
hidden hierarchies of those cells and shows you the hierarchy information.
Notes
Notes:
svn path=/head/; revision=191070
Diffstat (limited to 'cad')
-rw-r--r-- | cad/Makefile | 1 | ||||
-rw-r--r-- | cad/findhier/Makefile | 26 | ||||
-rw-r--r-- | cad/findhier/distinfo | 3 | ||||
-rw-r--r-- | cad/findhier/files/patch-Makefile | 28 | ||||
-rw-r--r-- | cad/findhier/files/patch-findhier.h | 42 | ||||
-rw-r--r-- | cad/findhier/files/patch-fnames.c | 21 | ||||
-rw-r--r-- | cad/findhier/files/patch-magic.c | 38 | ||||
-rw-r--r-- | cad/findhier/files/patch-menu.c | 29 | ||||
-rw-r--r-- | cad/findhier/files/patch-names.c | 11 | ||||
-rw-r--r-- | cad/findhier/files/patch-reverse.c | 11 | ||||
-rw-r--r-- | cad/findhier/pkg-descr | 3 |
11 files changed, 213 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile index 7b2faef39099..bdc925c2d099 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -21,6 +21,7 @@ SUBDIR += electric-ng SUBDIR += fandango SUBDIR += feappv + SUBDIR += findhier SUBDIR += freehdl SUBDIR += gdsreader SUBDIR += geda diff --git a/cad/findhier/Makefile b/cad/findhier/Makefile new file mode 100644 index 000000000000..d0d3a7708da6 --- /dev/null +++ b/cad/findhier/Makefile @@ -0,0 +1,26 @@ +# Ports collection makefile for: findhier +# Date created: Sat, Apr 28, 2007 +# Whom: Hiroki Sato <hrs@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= findhier +PORTVERSION= 1.14 +CATEGORIES= cad +MASTER_SITES= http://www.iclab.snu.ac.kr/~chilly/Work/CAD/ +DISTNAME= fh${PORTVERSION} + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Hierarchy Viewer for magic/CIF/GDSII/PCSTR/GED/TeX + +NO_WRKSUBDIR= yes +PLIST_FILES= bin/fh + +MAN1= fh.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/fh ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/fh.1 ${MAN1PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/cad/findhier/distinfo b/cad/findhier/distinfo new file mode 100644 index 000000000000..8a335027e1c5 --- /dev/null +++ b/cad/findhier/distinfo @@ -0,0 +1,3 @@ +MD5 (fh1.14.tar.gz) = 8a16a1eb5e3abc1a35ddfcf0848a4fda +SHA256 (fh1.14.tar.gz) = d6cb574d7aa62335682ce963a84a906f7b1c5d05d4546b458ea33ecb0a20cdea +SIZE (fh1.14.tar.gz) = 43155 diff --git a/cad/findhier/files/patch-Makefile b/cad/findhier/files/patch-Makefile new file mode 100644 index 000000000000..eb1d14e0902a --- /dev/null +++ b/cad/findhier/files/patch-Makefile @@ -0,0 +1,28 @@ +--- Makefile.orig Mon Oct 16 00:58:34 1995 ++++ Makefile Sun Apr 29 00:58:54 2007 +@@ -9,7 +9,7 @@ + + #CFLAG = -pg + #CFLAG = -g +-CFLAG = -O4 ++CFLAG = -O ${CFLAGS} + LFLAG = + + # Sparc with SunOS4.x +@@ -51,13 +51,13 @@ + OBJS = ${SRCS:c=o} + HEADERS = str.h findhier.h fstruct.h + +-.c.o: Makefile findhier.h fhstruct.h ++.c.o: Makefile findhier.h fstruct.h + ${CC} -c ${CFLAG} $< + ++all: fh ++ + fh: ${OBJS} + ${CC} -o $@ ${CFLAG} ${OBJS} ${LFLAG} +- #strip fh +- #mv fh ${HOME}/bin + + lint: + ${LINT} ${SRCS} | more diff --git a/cad/findhier/files/patch-findhier.h b/cad/findhier/files/patch-findhier.h new file mode 100644 index 000000000000..d2249fd84f11 --- /dev/null +++ b/cad/findhier/files/patch-findhier.h @@ -0,0 +1,42 @@ +--- findhier.h.orig Sun Apr 29 00:47:16 2007 ++++ findhier.h Sun Apr 29 00:49:02 2007 +@@ -6,6 +6,7 @@ + * + */ + #include <stdio.h> ++#include <stdlib.h> + #include <string.h> + #include "fstruct.h" + +@@ -31,7 +32,7 @@ + + #ifndef isalpha + #define isalpha(X) ( X>='A' && X<='Z' || X>='a' && X<='z' ) +-#endif isalpha ++#endif /* isalpha */ + + typedef enum formats { CIF, GDSII, MAGIC, PCSTR, VALID, TeX } FORMAT; + +@@ -111,19 +112,21 @@ + void exit(); + char *getenv(); + ++/* + #ifdef SYSV + void *malloc(); + void free(); + #else + char *malloc(); + #endif SYSV ++*/ + #ifdef _UNIX_ + # define OPENMODE "r" + # define DIRDEL '/' + #else + #define OPENMODE "rb" + #define DIRDEL '\\' +-#endif _UNIX_ ++#endif /* _UNIX_ */ + /* + char *getenv(); + */ diff --git a/cad/findhier/files/patch-fnames.c b/cad/findhier/files/patch-fnames.c new file mode 100644 index 000000000000..f94c099d6ceb --- /dev/null +++ b/cad/findhier/files/patch-fnames.c @@ -0,0 +1,21 @@ +--- fnames.c.orig Sun Apr 29 00:51:29 2007 ++++ fnames.c Sun Apr 29 00:53:16 2007 +@@ -6,15 +6,14 @@ + * + */ + #include <stdio.h> ++#include <string.h> + #ifndef DIRDEL + #ifdef _UNIX_ + #define DIRDEL '/' + #else + #define DIRDEL '\\' +-#endif _UNIX_ +-#endif DIRDEL +- +-int strlen(); ++#endif /* _UNIX_ */ ++#endif /* DIRDEL */ + + char *basename(argv) + char *argv; diff --git a/cad/findhier/files/patch-magic.c b/cad/findhier/files/patch-magic.c new file mode 100644 index 000000000000..c83d4f614dbc --- /dev/null +++ b/cad/findhier/files/patch-magic.c @@ -0,0 +1,38 @@ +--- magic.c.orig Sun Apr 29 00:53:23 2007 ++++ magic.c Sun Apr 29 00:53:59 2007 +@@ -16,7 +16,7 @@ + #ifdef _UNIX_ + #include <pwd.h> + uid_t getuid(); +-#endif _UNIX_ ++#endif /* _UNIX_ */ + + #define ENVIRON ".magic" + +@@ -84,7 +84,7 @@ + while((tmp=getpath(env))!=NULL) add_path(tmp); + (void)fclose(env); + } +-#endif _UNIX_ ++#endif /* _UNIX_ */ + + void myenviron() + { +@@ -92,7 +92,7 @@ + char buf[BUFSIZE]; + struct passwd *cad; + uid_t uid; +-#endif _UNIX_ ++#endif /* _UNIX_ */ + + add_path("."); + #ifdef _UNIX_ +@@ -110,7 +110,7 @@ + proc(ENVIRON); + + path_reversal(); +-#endif _UNIX_ ++#endif /* _UNIX_ */ + } + + /* magic.c */ diff --git a/cad/findhier/files/patch-menu.c b/cad/findhier/files/patch-menu.c new file mode 100644 index 000000000000..62309e50b085 --- /dev/null +++ b/cad/findhier/files/patch-menu.c @@ -0,0 +1,29 @@ +--- menu.c.orig Sun Apr 29 00:54:06 2007 ++++ menu.c Sun Apr 29 00:54:30 2007 +@@ -9,7 +9,7 @@ + #include <errno.h> + #ifndef _UNIX_ + #include <process.h> +-#endif _UNIX_ ++#endif /* _UNIX_ */ + + #define PROMPT "FindHier>" + /* +@@ -102,7 +102,7 @@ + (void)sprintf(tmpfname,"/tmp/FindHier_%d",getpid()); + #else + (void)sprintf(tmpfname,".\\findhier.%3x",getpid() & 0xfff); +-#endif _UNIX_ ++#endif /* _UNIX_ */ + pager=getenv("PAGER"); + if (pager==NULL) { + pager=(char *)myalloc(sizeof("more"),"menu"); +@@ -112,7 +112,7 @@ + (void)sprintf(pagercmd,"%s %s",pager,tmpfname); + #else + (void)sprintf(pagercmd,"%s < %s",pager,tmpfname); +-#endif _UNIX_ ++#endif /* _UNIX_ */ + + for(;;) { + diff --git a/cad/findhier/files/patch-names.c b/cad/findhier/files/patch-names.c new file mode 100644 index 000000000000..8524838c8958 --- /dev/null +++ b/cad/findhier/files/patch-names.c @@ -0,0 +1,11 @@ +--- names.c.orig Sun Apr 29 00:54:55 2007 ++++ names.c Sun Apr 29 00:55:01 2007 +@@ -116,7 +116,7 @@ + } + #ifndef _UNIX_ + strlwr(dp); +-#endif _UNIX_ ++#endif /* _UNIX_ */ + /* extension() will corrupt dp on purpose */ + if (!strcmp(extension(dp),EXT+1)) create(dp); + } diff --git a/cad/findhier/files/patch-reverse.c b/cad/findhier/files/patch-reverse.c new file mode 100644 index 000000000000..1391da9059f9 --- /dev/null +++ b/cad/findhier/files/patch-reverse.c @@ -0,0 +1,11 @@ +--- reverse.c.orig Sun Apr 29 00:54:40 2007 ++++ reverse.c Sun Apr 29 00:54:49 2007 +@@ -85,7 +85,7 @@ + warning("Cell |%s| not found.\n",mytop); + exit(-1); + } +-#endif __OLD__ ++#endif /* __OLD__ */ + warning("Cell |%s| not found.\n",mytop); + return((struct branch *)NULL); + } diff --git a/cad/findhier/pkg-descr b/cad/findhier/pkg-descr new file mode 100644 index 000000000000..d2d11ce2d518 --- /dev/null +++ b/cad/findhier/pkg-descr @@ -0,0 +1,3 @@ +This is a road-map generator for Magic/CIF/gdsII/PCSTR/GED/TeX. + +WWW: http://www.iclab.snu.ac.kr/~chilly/Work/CAD/findhier.html |