aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2007-04-28 16:56:55 +0000
committerHiroki Sato <hrs@FreeBSD.org>2007-04-28 16:56:55 +0000
commit33b372f122093c65b1f252f0da39cacb0924669c (patch)
tree06d0f61c176169f6dde49949b9448eb16f96b884 /cad
parent3a76ba81750f7a69e0b35801c156959d498ef962 (diff)
downloadports-33b372f122093c65b1f252f0da39cacb0924669c.tar.gz
ports-33b372f122093c65b1f252f0da39cacb0924669c.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/Makefile1
-rw-r--r--cad/gdsreader/Makefile31
-rw-r--r--cad/gdsreader/distinfo3
-rw-r--r--cad/gdsreader/files/patch-Makefile43
-rw-r--r--cad/gdsreader/pkg-descr4
5 files changed, 82 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index bd07f27215c6..7b2faef39099 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -22,6 +22,7 @@
SUBDIR += fandango
SUBDIR += feappv
SUBDIR += freehdl
+ SUBDIR += gdsreader
SUBDIR += geda
SUBDIR += geda-docs
SUBDIR += geda-examples
diff --git a/cad/gdsreader/Makefile b/cad/gdsreader/Makefile
new file mode 100644
index 000000000000..ecce08bc5a73
--- /dev/null
+++ b/cad/gdsreader/Makefile
@@ -0,0 +1,31 @@
+# Ports collection makefile for: gdsreader
+# Date created: Sat, Apr 28, 2007
+# Whom: Hiroki Sato <hrs@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gdsreader
+PORTVERSION= 0.3.2
+CATEGORIES= cad
+MASTER_SITES= http://home.netcom.com/~serbanp/
+DISTNAME= GDSreader.${PORTVERSION}
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= GDS2 stream file to Postscript and HP/GL converter
+
+MAN1= gdsreader.1 maptolayer.1
+PORTDOCS= README README.povray ChangeLog
+EXFILES= layers.config test.gds layers.config.7HP.5ML \
+ layers.config.5AM.4ML
+PLIST_FILES= bin/gdsreader bin/maptolayer \
+ ${EXFILES:S,^,${EXAMPLESDIR_REL}/,}
+PLIST_DIRS= ${EXAMPLESDIR_REL}
+
+post-install:
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-data
+.if !defined(NOPORTDOCS)
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-docs
+.endif
+
+.include <bsd.port.mk>
diff --git a/cad/gdsreader/distinfo b/cad/gdsreader/distinfo
new file mode 100644
index 000000000000..9081f087aab0
--- /dev/null
+++ b/cad/gdsreader/distinfo
@@ -0,0 +1,3 @@
+MD5 (GDSreader.0.3.2.tar.gz) = 3ea1e7a287be0af942db2b12187d7978
+SHA256 (GDSreader.0.3.2.tar.gz) = dc33bd149438c383feaff124803e2899ed444b9836d47a77ea557af2731c3b80
+SIZE (GDSreader.0.3.2.tar.gz) = 82649
diff --git a/cad/gdsreader/files/patch-Makefile b/cad/gdsreader/files/patch-Makefile
new file mode 100644
index 000000000000..7ae6e5cc6e78
--- /dev/null
+++ b/cad/gdsreader/files/patch-Makefile
@@ -0,0 +1,43 @@
+--- Makefile.orig Thu Feb 24 12:15:23 2005
++++ Makefile Sun Apr 29 01:04:11 2007
+@@ -1,10 +1,15 @@
+
+-CC = gcc
+-INSTROOT=/usr/local
++CC?= gcc
++INSTROOT?=${PREFIX}
+ BINDIR=$(INSTROOT)/bin
+-DOCDIR=$(INSTROOT)/doc/gdsreader-0.3.2
++DOCDIR=$(INSTROOT)/share/doc/gdsreader
++EXDIR=$(INSTROOT)/share/examples/gdsreader
+ MANDIR=$(INSTROOT)/man/man1
+
++INSTALL_PROGRAM?= ${BSD_INSTALL_PROGRAM}
++INSTALL_DATA?= ${BSD_INSTALL_DATA}
++INSTALL_MAN?= ${BSD_INSTALL_MAN}
++
+ #CFLAGS = -I.
+ CFLAGS = -I. -Wall -g #-pg
+ LDFLAGS = #-pg
+@@ -19,11 +24,16 @@
+ ${CC} ${LDFLAGS} -o gdsreader ${OBJS} -lm
+
+ install: gdsreader maptolayer
+- mkdir -p $(DOCDIR) && cp -f COPYING README README.povray \
+- layers.config test.gds layers.config.7HP.5ML ChangeLog \
+- layers.config.5AM.4ML $(DOCDIR)
+- mkdir -p $(BINDIR) && cp -f maptolayer gdsreader $(BINDIR)
+- mkdir -p $(MANDIR) && cp -f maptolayer.1 gdsreader.1 $(MANDIR)
++ mkdir -p $(BINDIR) && ${INSTALL_PROGRAM} maptolayer gdsreader $(BINDIR)
++ mkdir -p $(MANDIR) && ${INSTALL_MAN} maptolayer.1 gdsreader.1 $(MANDIR)
++
++install-docs:
++ mkdir -p $(DOCDIR) && ${INSTALL_DATA} README README.povray \
++ ChangeLog $(DOCDIR)
++
++install-data:
++ mkdir -p $(EXDIR) && ${INSTALL_DATA} layers.config test.gds \
++ layers.config.7HP.5ML layers.config.5AM.4ML $(EXDIR)
+
+ maptolayer: maptolayer.c
+ $(CC) -o maptolayer maptolayer.c
diff --git a/cad/gdsreader/pkg-descr b/cad/gdsreader/pkg-descr
new file mode 100644
index 000000000000..12415d950490
--- /dev/null
+++ b/cad/gdsreader/pkg-descr
@@ -0,0 +1,4 @@
+This software has as target the printing/plotting/displaying of Calma (GDSii)
+files without using true layout editors.
+
+WWW: http://home.netcom.com/~serbanp/