summaryrefslogtreecommitdiff
path: root/graphics/Cgraph
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-12-24 07:10:15 +0000
committerSteve Price <steve@FreeBSD.org>1998-12-24 07:10:15 +0000
commite615b3dbed0e8a847a5d25b29db336dab9de4d4e (patch)
tree243a1baef8dc67a7671e65a451a2e5f7e70d3077 /graphics/Cgraph
parentActivate the dcdflib port. (diff)
Initial import of Cgraph version 2.04.
A PostScript plotting library in C. PR: 8051 Submitted by: Anton Berezin <tobez@plab.ku.dk>
Notes
Notes: svn path=/head/; revision=15565
Diffstat (limited to 'graphics/Cgraph')
-rw-r--r--graphics/Cgraph/Makefile41
-rw-r--r--graphics/Cgraph/distinfo1
-rw-r--r--graphics/Cgraph/files/Makefile.lib20
-rw-r--r--graphics/Cgraph/files/patch-aa11
-rw-r--r--graphics/Cgraph/files/patch-ee10
-rw-r--r--graphics/Cgraph/pkg-comment1
-rw-r--r--graphics/Cgraph/pkg-descr7
-rw-r--r--graphics/Cgraph/pkg-plist15
8 files changed, 106 insertions, 0 deletions
diff --git a/graphics/Cgraph/Makefile b/graphics/Cgraph/Makefile
new file mode 100644
index 000000000000..1c44688a068f
--- /dev/null
+++ b/graphics/Cgraph/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: cgraph
+# Version required: 2.04
+# Date created: 25 September 1998
+# Whom: Anton Berezin <tobez@plab.ku.dk>
+#
+# $Id$
+#
+
+DISTNAME= Cgraph2.04
+PKGNAME= Cgraph-2.04
+CATEGORIES= graphics
+MASTER_SITES= ftp://pinoko.berkeley.edu/pub/software/
+
+MAINTAINER= tobez@plab.ku.dk
+
+WRKSRC= ${WRKDIR}/Cgraph/source
+
+.include <bsd.port.pre.mk>
+
+post-extract:
+ @${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/cgraph
+ @${INSTALL_DATA} ${WRKSRC}/../docs/cgraph.ps ${PREFIX}/share/doc/cgraph
+.endif
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${PREFIX}/share/examples/cgraph
+ @${INSTALL_DATA} ${WRKSRC}/../examples/minimal/CGminimal.c ${PREFIX}/share/examples/cgraph
+ @${INSTALL_DATA} ${WRKSRC}/../examples/dash/dashlist.c ${PREFIX}/share/examples/cgraph
+ @${INSTALL_DATA} ${WRKSRC}/../examples/marker/markerlist.c ${PREFIX}/share/examples/cgraph
+ @${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFopt-lrLog.c ${PREFIX}/share/examples/cgraph
+ @${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFampspect.dat ${PREFIX}/share/examples/cgraph
+.endif
+.if ${PORTOBJFORMAT} == "aout"
+ @${LN} -sf libcgraph.so.2.4 ${PREFIX}/lib/libcgraph.so
+.endif
+ @${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
+
+.include <bsd.port.post.mk>
diff --git a/graphics/Cgraph/distinfo b/graphics/Cgraph/distinfo
new file mode 100644
index 000000000000..d4880c52b910
--- /dev/null
+++ b/graphics/Cgraph/distinfo
@@ -0,0 +1 @@
+MD5 (Cgraph2.04.tar.gz) = abd35dddd307a693467e59c518d80b97
diff --git a/graphics/Cgraph/files/Makefile.lib b/graphics/Cgraph/files/Makefile.lib
new file mode 100644
index 000000000000..6d0547251126
--- /dev/null
+++ b/graphics/Cgraph/files/Makefile.lib
@@ -0,0 +1,20 @@
+# makefile for Cgraph sources
+
+LIBDIR = ${PREFIX}/lib
+
+SHLIB_MAJOR= 2
+SHLIB_MINOR= 4
+LIB= cgraph
+
+SRCS= bgdash.c bginit.c bgshow.c bgstart.c\
+ glcmp.c gxaxs.c gxlog.c gyaxs.c gylog.c\
+ gfont.c gcord.c gmlin.c gorig.c gprim.c\
+ grmle.c grset.c gmark.c ggraycolor.c gstrk.c\
+ gaxlabel.c gbott.c cgsave.c cgprint.c\
+ gtext.c gtrnc.c gmesh.c gstyl.c gwdth.c\
+ cg_newfuncs.c
+
+beforeinstall:
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/cgraph.h ${PREFIX}/include
+
+.include <bsd.lib.mk>
diff --git a/graphics/Cgraph/files/patch-aa b/graphics/Cgraph/files/patch-aa
new file mode 100644
index 000000000000..d2b1ea0418c5
--- /dev/null
+++ b/graphics/Cgraph/files/patch-aa
@@ -0,0 +1,11 @@
+--- gfont.c.orig Fri Sep 25 17:49:17 1998
++++ gfont.c Fri Sep 25 17:49:30 1998
+@@ -5,7 +5,7 @@
+ /* 9-09-87 starting */
+ /******************************************************************/
+
+-/* Modified on 5/13/92 to work on NeXt's
++/* Modified on 5/13/92 to work on NeXt's */
+
+
+ #include <string.h>
diff --git a/graphics/Cgraph/files/patch-ee b/graphics/Cgraph/files/patch-ee
new file mode 100644
index 000000000000..d37095814736
--- /dev/null
+++ b/graphics/Cgraph/files/patch-ee
@@ -0,0 +1,10 @@
+--- ../examples/loglog/TFopt-lrLog.c.orig Fri Sep 25 18:05:29 1998
++++ ../examples/loglog/TFopt-lrLog.c Fri Sep 25 18:05:38 1998
+@@ -14,7 +14,6 @@
+ #include <stdio.h>
+ #include <math.h>
+ #include <string.h>
+-#include <streams/streams.h>
+ #include <cgraph.h>
+
+ #define PI 3.141592654
diff --git a/graphics/Cgraph/pkg-comment b/graphics/Cgraph/pkg-comment
new file mode 100644
index 000000000000..8cc944089ca5
--- /dev/null
+++ b/graphics/Cgraph/pkg-comment
@@ -0,0 +1 @@
+A PostScript plotting library in C
diff --git a/graphics/Cgraph/pkg-descr b/graphics/Cgraph/pkg-descr
new file mode 100644
index 000000000000..44905efdefae
--- /dev/null
+++ b/graphics/Cgraph/pkg-descr
@@ -0,0 +1,7 @@
+Cgraph: PostScript plotting library in C
+
+This is a C source code library that contains a set of C functions
+that generate PostScript for publication quality scientific plots.
+If you have a PostScript previewer, it is possible to launch the
+viewer automatically on generated PS/EPS files. The Cgraph Library
+source code, examples, and documentation are in the public domain.
diff --git a/graphics/Cgraph/pkg-plist b/graphics/Cgraph/pkg-plist
new file mode 100644
index 000000000000..5ea4606a9b3b
--- /dev/null
+++ b/graphics/Cgraph/pkg-plist
@@ -0,0 +1,15 @@
+include/cgraph.h
+lib/libcgraph.a
+lib/libcgraph_p.a
+lib/libcgraph.so
+lib/libcgraph.so.2.4
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
+share/doc/cgraph/cgraph.ps
+share/examples/cgraph/CGminimal.c
+share/examples/cgraph/dashlist.c
+share/examples/cgraph/markerlist.c
+share/examples/cgraph/TFopt-lrLog.c
+share/examples/cgraph/TFampspect.dat
+@dirrm share/doc/cgraph
+@dirrm share/examples/cgraph