aboutsummaryrefslogtreecommitdiff
path: root/graphics/gridpix
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-07-20 09:14:59 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-07-20 09:14:59 +0000
commit9cb6e7837454112f7ba11c80f3d65b1a3b195404 (patch)
tree2add4bac14b440e81affabb40612ec25cd43d62b /graphics/gridpix
parentbd96be665b26de65fa69b5436020fb69eb2ff28c (diff)
downloadports-9cb6e7837454112f7ba11c80f3d65b1a3b195404.tar.gz
ports-9cb6e7837454112f7ba11c80f3d65b1a3b195404.zip
GridPix enables you to present large images over the Internet in an
efficient manner. The image is stored in a tiled, layered format and is presented to the user in pieces for quick zooming and scrolling. Unlike other implementations that offer similar functionalities, GridPix doesn't use plugins or applets -- it is pure HTML.
Notes
Notes: svn path=/head/; revision=20281
Diffstat (limited to 'graphics/gridpix')
-rw-r--r--graphics/gridpix/Makefile32
-rw-r--r--graphics/gridpix/distinfo1
-rw-r--r--graphics/gridpix/pkg-comment1
-rw-r--r--graphics/gridpix/pkg-descr9
-rw-r--r--graphics/gridpix/pkg-message41
-rw-r--r--graphics/gridpix/pkg-plist74
6 files changed, 158 insertions, 0 deletions
diff --git a/graphics/gridpix/Makefile b/graphics/gridpix/Makefile
new file mode 100644
index 000000000000..d14d7763dbb5
--- /dev/null
+++ b/graphics/gridpix/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: gridpix
+# Version required: 2.0
+# Date created: 19 July 1999
+# Whom: asami
+#
+# $Id$
+#
+
+DISTNAME= GridPix-2.0
+PKGNAME= gridpix-2.0
+CATEGORIES= graphics
+MASTER_SITES= ftp://stampede.cs.berkeley.edu/pub/GridPix/
+
+MAINTAINER= asami@FreeBSD.org
+
+BUILD_DEPENDS= ${X11BASE}/lib/libpnm.a:${PORTSDIR}/graphics/netpbm
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
+
+# create necessary directories -- don't want to depend on an http
+# server port since we don't know which one the user wants
+pre-install:
+ ${MKDIR} ${PREFIX}/www/cgi-bin ${PREFIX}/www/data/gridpix/docs
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/doc/gridpix
+ ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/gridpix
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gridpix
+ @${ECHO} "================================"
+ @${CAT} ${PKGDIR}/MESSAGE
+ @${ECHO} "================================"
+
+.include <bsd.port.mk>
diff --git a/graphics/gridpix/distinfo b/graphics/gridpix/distinfo
new file mode 100644
index 000000000000..89b4da5b190a
--- /dev/null
+++ b/graphics/gridpix/distinfo
@@ -0,0 +1 @@
+MD5 (GridPix-2.0.tar.gz) = 743218e4dd55ce071c6dbaa5d6c1d601
diff --git a/graphics/gridpix/pkg-comment b/graphics/gridpix/pkg-comment
new file mode 100644
index 000000000000..27ffa6036abf
--- /dev/null
+++ b/graphics/gridpix/pkg-comment
@@ -0,0 +1 @@
+Present large images efficiently over the Internet
diff --git a/graphics/gridpix/pkg-descr b/graphics/gridpix/pkg-descr
new file mode 100644
index 000000000000..b3f765f70b78
--- /dev/null
+++ b/graphics/gridpix/pkg-descr
@@ -0,0 +1,9 @@
+GridPix enables you to present large images over the Internet in an
+efficient manner. The image is stored in a tiled, layered format and
+is presented to the user in pieces for quick zooming and scrolling.
+Unlike other implementations that offer similar functionalities,
+GridPix doesn't use plugins or applets -- it is pure HTML.
+
+- Satoshi
+asami@FreeBSD.org
+WWW: http://now.cs.berkeley.edu/Td/GridPix/
diff --git a/graphics/gridpix/pkg-message b/graphics/gridpix/pkg-message
new file mode 100644
index 000000000000..fa2987c49e4c
--- /dev/null
+++ b/graphics/gridpix/pkg-message
@@ -0,0 +1,41 @@
+Here's an example to get started. Let's assume you have an image "mypic.jpg".
+
+(1) djpeg -ppm mypic.jpg | gridpack -o /usr/local/www/data/gridpix/mypic.gpx
+
+(2) Make sure you have CGI scripts with symlinks enabled on your web server.
+ For Apache, you need something like
+
+ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
+
+<Directory "/usr/local/www/cgi-bin">
+ AllowOverride None
+ Options ExecCGI FollowSymLinks
+ Order allow,deny
+ Allow from all
+</Directory>
+
+ in your /usr/local/etc/apache/httpd.conf file.
+
+(3) Use a URL like this to refer to the image:
+
+ http://hostname/cgi-bin/getimg2.cgi?mypic&720&576
+
+ 720 and 576 are the width and height of the GridPix window. The default
+ tile size is 144 by 144 so choose multiples of 144.
+
+(4) To pop up a new window, use something like:
+
+===
+<script language="JavaScript">
+<!--
+function gridpix(pic) {
+ window.open('/cgi-bin/getimg2.cgi?' + pic + '&720&576',
+ 'gridpix',
+ 'toolbar=no,status=yes,width=850,height=650,directories=no,scrollbars=no,location=no,resize=yes,menubar=no');
+}
+// -->
+</script>
+<a href="javascript:gridpix('mypic')">click here</a>
+===
+
+For more info, please read the documents in /usr/local/share/doc/gridpix.
diff --git a/graphics/gridpix/pkg-plist b/graphics/gridpix/pkg-plist
new file mode 100644
index 000000000000..df16ba607cd1
--- /dev/null
+++ b/graphics/gridpix/pkg-plist
@@ -0,0 +1,74 @@
+bin/gpxinfo
+bin/gridpack
+bin/gridunpack
+bin/mkhtml
+share/doc/gridpix/COPYRIGHT
+share/doc/gridpix/README
+www/cgi-bin/getimg2.cgi
+www/cgi-bin/gettile.cgi
+www/cgi-bin/gpxhelp.cgi
+www/cgi-bin/gpxinfo.cgi
+www/cgi-bin/main.cgi
+www/cgi-bin/mkhtml.cgi
+www/cgi-bin/subdir.cgi
+www/data/gridpix/docs/help2.html
+www/data/images/about-h.gif
+www/data/images/about.gif
+www/data/images/dir-h.gif
+www/data/images/dir.gif
+www/data/images/down.gif
+www/data/images/enlargeh-h.gif
+www/data/images/enlargeh.gif
+www/data/images/enlargev-h.gif
+www/data/images/enlargev.gif
+www/data/images/help-h.gif
+www/data/images/help.gif
+www/data/images/nodir.gif
+www/data/images/nodown.gif
+www/data/images/noshrinkh.gif
+www/data/images/noshrinkv.gif
+www/data/images/nozoomout.gif
+www/data/images/sb/downarrow-h.gif
+www/data/images/sb/downarrow.gif
+www/data/images/sb/downarrows-h.gif
+www/data/images/sb/downarrows.gif
+www/data/images/sb/hbard.gif
+www/data/images/sb/hbardl.gif
+www/data/images/sb/hbardll.gif
+www/data/images/sb/hbardr.gif
+www/data/images/sb/hbardrr.gif
+www/data/images/sb/hbarl-h.gif
+www/data/images/sb/hbarl.gif
+www/data/images/sb/leftarrow-h.gif
+www/data/images/sb/leftarrow.gif
+www/data/images/sb/leftarrows-h.gif
+www/data/images/sb/leftarrows.gif
+www/data/images/sb/rightarrow-h.gif
+www/data/images/sb/rightarrow.gif
+www/data/images/sb/rightarrows-h.gif
+www/data/images/sb/rightarrows.gif
+www/data/images/sb/uparrow-h.gif
+www/data/images/sb/uparrow.gif
+www/data/images/sb/uparrows-h.gif
+www/data/images/sb/uparrows.gif
+www/data/images/sb/vbard.gif
+www/data/images/sb/vbardb.gif
+www/data/images/sb/vbardbb.gif
+www/data/images/sb/vbardt.gif
+www/data/images/sb/vbardtt.gif
+www/data/images/sb/vbarl-h.gif
+www/data/images/sb/vbarl.gif
+www/data/images/shrinkh-h.gif
+www/data/images/shrinkh.gif
+www/data/images/shrinkv-h.gif
+www/data/images/shrinkv.gif
+www/data/images/zoomout-h.gif
+www/data/images/zoomout.gif
+@dirrm share/doc/gridpix
+@dirrm www/data/gridpix/docs
+@dirrm www/data/images/sb
+@unexec /bin/rmdir %D/www/cgi-bin 2>/dev/null || /usr/bin/true
+@unexec /bin/rmdir %D/www/data/gridpix 2>/dev/null || /usr/bin/true
+@unexec /bin/rmdir %D/www/data/images 2>/dev/null || /usr/bin/true
+@unexec /bin/rmdir %D/www/data 2>/dev/null || /usr/bin/true
+@unexec /bin/rmdir %D/www 2>/dev/null || /usr/bin/true