mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
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.
This commit is contained in:
parent
33b372f122
commit
05dd2ea17f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191070
11 changed files with 213 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
SUBDIR += electric-ng
|
||||
SUBDIR += fandango
|
||||
SUBDIR += feappv
|
||||
SUBDIR += findhier
|
||||
SUBDIR += freehdl
|
||||
SUBDIR += gdsreader
|
||||
SUBDIR += geda
|
||||
|
|
26
cad/findhier/Makefile
Normal file
26
cad/findhier/Makefile
Normal file
|
@ -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>
|
3
cad/findhier/distinfo
Normal file
3
cad/findhier/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (fh1.14.tar.gz) = 8a16a1eb5e3abc1a35ddfcf0848a4fda
|
||||
SHA256 (fh1.14.tar.gz) = d6cb574d7aa62335682ce963a84a906f7b1c5d05d4546b458ea33ecb0a20cdea
|
||||
SIZE (fh1.14.tar.gz) = 43155
|
28
cad/findhier/files/patch-Makefile
Normal file
28
cad/findhier/files/patch-Makefile
Normal file
|
@ -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
|
42
cad/findhier/files/patch-findhier.h
Normal file
42
cad/findhier/files/patch-findhier.h
Normal file
|
@ -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();
|
||||
*/
|
21
cad/findhier/files/patch-fnames.c
Normal file
21
cad/findhier/files/patch-fnames.c
Normal file
|
@ -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;
|
38
cad/findhier/files/patch-magic.c
Normal file
38
cad/findhier/files/patch-magic.c
Normal file
|
@ -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 */
|
29
cad/findhier/files/patch-menu.c
Normal file
29
cad/findhier/files/patch-menu.c
Normal file
|
@ -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(;;) {
|
||||
|
11
cad/findhier/files/patch-names.c
Normal file
11
cad/findhier/files/patch-names.c
Normal file
|
@ -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);
|
||||
}
|
11
cad/findhier/files/patch-reverse.c
Normal file
11
cad/findhier/files/patch-reverse.c
Normal file
|
@ -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);
|
||||
}
|
3
cad/findhier/pkg-descr
Normal file
3
cad/findhier/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue