aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/epstool
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/epstool')
-rw-r--r--graphics/epstool/Makefile27
-rw-r--r--graphics/epstool/distinfo1
-rw-r--r--graphics/epstool/files/patch-aa21
-rw-r--r--graphics/epstool/files/patch-ab45
-rw-r--r--graphics/epstool/pkg-comment1
-rw-r--r--graphics/epstool/pkg-descr13
-rw-r--r--graphics/epstool/pkg-plist3
7 files changed, 111 insertions, 0 deletions
diff --git a/graphics/epstool/Makefile b/graphics/epstool/Makefile
new file mode 100644
index 000000000000..044919a4b806
--- /dev/null
+++ b/graphics/epstool/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: epstool
+# Version required: 1.06
+# Date created: 23 October 1999
+# Whom: Yuzo FURUKAWA <hurukawa@kuee.kyoto-u.ac.jp>
+#
+# $FreeBSD$
+#
+
+DISTNAME= epstool-106
+PKGNAME= epstool-1.06
+CATEGORIES= graphics
+MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/rjl/ \
+ ftp://ftp.fh-koblenz.de/pub/Ghostscript/rjl/
+
+MAINTAINER= ports@FreeBSD.org
+
+RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript55
+
+MAKEFILE= makefile.unx
+WRKSRC= ${WRKDIR}/epstool
+
+post-install:
+ ${MKDIR} ${PREFIX}/bin ${PREFIX}/share/doc/epstool
+ ${INSTALL_DATA} ${WRKSRC}/epstool.txt \
+ ${PREFIX}/share/doc/epstool/epstool.txt
+
+.include <bsd.port.mk>
diff --git a/graphics/epstool/distinfo b/graphics/epstool/distinfo
new file mode 100644
index 000000000000..9a3beaa0c6d4
--- /dev/null
+++ b/graphics/epstool/distinfo
@@ -0,0 +1 @@
+MD5 (epstool-106.tar.gz) = 1b86df4d4420995090867dcc3882febb
diff --git a/graphics/epstool/files/patch-aa b/graphics/epstool/files/patch-aa
new file mode 100644
index 000000000000..b72097fd4ef9
--- /dev/null
+++ b/graphics/epstool/files/patch-aa
@@ -0,0 +1,21 @@
+--- makefile.unx.orig Sat Oct 23 18:00:19 1999
++++ makefile.unx Sat Oct 23 19:24:37 1999
+@@ -20,8 +20,8 @@
+ RM=/bin/rm -f
+ SHELL=/bin/sh
+
+-BINDIR=/usr/local/bin
+-INCLUDES=-I/usr/openwin/include
++BINDIR=${PREFIX}/bin
++INCLUDES=-I/usr/X11R6/include
+ LIBS=
+ # if you have a strict ANSI compiler, add -D__STDC__
+ DEFINES=-DUNIX -DEPSTOOL -DHAVE_UNISTD_H
+@@ -54,5 +54,5 @@
+ -$(RM) epstool
+
+ install: epstool
+- cp epstool $(BINDIR)
+- chmod 755 $(BINDIR)/epstool
++ install -c -s -g bin -o root -m 755 epstool $(BINDIR)
++
diff --git a/graphics/epstool/files/patch-ab b/graphics/epstool/files/patch-ab
new file mode 100644
index 000000000000..716545b464ac
--- /dev/null
+++ b/graphics/epstool/files/patch-ab
@@ -0,0 +1,45 @@
+--- epstool.c.orig Sun Sep 13 09:52:52 1998
++++ epstool.c Sat Oct 23 17:59:46 1999
+@@ -25,7 +25,7 @@
+ char upname[MAXSTR];
+ char gsname[MAXSTR] = GSCOMMAND;
+ char bmpname[MAXSTR];
+-char devname[MAXSTR];
++char gsdevname[MAXSTR];
+ char szScratch[] = "ep";
+ char szAppName[] = "epstool";
+ int resolution = 72;
+@@ -87,9 +87,9 @@
+ main(int argc, char *argv[])
+ {
+ #ifdef UNIX
+- strcpy(devname, "pbmraw");
++ strcpy(gsdevname, "pbmraw");
+ #else
+- strcpy(devname, "bmpmono");
++ strcpy(gsdevname, "bmpmono");
+ #endif
+ if (scan_args(argc, argv))
+ return 1;
+@@ -252,10 +252,10 @@
+ fclose(tempfile);
+ #ifdef UNIX
+ sprintf(gscommand, "%s -dNOPAUSE -dQUIET -sDEVICE=%s -sOutputFile=\042%s\042 -r%d -g%dx%d %s",
+- gsname, devname, bmpname, resolution, width, height, tempname);
++ gsname, gsdevname, bmpname, resolution, width, height, tempname);
+ #else
+ sprintf(gscommand, "-dNOPAUSE\n-dQUIET\n-sDEVICE=%s\n-sOutputFile=\042%s\042\n-r%d\n-g%dx%d\n\042%s\042",
+- devname, bmpname, resolution, width, height, tempname);
++ gsdevname, bmpname, resolution, width, height, tempname);
+ if (!quiet) {
+ fputs(gscommand, stderr);
+ fputs("\n", stderr);
+@@ -409,7 +409,7 @@
+ break;
+ case 'z':
+ if (argp[2])
+- strcpy(devname, argp+2);
++ strcpy(gsdevname, argp+2);
+ break;
+ case 'c':
+ if (got_op) {
diff --git a/graphics/epstool/pkg-comment b/graphics/epstool/pkg-comment
new file mode 100644
index 000000000000..783d1be22328
--- /dev/null
+++ b/graphics/epstool/pkg-comment
@@ -0,0 +1 @@
+Create or extract preview bitmaps in EPS files
diff --git a/graphics/epstool/pkg-descr b/graphics/epstool/pkg-descr
new file mode 100644
index 000000000000..90b8e2beac67
--- /dev/null
+++ b/graphics/epstool/pkg-descr
@@ -0,0 +1,13 @@
+epstool - Create or extract preview bitmaps in EPS files.
+
+Features:
+- Add EPSI or DOS EPS previews.
+- Extract postscript from DOS EPS files.
+- Uses Ghostscript to create preview bitmaps.
+- Scan a bitmap created by Ghostscript to find bounding box.
+- Create TIFF or Interchange from part of a bitmap created
+ by Ghostscript.
+
+Please read text '/usr/local/share/doc/epstool/epstool.txt'
+
+- Yuzo FURUKAWA
diff --git a/graphics/epstool/pkg-plist b/graphics/epstool/pkg-plist
new file mode 100644
index 000000000000..b1932e2e2dde
--- /dev/null
+++ b/graphics/epstool/pkg-plist
@@ -0,0 +1,3 @@
+bin/epstool
+share/doc/epstool/epstool.txt
+@dirrm share/doc/epstool