aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1998-02-04 16:37:51 +0800
committertg <tg@FreeBSD.org>1998-02-04 16:37:51 +0800
commitda38aaf9d8128f2cdf3f2a136afc35281ef3c5e8 (patch)
tree82e5ab359b7f060b22db0ece79693c8ce23946b2 /graphics
parent6e982ba1f07dca3588e51b25ff55831929d3bdf1 (diff)
downloadfreebsd-ports-gnome-da38aaf9d8128f2cdf3f2a136afc35281ef3c5e8.tar.gz
freebsd-ports-gnome-da38aaf9d8128f2cdf3f2a136afc35281ef3c5e8.tar.zst
freebsd-ports-gnome-da38aaf9d8128f2cdf3f2a136afc35281ef3c5e8.zip
Import graphviz port. graphviz is a graph visualization tool.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/graphviz/Makefile38
-rw-r--r--graphics/graphviz/distinfo1
-rw-r--r--graphics/graphviz/files/patch-ac42
-rw-r--r--graphics/graphviz/files/patch-ae14
-rw-r--r--graphics/graphviz/pkg-comment1
-rw-r--r--graphics/graphviz/pkg-descr14
-rw-r--r--graphics/graphviz/pkg-plist26
7 files changed, 136 insertions, 0 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
new file mode 100644
index 000000000000..b9184797f0c8
--- /dev/null
+++ b/graphics/graphviz/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: graphviz
+# Version required: 1.21
+# Date created: 03 Feb 1998
+# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= graphviz_1_21
+PKGNAME= graphviz-1.21
+CATEGORIES= graphics
+MASTER_SITES= # http://www.research.att.com/sw/tools/graphviz/
+EXTRACT_SUFX= .src.unix.tgz
+
+MAINTAINER= ports@FreeBSD.ORG
+
+RESTRICTED= "Can't be fetched without license"
+NO_PACKAGE= ${RESTRICTED}
+NO_CDROM= ${RESTRICTED}
+WRKSRC= ${WRKDIR}/src/src
+MAKEFILE= makefile
+MAN1= dot.1 dotty.1 lefty.1 neato.1 tcldot.1
+
+SELFILEDIR= ${WRKSRC}/cmd/lefty/ws/x11/libfilereq
+
+post-extract:
+ @${MV} ${SELFILEDIR}/dir.c ${SELFILEDIR}/Dir.c
+ @${MV} ${SELFILEDIR}/draw.c ${SELFILEDIR}/Draw.c
+ @${MV} ${SELFILEDIR}/path.c ${SELFILEDIR}/Path.c
+ @${MV} ${SELFILEDIR}/selfile.c ${SELFILEDIR}/SelFile.c
+ @${MV} ${SELFILEDIR}/sfinternal.h ${SELFILEDIR}/SFinternal.h
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/../doc/*.ps ${PREFIX}/share/doc/graphviz
+ ${INSTALL_DATA} ${WRKSRC}/../doc/*.html ${PREFIX}/share/doc/graphviz
+ @${GZIP_CMD} ${PREFIX}/share/doc/graphviz/*.ps
+
+.include <bsd.port.mk>
diff --git a/graphics/graphviz/distinfo b/graphics/graphviz/distinfo
new file mode 100644
index 000000000000..e9fee8ea5d29
--- /dev/null
+++ b/graphics/graphviz/distinfo
@@ -0,0 +1 @@
+MD5 (graphviz_1_21.src.unix.tgz) = 5825b237c178e62cb9d9aaff62b54a3e
diff --git a/graphics/graphviz/files/patch-ac b/graphics/graphviz/files/patch-ac
new file mode 100644
index 000000000000..1d661db9d1de
--- /dev/null
+++ b/graphics/graphviz/files/patch-ac
@@ -0,0 +1,42 @@
+--- cmd/lefty/os/unix/io.c.orig Mon Mar 10 21:45:50 1997
++++ cmd/lefty/os/unix/io.c Tue Jan 27 20:45:50 1998
+@@ -10,7 +10,11 @@
+ #include <fcntl.h>
+ #include <signal.h>
+ #include <sys/wait.h>
++#ifndef __FreeBSD__
+ #include <termio.h>
++#else
++#include <termios.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+@@ -271,7 +267,11 @@
+ static int findpty (int *fd) {
+ char *majorp, *minorp;
+ char pty[32], tty[32];
++#ifndef __FreeBSD__
+ struct termio tio;
++#else
++ struct termios tio;
++#endif
+
+ static char ptymajor[] = "pqrs";
+ static char ptyminor[] = "0123456789abcdefghijklmnopqrstuvwxyz";
+@@ -286,9 +278,15 @@
+ if ((fd[0] = open (pty, O_RDWR)) >= 0) {
+ sprintf (tty, "/dev/tty%c%c", *majorp, *minorp);
+ if ((fd[1] = open (tty, O_RDWR)) >= 0) {
++#ifndef __FreeBSD__
+ ioctl (fd[1], TCGETA, &tio);
+ tio.c_lflag &= ~ECHO;
+ ioctl (fd[1], TCSETA, &tio);
++#else
++ tcgetattr(fd[1], &tio);
++ tio.c_lflag &= ~ECHO;
++ tcsetattr(fd[1], TCSANOW, &tio);
++#endif
+ return 0;
+ }
+ close (fd[0]);
diff --git a/graphics/graphviz/files/patch-ae b/graphics/graphviz/files/patch-ae
new file mode 100644
index 000000000000..04663e842d86
--- /dev/null
+++ b/graphics/graphviz/files/patch-ae
@@ -0,0 +1,14 @@
+--- cmd/lefty/lefty.c.orig Mon Mar 24 18:01:54 1997
++++ cmd/lefty/lefty.c Tue Jan 27 20:25:04 1998
+@@ -29,7 +29,11 @@
+ #ifdef GNU
+ #define canread(fp) ((fp)->_IO_read_end > (fp)->_IO_read_ptr)
+ #else
++#ifdef __FreeBSD__
++#define canread(fp) ((fp)->_r >0)
++#else
+ #define canread(fp) ((fp)->_cnt > 0)
++#endif
+ #endif
+ #endif
+
diff --git a/graphics/graphviz/pkg-comment b/graphics/graphviz/pkg-comment
new file mode 100644
index 000000000000..a8d42c8017c3
--- /dev/null
+++ b/graphics/graphviz/pkg-comment
@@ -0,0 +1 @@
+Graph Visualization Software from AT&T and Bell Labs
diff --git a/graphics/graphviz/pkg-descr b/graphics/graphviz/pkg-descr
new file mode 100644
index 000000000000..7049fa96016f
--- /dev/null
+++ b/graphics/graphviz/pkg-descr
@@ -0,0 +1,14 @@
+Graph Visualization Software from AT&T Laboratories and
+Bell Laboratories (Lucent Technologies)
+
+Source code - 12/1/96
+
+These programs licensed under the terms described in the Web page
+http://www.research.att.com/orgs/ssr/book/reuse.
+
+The package contains:
+ dotty - customizable X windows graph viewer written in the Lefty editor
+ tcldot - customizable TCL/tk graph viewer written by John Ellson
+ dot - batch program for drawing directed graphs as hierarchies
+ neato - batch program for drawing undirected graphs using Kamada-Kawai
+ spring models
diff --git a/graphics/graphviz/pkg-plist b/graphics/graphviz/pkg-plist
new file mode 100644
index 000000000000..9ba46f40b861
--- /dev/null
+++ b/graphics/graphviz/pkg-plist
@@ -0,0 +1,26 @@
+bin/dot
+bin/dotty
+bin/lefty
+bin/lneato
+bin/neato
+man/man1/dot.1.gz
+man/man1/dotty.1.gz
+man/man1/lefty.1.gz
+man/man1/neato.1.gz
+man/man1/tcldot.1.gz
+lib/Tcldot/Tcldot.so.1.2
+lib/Tcldot/pkgIndex.tcl
+share/doc/graphviz/dotguide.ps.gz
+share/doc/graphviz/dotty.ps.gz
+share/doc/graphviz/gd.html
+share/doc/graphviz/lefty.ps.gz
+share/doc/graphviz/neatoguide.ps.gz
+share/doc/graphviz/tcldot.html
+share/lefty/dotty.lefty
+share/lefty/dotty_draw.lefty
+share/lefty/dotty_edit.lefty
+share/lefty/dotty_layout.lefty
+share/lefty/dotty_ui.lefty
+@dirrm lib/Tcldot
+@dirrm share/lefty
+@dirrm share/doc/graphviz