mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Initial import of epstool version 1.06.
A tool creating and extracting preview bitmaps in EPS files. PR: 14459 Submitted by: Yuzo FURUKAWA <hurukawa@kuee.kyoto-u.ac.jp>
This commit is contained in:
parent
447fe24c33
commit
6cf3c0ffad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=23399
27
graphics/epstool/Makefile
Normal file
27
graphics/epstool/Makefile
Normal file
@ -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>
|
1
graphics/epstool/distinfo
Normal file
1
graphics/epstool/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (epstool-106.tar.gz) = 1b86df4d4420995090867dcc3882febb
|
21
graphics/epstool/files/patch-aa
Normal file
21
graphics/epstool/files/patch-aa
Normal file
@ -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)
|
||||
+
|
45
graphics/epstool/files/patch-ab
Normal file
45
graphics/epstool/files/patch-ab
Normal file
@ -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) {
|
1
graphics/epstool/pkg-comment
Normal file
1
graphics/epstool/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Create or extract preview bitmaps in EPS files
|
13
graphics/epstool/pkg-descr
Normal file
13
graphics/epstool/pkg-descr
Normal file
@ -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
|
3
graphics/epstool/pkg-plist
Normal file
3
graphics/epstool/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/epstool
|
||||
share/doc/epstool/epstool.txt
|
||||
@dirrm share/doc/epstool
|
Loading…
Reference in New Issue
Block a user