diff options
author | jtb <jtb> | 2001-02-01 04:34:23 +0000 |
---|---|---|
committer | jtb <jtb> | 2001-02-01 04:34:23 +0000 |
commit | 4459e72d77fbf71a705fec4a7a3f53ba3fcf13ab (patch) | |
tree | 8accd48c17d01a83488925931208450294d538d5 /graphics | |
parent | 6487800ac367c8007a530065d804e16963f98dd1 (diff) | |
download | pkgsrc-4459e72d77fbf71a705fec4a7a3f53ba3fcf13ab.tar.gz |
Initial import of pgraf:
Portable graphics system
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/pgraf/Makefile | 25 | ||||
-rw-r--r-- | graphics/pgraf/files/md5 | 3 | ||||
-rw-r--r-- | graphics/pgraf/files/patch-sum | 6 | ||||
-rw-r--r-- | graphics/pgraf/patches/patch-aa | 8 | ||||
-rw-r--r-- | graphics/pgraf/patches/patch-ab | 22 | ||||
-rw-r--r-- | graphics/pgraf/patches/patch-ac | 33 | ||||
-rw-r--r-- | graphics/pgraf/patches/patch-ad | 13 | ||||
-rw-r--r-- | graphics/pgraf/pkg/COMMENT | 1 | ||||
-rw-r--r-- | graphics/pgraf/pkg/DESCR | 10 | ||||
-rw-r--r-- | graphics/pgraf/pkg/PLIST | 27 |
10 files changed, 148 insertions, 0 deletions
diff --git a/graphics/pgraf/Makefile b/graphics/pgraf/Makefile new file mode 100644 index 00000000000..3765cf5943b --- /dev/null +++ b/graphics/pgraf/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ + +DISTNAME= pgraf-20010131 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_LOCAL} + +MAINTAINER= jtb@netbsd.org + +NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL +USE_X11= YES + +post-install: + ${INSTALL_DATA} ${WRKSRC}/include/pgraf.h ${PREFIX}/include + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pgraf + ${INSTALL_DATA} ${WRKSRC}/doc/pgraf_paper ${PREFIX}/share/doc/pgraf + ${INSTALL_DATA} ${WRKSRC}/man/man1/pgraf.1 ${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/man/man3/pgraf.3 ${PREFIX}/man/man3 + ${INSTALL_DATA} ${WRKSRC}/man/man5/pgraf.5 ${PREFIX}/man/man5 + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pgraf + @for f in ${WRKSRC}/metagens/*.r ${WRKSRC}/tests/*; do \ + i="${INSTALL_DATA} $$f ${PREFIX}/share/examples/pgraf/"; \ + ${ECHO} $$i; $$i; \ + done + +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/pgraf/files/md5 b/graphics/pgraf/files/md5 new file mode 100644 index 00000000000..aa5507af39c --- /dev/null +++ b/graphics/pgraf/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ + +MD5 (pgraf-20010131.tar.gz) = 74cee7a5452702fb2c60f4bf723b2471 diff --git a/graphics/pgraf/files/patch-sum b/graphics/pgraf/files/patch-sum new file mode 100644 index 00000000000..248af9d3d79 --- /dev/null +++ b/graphics/pgraf/files/patch-sum @@ -0,0 +1,6 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ + +MD5 (patch-aa) = 813da71372044225354b8a0b93046271 +MD5 (patch-ab) = 9281fdb296df194a75d6956fd858eb0c +MD5 (patch-ac) = 485a69c9cf7ec9a558c69c17ac847a02 +MD5 (patch-ad) = 7210d9b329641fb5d11da15a1c2cc87d diff --git a/graphics/pgraf/patches/patch-aa b/graphics/pgraf/patches/patch-aa new file mode 100644 index 00000000000..c88b72191cd --- /dev/null +++ b/graphics/pgraf/patches/patch-aa @@ -0,0 +1,8 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ + +--- /dev/null Wed Jan 31 10:11:32 2001 ++++ Makefile +@@ -0,0 +1,3 @@ ++SUBDIR= metagens lolevels ++ ++.include <bsd.subdir.mk> diff --git a/graphics/pgraf/patches/patch-ab b/graphics/pgraf/patches/patch-ab new file mode 100644 index 00000000000..d5f779b7fd2 --- /dev/null +++ b/graphics/pgraf/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ + +--- metagens/Makefile.orig Mon Dec 11 17:56:42 1995 ++++ metagens/Makefile +@@ -1,8 +1,15 @@ + # Note that pgc is not technically a library, so ranlib doesn't + # have to be run on it. +-CC = gcc +-CFLAGS = -O ++#CC = gcc ++#CFLAGS = -O ++ ++all : libpgc.a ++ + libpgc.a : pgc.c + $(CC) $(CFLAGS) -c pgc.c; mv pgc.o libpgc.a ++ ++install : ++ ${BSD_INSTALL_DATA} libpgc.a ${PREFIX}/lib ++ + clean : + rm -f libpgc.a *.bak *~ diff --git a/graphics/pgraf/patches/patch-ac b/graphics/pgraf/patches/patch-ac new file mode 100644 index 00000000000..2eccf58c75d --- /dev/null +++ b/graphics/pgraf/patches/patch-ac @@ -0,0 +1,33 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ + +--- lolevels/Makefile.orig Wed Jan 31 09:58:57 2001 ++++ lolevels/Makefile +@@ -2,20 +2,23 @@ + # so a failure to find these won't stop the compilation of the others. + # + PROGS = pghp pgtek pgx pgfig pgps pgeps pgsps pgx +-BINDIR = /usr/local/bin +-CC = gcc +-CFLAGS = -O -I../../include -I/usr/local/X11R6/include ++BINDIR = ${PREFIX}/bin ++#CC = gcc ++CFLAGS += -I../../include -I${X11BASE}/include + # Put the location of X11 libraries here, e. g., + # X11FLAGS = -L/usr/openwin/lib for Open Windows. + # If X11 libraries are in /usr/lib or /usr/local/lib, this can be left blank. +-X11FLAGS = -L/usr/X11R6/lib ++X11FLAGS = -Wl,-R${X11BASE}/lib -L${X11BASE}/lib ++ ++all : system ++ + system : $(PROGS) + touch system + clean : + -rm -f $(PROGS) core + -rm -f *.o *.bak *~ + install : +- -cp $(PROGS) $(BINDIR) ++ -$(BSD_INSTALL_PROGRAM) $(PROGS) $(BINDIR) + pghp : pg.o pghp.o + $(CC) -o pghp pg.o pghp.o -lm + pgtek : pg.o pgtek.o diff --git a/graphics/pgraf/patches/patch-ad b/graphics/pgraf/patches/patch-ad new file mode 100644 index 00000000000..2d03bc060f4 --- /dev/null +++ b/graphics/pgraf/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ + +--- lolevels/pgtek.c.orig Wed Jan 31 10:14:12 2001 ++++ lolevels/pgtek.c +@@ -168,7 +168,7 @@ + { + char dummy[82]; + char gs,us,esc,ff,ctlx; +- gets(dummy); ++ fgets(dummy, 82, stdin); + gs = 29; + us = 31; + esc = 27; diff --git a/graphics/pgraf/pkg/COMMENT b/graphics/pgraf/pkg/COMMENT new file mode 100644 index 00000000000..0e7aa3348d8 --- /dev/null +++ b/graphics/pgraf/pkg/COMMENT @@ -0,0 +1 @@ +Portable graphics system diff --git a/graphics/pgraf/pkg/DESCR b/graphics/pgraf/pkg/DESCR new file mode 100644 index 00000000000..53d7b26fd8d --- /dev/null +++ b/graphics/pgraf/pkg/DESCR @@ -0,0 +1,10 @@ +Pgraf is a portable graphics package for the presentation of +scientific data. The package is designed to operate on the simplest +of graphics devices, with implementation on a new device requiring +only the creation of a small set of low level subroutines. The +package is written in the C language, with function calls restricted +to the standard input-output and math libraries. However, the +graphics is accessible from both C and Fortran 77. The functions +provided include simple graphing, contouring of two dimensional +fields, and perspective viewing of three dimensional wire frame +structures. diff --git a/graphics/pgraf/pkg/PLIST b/graphics/pgraf/pkg/PLIST new file mode 100644 index 00000000000..8e9416ef048 --- /dev/null +++ b/graphics/pgraf/pkg/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/01 04:34:23 jtb Exp $ +bin/pgeps +bin/pgfig +bin/pghp +bin/pgps +bin/pgsps +bin/pgtek +bin/pgx +include/pgraf.h +lib/libpgc.a +man/man1/pgraf.1 +man/man3/pgraf.3 +man/man5/pgraf.5 +share/doc/pgraf/pgraf_paper +share/examples/pgraf/READ_ME +share/examples/pgraf/example1.c +share/examples/pgraf/example3.c +share/examples/pgraf/example4.c +share/examples/pgraf/gridc.c +share/examples/pgraf/house.c +share/examples/pgraf/markc.c +share/examples/pgraf/pgdemo.r +share/examples/pgraf/pgraf.r +share/examples/pgraf/radar.c +share/examples/pgraf/surface.c +@dirrm share/examples/pgraf +@dirrm share/doc/pgraf |