summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-02-14 11:52:10 +0000
committerjtb <jtb@pkgsrc.org>2001-02-14 11:52:10 +0000
commit54759976e97947ac024fda82a380005a6d4b16ad (patch)
treef97bdaf7e954f6320fd778024a72502d503b5b12 /graphics
parent4b15a250a215da3679a7e3dabc638122afa6fb0c (diff)
downloadpkgsrc-54759976e97947ac024fda82a380005a6d4b16ad.tar.gz
Initial import of yplot:
Yorick interface to PLplot
Diffstat (limited to 'graphics')
-rw-r--r--graphics/yplot/Makefile39
-rw-r--r--graphics/yplot/files/md53
-rw-r--r--graphics/yplot/files/patch-sum6
-rw-r--r--graphics/yplot/patches/patch-aa32
-rw-r--r--graphics/yplot/patches/patch-ab73
-rw-r--r--graphics/yplot/patches/patch-ac31
-rw-r--r--graphics/yplot/patches/patch-ad14
-rw-r--r--graphics/yplot/pkg/COMMENT1
-rw-r--r--graphics/yplot/pkg/DESCR21
-rw-r--r--graphics/yplot/pkg/PLIST16
10 files changed, 236 insertions, 0 deletions
diff --git a/graphics/yplot/Makefile b/graphics/yplot/Makefile
new file mode 100644
index 00000000000..a55f2e6edad
--- /dev/null
+++ b/graphics/yplot/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/02/14 11:52:10 jtb Exp $
+
+DISTNAME= yplot-1.0.3
+CATEGORIES= graphics math
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=yplot/}
+
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= http://yplot.sourceforge.net/
+
+DEPENDS+= yorick>=1.4:../../math/yorick
+DEPENDS+= plplot>=5.0.2:../../graphics/plplot
+
+EVAL_PREFIX+= PLPLOT_PREFIX=plplot
+
+MAKEFILE= Makefile.build
+
+pre-build:
+ ${MKDIR} ${WRKSRC}/plplot
+ ${CP} ${PLPLOT_PREFIX}/include/plplot/*.h ${WRKSRC}/plplot
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/yplot ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/yplotl ${PREFIX}/bin
+ @for f in yplot.i yplotl.i yplot_body.i; do \
+ i="${INSTALL_DATA} ${WRKSRC}/$$f \
+ ${PREFIX}/share/yorick/1.4/startup/"; \
+ ${ECHO} $$i; $$i; \
+ done
+ ${INSTALL_DATA} ${WRKSRC}/doc/yplot.doc \
+ ${PREFIX}/share/yorick/1.4/doc/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/yplot
+ ${INSTALL_DATA} ${WRKSRC}/doc/ytut.ps ${PREFIX}/share/doc/yplot
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/yplot
+ @for f in ${WRKSRC}/doc/*.i; do \
+ i="${INSTALL_DATA} $$f ${PREFIX}/share/examples/yplot/"; \
+ ${ECHO} $$i; $$i; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/yplot/files/md5 b/graphics/yplot/files/md5
new file mode 100644
index 00000000000..6235eca0d27
--- /dev/null
+++ b/graphics/yplot/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/02/14 11:52:10 jtb Exp $
+
+MD5 (yplot-1.0.3.tar.gz) = ff911e80ca3019ca25fc7de405050b96
diff --git a/graphics/yplot/files/patch-sum b/graphics/yplot/files/patch-sum
new file mode 100644
index 00000000000..1942f00853a
--- /dev/null
+++ b/graphics/yplot/files/patch-sum
@@ -0,0 +1,6 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/02/14 11:52:10 jtb Exp $
+
+MD5 (patch-aa) = 6a896fcc5cd5e8825832d5fc0f75c614
+MD5 (patch-ab) = 91624197aad951035bb74437504a2f3d
+MD5 (patch-ac) = 951403ce7a448b7f28ef15414267287a
+MD5 (patch-ad) = 2be91afcfe883660bac0798dd6a65b74
diff --git a/graphics/yplot/patches/patch-aa b/graphics/yplot/patches/patch-aa
new file mode 100644
index 00000000000..8d6fe0645e0
--- /dev/null
+++ b/graphics/yplot/patches/patch-aa
@@ -0,0 +1,32 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/02/14 11:52:11 jtb Exp $
+
+--- Makefile.build.orig Fri Sep 3 21:59:31 1999
++++ Makefile.build
+@@ -8,8 +8,7 @@
+ ROOT=
+
+ # These flags needed to compile ps.c and ljiip.c driver routines
+-CFLAGS = -O -DSTDC_HEADERS=1 -DPAD_ARRAY=1 -I. -I/usr/lib/yorick/1.4/h \
+- -I/usr/lib/plplot/include -DDOUBLE
++CFLAGS = -O -DSTDC_HEADERS=1 -DPAD_ARRAY=1 -I. -DDOUBLE
+
+ ##############################################
+
+@@ -46,7 +45,7 @@
+ "Nameclash! must get rid of Makefile so this can work"; false ; fi
+ yorick -batch make.i yplotl yplotl.i
+ mv -f Makefile Makefile_yplotl
+- make -f Makefile_yplotl
++ make -f Makefile_yplotl PKG_LIBS="`plplot_linkage` -lyorm"
+
+ ##############################################
+
+@@ -64,7 +63,7 @@
+ "Nameclash! must get rid of Makefile so this can work"; false ; fi
+ yorick -batch make.i yplot yplot.i
+ mv -f Makefile Makefile_yplot
+- make -f Makefile_yplot
++ make -f Makefile_yplot PKG_LIBS="`plplot_linkage` -lyorm"
+
+ # generate doc/yplot.doc using local yplot and mkdoc
+ doc/yplot.doc: yplot yplot_doc.csh
diff --git a/graphics/yplot/patches/patch-ab b/graphics/yplot/patches/patch-ab
new file mode 100644
index 00000000000..8b2a0d0b5fd
--- /dev/null
+++ b/graphics/yplot/patches/patch-ab
@@ -0,0 +1,73 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/02/14 11:52:11 jtb Exp $
+
+--- ps.c.orig Wed Feb 14 09:22:25 2001
++++ ps.c
+@@ -28,12 +28,12 @@
+
+ PLplot PostScript device driver.
+ */
+-#include "plDevs.h"
++#include "plplot/plDevs.h"
+
+ #ifdef PLD_ps
+
+-#include "plplotP.h"
+-#include "drivers.h"
++#include "plplot/plplotP.h"
++#include "plplot/drivers.h"
+
+ #include <string.h>
+ #include <time.h>
+@@ -133,8 +133,8 @@
+
+ dev = (PSDev *) pls->dev;
+
+- dev->xold = UNDEFINED;
+- dev->yold = UNDEFINED;
++ dev->xold = PL_UNDEFINED;
++ dev->yold = PL_UNDEFINED;
+
+ plP_setpxl(pxlx, pxly);
+
+@@ -400,8 +400,8 @@
+ {
+ PSDev *dev = (PSDev *) pls->dev;
+
+- dev->xold = UNDEFINED;
+- dev->yold = UNDEFINED;
++ dev->xold = PL_UNDEFINED;
++ dev->yold = PL_UNDEFINED;
+
+ pls->page++;
+ fprintf(OF, "%%%%Page: %d %d\n", (int) pls->page, (int) pls->page);
+@@ -487,8 +487,8 @@
+
+ fprintf(OF, " S\n%d W", width);
+
+- dev->xold = UNDEFINED;
+- dev->yold = UNDEFINED;
++ dev->xold = PL_UNDEFINED;
++ dev->yold = PL_UNDEFINED;
+ break;
+ }
+ case PLSTATE_COLOR0:
+@@ -514,7 +514,7 @@
+
+ /* Reinitialize current point location. */
+
+- if (dev->xold != UNDEFINED && dev->yold != UNDEFINED) {
++ if (dev->xold != PL_UNDEFINED && dev->yold != PL_UNDEFINED) {
+ fprintf(OF, " %d %d M \n", (int)dev->xold, (int)dev->yold);
+ }
+ }
+@@ -591,8 +591,8 @@
+ pls->bytecnt += strlen(outbuf);
+ pls->linepos += 21;
+ }
+- dev->xold = UNDEFINED;
+- dev->yold = UNDEFINED;
++ dev->xold = PL_UNDEFINED;
++ dev->yold = PL_UNDEFINED;
+ fprintf(OF, " F ");
+ }
+
diff --git a/graphics/yplot/patches/patch-ac b/graphics/yplot/patches/patch-ac
new file mode 100644
index 00000000000..372c92bb643
--- /dev/null
+++ b/graphics/yplot/patches/patch-ac
@@ -0,0 +1,31 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/02/14 11:52:11 jtb Exp $
+
+--- ljiip.c.orig Wed Feb 14 09:23:57 2001
++++ ljiip.c
+@@ -28,12 +28,12 @@
+ compression can speed up the printing up to 3x
+
+ */
+-#include "plDevs.h"
++#include "plplot/plDevs.h"
+
+ #ifdef PLD_ljii
+
+-#include "plplotP.h"
+-#include "drivers.h"
++#include "plplot/plplotP.h"
++#include "plplot/drivers.h"
+ #include <math.h>
+ #include <string.h>
+
+@@ -119,8 +119,8 @@
+
+ dev = plAllocDev(pls);
+
+- dev->xold = UNDEFINED;
+- dev->yold = UNDEFINED;
++ dev->xold = PL_UNDEFINED;
++ dev->yold = PL_UNDEFINED;
+ dev->xmin = 0;
+ dev->ymin = 0;
+
diff --git a/graphics/yplot/patches/patch-ad b/graphics/yplot/patches/patch-ad
new file mode 100644
index 00000000000..f1faa5fa2f9
--- /dev/null
+++ b/graphics/yplot/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1.1.1 2001/02/14 11:52:11 jtb Exp $
+
+--- pplot.c.orig Wed Feb 14 09:24:41 2001
++++ pplot.c
+@@ -1,7 +1,7 @@
+ #define DOUBLE
+-#include "plplot.h"
+-#include <stdio.h>
+ #include <math.h>
++#include "plplot/plplot.h"
++#include <stdio.h>
+ #include <stdlib.h>
+
+ #define WORD_CHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZ_1234567890abcdefghijklmnopqrstuvwxyz"
diff --git a/graphics/yplot/pkg/COMMENT b/graphics/yplot/pkg/COMMENT
new file mode 100644
index 00000000000..a6806a46918
--- /dev/null
+++ b/graphics/yplot/pkg/COMMENT
@@ -0,0 +1 @@
+Yorick interface to PLplot
diff --git a/graphics/yplot/pkg/DESCR b/graphics/yplot/pkg/DESCR
new file mode 100644
index 00000000000..622f2f158b4
--- /dev/null
+++ b/graphics/yplot/pkg/DESCR
@@ -0,0 +1,21 @@
+YPLOT is a program which combines the power of the Yorick programming
+language with the graphical capabilities of PLPlot. With YPLOT it is
+possible to create plots of both draft and publication quality very
+quickly and efficiently.
+
+YPLOT can do linear plots, log-log plots (with any variations of log
+and linear axes possible), 3D surface and mesh plots (there is a
+difference, really ;-), 3D line and scatter plots, grid lines, with
+lots of symbols and stroked fonts to choose from (all scalable).
+YPLOT gives the user full control over boxes drawn, captions, fonts
+and placement of labels.
+
+Plotting with YPLOT is fast due to the interpreted nature of YPLOT
+(which means decreased development time), and the efficiency of Yorick.
+
+Lots of output devices are available, including X11, Postscript,
+Laserjet printers, and PLPlot metafiles for later rendering.
+
+The packages also includes a tutorial and reference manual that
+demonstrates most of YPLOT's capabilities with explanations every step
+of the way!
diff --git a/graphics/yplot/pkg/PLIST b/graphics/yplot/pkg/PLIST
new file mode 100644
index 00000000000..6295d311aa4
--- /dev/null
+++ b/graphics/yplot/pkg/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/14 11:52:10 jtb Exp $
+bin/yplot
+bin/yplotl
+share/doc/yplot/ytut.ps
+share/examples/yplot/demo1.i
+share/examples/yplot/demo2.i
+share/examples/yplot/demo3.i
+share/examples/yplot/demo4.i
+share/examples/yplot/demo5.i
+share/examples/yplot/demo6.i
+share/yorick/1.4/doc/yplot.doc
+share/yorick/1.4/startup/yplot.i
+share/yorick/1.4/startup/yplot_body.i
+share/yorick/1.4/startup/yplotl.i
+@dirrm share/examples/yplot
+@dirrm share/doc/yplot