Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 1998 18:29:47 +0200 (CEST)
From:      tobez@plab.ku.dk
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/8051: New port: PostScript plotting library in C
Message-ID:  <199809251629.SAA20907@lion.plab.ku.dk>

next in thread | raw e-mail | index | archive | help

>Number:         8051
>Category:       ports
>Synopsis:       New port: PostScript plotting library in C
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 25 09:30:00 PDT 1998
>Last-Modified:
>Originator:     Anton Berezin
>Organization:
The Protein Laboratory, University of Copenhagen
>Release:        FreeBSD 2.2.7-RELEASE i386
>Environment:
>Description:
        graphics/cgraph
 
	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.

>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cgraph
#	cgraph/Makefile
#	cgraph/files
#	cgraph/files/Makefile.lib
#	cgraph/files/md5
#	cgraph/pkg
#	cgraph/pkg/COMMENT
#	cgraph/pkg/DESCR
#	cgraph/pkg/PLIST
#	cgraph/patches
#	cgraph/patches/patch-aa
#	cgraph/patches/patch-ee
#
echo c - cgraph
mkdir -p cgraph > /dev/null 2>&1
echo x - cgraph/Makefile
sed 's/^X//' >cgraph/Makefile << 'END-of-cgraph/Makefile'
X# New ports collection makefile for:	cgraph
X# Version required:	2.04
X# Date created:		25 September 1998
X# Whom:			Anton Berezin <tobez@plab.ku.dk>
X#
X# $Id$
X#
X
XDISTNAME=	Cgraph2.04
XPKGNAME=	Cgraph-2.4
XCATEGORIES=	graphics
XMASTER_SITES=	ftp://pinoko.berkeley.edu/pub/software/
X
XMAINTAINER=	tobez@plab.ku.dk
X
XWRKSRC=		${WRKDIR}/Cgraph/source
X
Xpost-extract:
X	@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/cgraph
X	@${INSTALL_DATA} ${WRKSRC}/../docs/cgraph.ps ${PREFIX}/share/doc/cgraph
X.endif
X.if !defined(NOPORTEXAMPLES)
X	@${MKDIR} ${PREFIX}/share/examples/cgraph
X	@${INSTALL_DATA} ${WRKSRC}/../examples/minimal/CGminimal.c ${PREFIX}/share/examples/cgraph
X	@${INSTALL_DATA} ${WRKSRC}/../examples/dash/dashlist.c ${PREFIX}/share/examples/cgraph
X	@${INSTALL_DATA} ${WRKSRC}/../examples/marker/markerlist.c ${PREFIX}/share/examples/cgraph
X	@${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFopt-lrLog.c ${PREFIX}/share/examples/cgraph
X	@${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFampspect.dat ${PREFIX}/share/examples/cgraph
X.endif
X	@${LDCONFIG} -m ${PREFIX}/lib
X
X.include <bsd.port.mk>
END-of-cgraph/Makefile
echo c - cgraph/files
mkdir -p cgraph/files > /dev/null 2>&1
echo x - cgraph/files/Makefile.lib
sed 's/^X//' >cgraph/files/Makefile.lib << 'END-of-cgraph/files/Makefile.lib'
X# makefile for Cgraph sources
X
XLIBDIR =	$(PREFIX)/lib
X
XSHLIB_MAJOR=	2
XSHLIB_MINOR=	4
XLIB=		cgraph
X
XSRCS=		bgdash.c bginit.c bgshow.c bgstart.c\
X		glcmp.c gxaxs.c gxlog.c gyaxs.c gylog.c\
X		gfont.c gcord.c gmlin.c gorig.c gprim.c\
X		grmle.c grset.c gmark.c ggraycolor.c gstrk.c\
X		gaxlabel.c gbott.c cgsave.c cgprint.c\
X		gtext.c gtrnc.c gmesh.c gstyl.c gwdth.c\
X		cg_newfuncs.c
X
Xbeforeinstall:
X	$(INSTALL) -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/cgraph.h ${PREFIX}/include
X
X.include <bsd.lib.mk>
END-of-cgraph/files/Makefile.lib
echo x - cgraph/files/md5
sed 's/^X//' >cgraph/files/md5 << 'END-of-cgraph/files/md5'
XMD5 (Cgraph2.04.tar.gz) = abd35dddd307a693467e59c518d80b97
END-of-cgraph/files/md5
echo c - cgraph/pkg
mkdir -p cgraph/pkg > /dev/null 2>&1
echo x - cgraph/pkg/COMMENT
sed 's/^X//' >cgraph/pkg/COMMENT << 'END-of-cgraph/pkg/COMMENT'
XCgraph: PostScript plotting library in C
END-of-cgraph/pkg/COMMENT
echo x - cgraph/pkg/DESCR
sed 's/^X//' >cgraph/pkg/DESCR << 'END-of-cgraph/pkg/DESCR'
XCgraph: PostScript plotting library in C
X
XThis is a C source code library that contains a set of C functions
Xthat generate PostScript for publication quality scientific plots.
XIf you have a PostScript previewer, it is possible to launch the
Xviewer automatically on generated PS/EPS files.  The Cgraph Library
Xsource code, examples, and documentation are in the public domain.
END-of-cgraph/pkg/DESCR
echo x - cgraph/pkg/PLIST
sed 's/^X//' >cgraph/pkg/PLIST << 'END-of-cgraph/pkg/PLIST'
Xinclude/cgraph.h
Xlib/libcgraph.a
Xlib/libcgraph_p.a
Xlib/libcgraph.so.2.4
X@exec /sbin/ldconfig -m %B
X@unexec /sbin/ldconfig -R
Xshare/doc/cgraph/cgraph.ps
Xshare/examples/cgraph/CGminimal.c
Xshare/examples/cgraph/dashlist.c
Xshare/examples/cgraph/markerlist.c
Xshare/examples/cgraph/TFopt-lrLog.c
Xshare/examples/cgraph/TFampspect.dat
X@dirrm share/doc/cgraph
X@dirrm share/examples/cgraph
END-of-cgraph/pkg/PLIST
echo c - cgraph/patches
mkdir -p cgraph/patches > /dev/null 2>&1
echo x - cgraph/patches/patch-aa
sed 's/^X//' >cgraph/patches/patch-aa << 'END-of-cgraph/patches/patch-aa'
X--- gfont.c.orig	Fri Sep 25 17:49:17 1998
X+++ gfont.c	Fri Sep 25 17:49:30 1998
X@@ -5,7 +5,7 @@
X /*	   9-09-87  starting					  */
X /******************************************************************/
X 
X-/*	Modified on 5/13/92 to work on NeXt's
X+/*	Modified on 5/13/92 to work on NeXt's */
X 
X 
X #include <string.h>								  
END-of-cgraph/patches/patch-aa
echo x - cgraph/patches/patch-ee
sed 's/^X//' >cgraph/patches/patch-ee << 'END-of-cgraph/patches/patch-ee'
X--- ../examples/loglog/TFopt-lrLog.c.orig	Fri Sep 25 18:05:29 1998
X+++ ../examples/loglog/TFopt-lrLog.c	Fri Sep 25 18:05:38 1998
X@@ -14,7 +14,6 @@
X #include <stdio.h>
X #include <math.h>
X #include <string.h>
X-#include <streams/streams.h>
X #include <cgraph.h>
X 
X #define PI	3.141592654
END-of-cgraph/patches/patch-ee
exit

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809251629.SAA20907>