diff options
author | hrs <hrs@FreeBSD.org> | 2007-04-29 15:20:02 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2007-04-29 15:20:02 +0800 |
commit | 81ee8efa1ae7a43f498636dc1e7bf0220a4ccb0d (patch) | |
tree | da321a005e92a11a7892e8b760491cdf04fe399c | |
parent | 45dc78a1c39f0053600099826961f8ac26e2021e (diff) | |
download | freebsd-ports-graphics-81ee8efa1ae7a43f498636dc1e7bf0220a4ccb0d.tar.gz freebsd-ports-graphics-81ee8efa1ae7a43f498636dc1e7bf0220a4ccb0d.tar.zst freebsd-ports-graphics-81ee8efa1ae7a43f498636dc1e7bf0220a4ccb0d.zip |
GDT (graphics data text) format translator written in C/C++ that
converts a binary gdsii file to a text format that is compact and
easy to parse.
-rw-r--r-- | cad/Makefile | 1 | ||||
-rw-r--r-- | cad/gdt/Makefile | 28 | ||||
-rw-r--r-- | cad/gdt/distinfo | 3 | ||||
-rw-r--r-- | cad/gdt/files/Makefile | 51 | ||||
-rw-r--r-- | cad/gdt/files/patch-Examples-gdsinfo | 12 | ||||
-rw-r--r-- | cad/gdt/files/patch-gdsStream.h | 12 | ||||
-rw-r--r-- | cad/gdt/pkg-descr | 5 |
7 files changed, 112 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile index 813346e113b..195ef3646a3 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -24,6 +24,7 @@ SUBDIR += findhier SUBDIR += freehdl SUBDIR += gdsreader + SUBDIR += gdt SUBDIR += geda SUBDIR += geda-docs SUBDIR += geda-examples diff --git a/cad/gdt/Makefile b/cad/gdt/Makefile new file mode 100644 index 00000000000..dfaef48f87f --- /dev/null +++ b/cad/gdt/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: gdt +# Date created: Sun, Apr 29 2007 +# Whom: Hiroki Sato <hrs@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gdt +PORTVERSION= 1.0.1 +CATEGORIES= cad +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gds2 +DISTNAME= ${PORTNAME:U}_${PORTVERSION} + +MAINTAINER= hrs@FreeBSD.org +COMMENT= GDS2/GDT format translator + +USE_PERL5_RUN= yes +WRKSRC= ${WRKDIR}/${PORTNAME:U}-${PORTVERSION} +PLIST_FILES= bin/gdsinfo bin/gds2gdt bin/gdt2gds + +pre-build: + ${CP} ${FILESDIR}/Makefile ${WRKSRC} + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/Examples/gdsinfo ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/cad/gdt/distinfo b/cad/gdt/distinfo new file mode 100644 index 00000000000..b269d595aab --- /dev/null +++ b/cad/gdt/distinfo @@ -0,0 +1,3 @@ +MD5 (GDT_1.0.1.tar.gz) = 494864b75f5b6658d47541538c0689ca +SHA256 (GDT_1.0.1.tar.gz) = 1878ac2bd487141acaf2264bd0502e02aac1e57aa24c7b5e798676135e9e44fc +SIZE (GDT_1.0.1.tar.gz) = 48347 diff --git a/cad/gdt/files/Makefile b/cad/gdt/files/Makefile new file mode 100644 index 00000000000..a28e60f6e0f --- /dev/null +++ b/cad/gdt/files/Makefile @@ -0,0 +1,51 @@ +# $FreeBSD$ + +PREFIX?= /usr/local + +CC?= gcc +CXX?= g++ +CFLAGS+= -I. -O -Wimplicit -Wreturn-type -Wswitch \ + -Wcomment -Wformat -Wchar-subscripts \ + -Wparentheses -Wpointer-arith -Wcast-qual \ + -Woverloaded-virtual -static +CXXFLAGS+= ${CFLAGS} -Wno-deprecated +LIBS= -lm -lstdc++ +LDADD+= ${LIBS} + +PROG= gds2gdt gdt2gds + +SRCS.gds2gdt= sRemoveTrailingZeros.C get_field.c stoupper.c sfind.C \ + match_string.C sRemoveSpaces.C sRemoveWhiteSpace.C \ + gdsStream.C gds2gdt.C + +.for P in ${PROG} +OBJS.${P}= ${SRCS.${P}:N*.h:R:S,$,.o,g} +.endfor + +SRCS.gdt2gds= sRemoveWhiteSpace.C sRemoveTrailingZeros.C \ + get_field.c stoupper.c sfind.C match_string.C \ + sRemoveSpaces.C gdsStream.C gdt2gds.C + +BSD_INSTALL_PROGRAM?= install -s -m 555 + +all: ${PROG} + +clean: + rm -f *.o ${PROG} + +install: + ${BSD_INSTALL_PROGRAM} ${PROG} ${PREFIX}/bin + +.for P in ${PROG} +${P}: ${OBJS.${P}} + ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS.${P}} ${LDADD} +.endfor + +.for F in ${SRCS:M*.C} +${F:R:S,$,.o,g}: ${F} + ${CC} ${CFLAGS} -c -o ${.TARGET} ${F} +.endfor +.for F in ${SRCS:M*.c} +${F:R:S,$,.o,g}: ${F} + ${CXX} ${CXXFLAGS} -c -o ${.TARGET} ${F} +.endfor diff --git a/cad/gdt/files/patch-Examples-gdsinfo b/cad/gdt/files/patch-Examples-gdsinfo new file mode 100644 index 00000000000..4841501a425 --- /dev/null +++ b/cad/gdt/files/patch-Examples-gdsinfo @@ -0,0 +1,12 @@ +--- Examples/gdsinfo.orig Sun Apr 29 15:54:57 2007 ++++ Examples/gdsinfo Sun Apr 29 15:55:08 2007 +@@ -75,9 +75,6 @@ + $topCellNames =~ s/\s+/ /g; + + # help find gds2gdt +-my $uname_s = `/bin/uname -s`; # OS name +-chomp $uname_s; +-$ENV{'PATH'} = "/bin:/usr/bin:/user/ic/gnu/$uname_s/bin:".$ENV{'PATH'}; + my $gds2gdt = which("gds2gdt"); + unless ($gds2gdt) + { diff --git a/cad/gdt/files/patch-gdsStream.h b/cad/gdt/files/patch-gdsStream.h new file mode 100644 index 00000000000..00a5ade48a4 --- /dev/null +++ b/cad/gdt/files/patch-gdsStream.h @@ -0,0 +1,12 @@ +--- gdsStream.h.orig Sun Apr 29 15:45:42 2007 ++++ gdsStream.h Sun Apr 29 15:45:54 2007 +@@ -3,8 +3,7 @@ + #define _gdsStream__ + + #include <stdio.h> +-#include <malloc.h> +-#include <stdio.h> ++#include <stdlib.h> + #include <time.h> + #include <kvstypes.h> + diff --git a/cad/gdt/pkg-descr b/cad/gdt/pkg-descr new file mode 100644 index 00000000000..0e7f03ea6f7 --- /dev/null +++ b/cad/gdt/pkg-descr @@ -0,0 +1,5 @@ +This is GDT (graphics data text) format translator written in C/C++ that +converts a binary gdsii file to a text format that is compact and +easy to parse. + +WWW: http://sourceforge.net/projects/gds2/ |