View | Details | Raw Unified | Return to bug 51053
Collapse All | Expand All

(-)graphics/epstool/Makefile (-12 / +11 lines)
Lines 6-36 Link Here
6
#
6
#
7
7
8
PORTNAME=	epstool
8
PORTNAME=	epstool
9
PORTVERSION=	2.10
9
PORTVERSION=	3.0
10
CATEGORIES=	graphics
10
CATEGORIES=	graphics
11
MASTER_SITES=	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/
11
MASTER_SITES=	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/
12
DISTNAME=	gsv42src
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Create or extract preview bitmaps in EPS files
14
COMMENT=	Create or extract preview bitmaps in EPS files
16
15
17
RUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu
16
RUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu
18
17
19
WRKSRC=		${WRKDIR}/${PORTNAME}
18
USE_GMAKE=	yes
20
19
MAKEFILE=	makefile
21
USE_ZIP=	yes
20
MAKE_ARGS=	MAKE="${GMAKE}" CC="${CC}" CDEBUG="${CFLAGS}" LINK="${CC}" \
22
MAKEFILE=	makefile.unx
21
		EPSLIB=""
22
ALL_TARGET=	${PORTNAME}
23
23
24
post-extract:
24
post-extract:
25
.for file in epstool.zip src.zip
25
	@${RM} -f ${WRKSRC}/epstool
26
	@cd ${WRKDIR} && unzip -q -aa ${file}
27
.endfor
28
26
29
post-install:
27
do-install:
28
	${INSTALL_PROGRAM} ${WRKSRC}/bin/epstool ${PREFIX}/bin
30
.if !defined(NOPORTDOCS)
29
.if !defined(NOPORTDOCS)
31
	@${MKDIR} ${DOCSDIR}
30
	@${MKDIR} ${DOCSDIR}
32
	@${INSTALL_DATA} ${WRKSRC}/epstool.htm ${DOCSDIR}
31
	${INSTALL_DATA} ${WRKSRC}/doc/epstool.htm ${DOCSDIR}
33
	@${INSTALL_DATA} ${WRKSRC}/../gsview.css ${DOCSDIR}
32
	${INSTALL_DATA} ${WRKSRC}/doc/gsview.css ${DOCSDIR}
34
.endif
33
.endif
35
34
36
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)graphics/epstool/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (gsv42src.zip) = b22a9f76b4741687a5d0bc81c91219d9
1
MD5 (epstool-3.0.tar.gz) = 5de32de51f41939f9d3a388d0e8ccbcb
(-)graphics/epstool/files/patch-aa (-27 lines)
Lines 1-27 Link Here
1
--- makefile.unx.orig	Mon Nov  6 09:58:48 2000
2
+++ makefile.unx	Thu Jan 11 22:48:17 2001
3
@@ -20,13 +20,13 @@
4
 RM=/bin/rm -f
5
 SHELL=/bin/sh
6
 
7
-BINDIR=/usr/local/bin
8
-INCLUDES=-I/usr/openwin/include -I../src -I.
9
+BINDIR=${PREFIX}/bin
10
+INCLUDES=-I../src -I.
11
 LIBS=
12
 # if you have a strict ANSI compiler, add -D__STDC__
13
 DEFINES=-DUNIX -DEPSTOOL -DHAVE_UNISTD_H
14
 OBJ=o
15
-CC=gcc
16
+#CC=gcc
17
 
18
 OBJS=epstool.$(OBJ) gvceps.$(OBJ) dscparse.$(OBJ) dscutil.$(OBJ)
19
 
20
@@ -61,5 +61,5 @@
21
 	-$(RM) epstool
22
 
23
 install: epstool
24
-	cp epstool $(BINDIR)
25
-	chmod 755 $(BINDIR)/epstool
26
+	${BSD_INSTALL_PROGRAM} epstool $(BINDIR)
27
+
(-)graphics/epstool/files/patch-ab (-45 lines)
Lines 1-45 Link Here
1
--- epstool.c.orig	Fri Nov 23 16:43:50 2001
2
+++ epstool.c	Sun Dec  2 05:05:41 2001
3
@@ -26,7 +26,7 @@
4
 char gsname[MAXSTR] = GSCOMMAND;
5
 char gsarg[MAXSTR];
6
 char bmpname[MAXSTR];
7
-char devname[MAXSTR];
8
+char gsdevname[MAXSTR];
9
 char szScratch[] = "ep";
10
 char szAppName[] = "epstool";
11
 int resolution = 72;
12
@@ -167,9 +167,9 @@
13
 	find_gs(gsname, sizeof(gsname)-1, 550, FALSE);
14
 #endif
15
 #ifdef UNIX
16
-	strcpy(devname, "pbmraw");
17
+	strcpy(gsdevname, "pbmraw");
18
 #else
19
-	strcpy(devname, "bmpmono");
20
+	strcpy(gsdevname, "bmpmono");
21
 #endif
22
 	if (scan_args(argc, argv))
23
 	   return 1;
24
@@ -463,10 +463,10 @@
25
 	fclose(tempfile);
26
 #ifdef UNIX
27
 	sprintf(gscommand, "\042%s\042 %s -dNOPAUSE -dQUIET -sDEVICE=%s -sOutputFile=\042%s\042 -r%d -g%dx%d %s",
28
-	   gsname, gsarg, devname, bmpname, resolution, width, height, tempname);
29
+	   gsname, gsarg, gsdevname, bmpname, resolution, width, height, tempname);
30
 #else
31
 	sprintf(gscommand, "-dNOPAUSE\n-dQUIET\n-sDEVICE=%s\n-sOutputFile=\042%s\042\n-r%d\n-g%dx%d\n\042%s\042",
32
-	   devname, bmpname, resolution, width, height, tempname);
33
+	   gsdevname, bmpname, resolution, width, height, tempname);
34
 	if (!quiet) {
35
 	    fputs(gscommand, stderr);
36
 	    fputs("\n", stderr);
37
@@ -654,7 +654,7 @@
38
 		  break;
39
 		case 'z':
40
 		  if (argp[2])
41
-		      strcpy(devname, argp+2);
42
+		      strcpy(gsdevname, argp+2);
43
 		  break;
44
 		case 'c':
45
 		  if (got_op) {

Return to bug 51053