mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Import graphviz port. graphviz is a graph visualization tool.
This commit is contained in:
parent
fb04f0b2bd
commit
845e38439d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9586
38
graphics/graphviz/Makefile
Normal file
38
graphics/graphviz/Makefile
Normal file
@ -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>
|
1
graphics/graphviz/distinfo
Normal file
1
graphics/graphviz/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (graphviz_1_21.src.unix.tgz) = 5825b237c178e62cb9d9aaff62b54a3e
|
42
graphics/graphviz/files/patch-ac
Normal file
42
graphics/graphviz/files/patch-ac
Normal file
@ -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]);
|
14
graphics/graphviz/files/patch-ae
Normal file
14
graphics/graphviz/files/patch-ae
Normal file
@ -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
|
||||
|
1
graphics/graphviz/pkg-comment
Normal file
1
graphics/graphviz/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Graph Visualization Software from AT&T and Bell Labs
|
14
graphics/graphviz/pkg-descr
Normal file
14
graphics/graphviz/pkg-descr
Normal file
@ -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
|
26
graphics/graphviz/pkg-plist
Normal file
26
graphics/graphviz/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user