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

(-)print/ghostview/Makefile (-10 / +5 lines)
Lines 1-22 Link Here
1
# New ports collection makefile for:	ghostview
1
# Created by: jkh
2
# Date created:		21 October 1994
3
# Whom:			jkh
4
#
5
# $FreeBSD: head/print/ghostview/Makefile 300897 2012-07-14 14:29:18Z beat $
2
# $FreeBSD: head/print/ghostview/Makefile 300897 2012-07-14 14:29:18Z beat $
6
#
7
3
8
PORTNAME=	ghostview
4
PORTNAME=	ghostview
9
PORTVERSION=	1.5
5
PORTVERSION=	1.5
10
PORTREVISION=	3
6
PORTREVISION=	3
11
CATEGORIES=	print
7
CATEGORIES=	print
12
MASTER_SITES=	http://ftp.gnu.org/old-gnu/ghostview/ \
8
MASTER_SITES=	http://ftp.gnu.org/old-gnu/ghostview/ \
13
		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/ghostview/
9
		http://ftp.sunet.se/pub/text-processing/postscript/interpreters/ghostscript/gnu/ghostview/
14
10
15
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	An X11 front-end for ghostscript, the GNU postscript previewer
12
COMMENT=	X11 front-end for ghostscript, the GNU postscript previewer
17
13
18
LICENSE=	GPLv2 # (or later)
14
LICENSE=	GPLv2 # (or later)
19
LICENSE_FILE=	${WRKSRC}/COPYING
20
15
21
USE_IMAKE=	yes
16
USE_IMAKE=	yes
22
USE_XORG=	xbitmaps xaw
17
USE_XORG=	xbitmaps xaw
Lines 24-31 Link Here
24
MAKE_JOBS_SAFE=	yes
19
MAKE_JOBS_SAFE=	yes
25
20
26
MAN1=		ghostview.1
21
MAN1=		ghostview.1
27
22
PLIST_FILES=	bin/ghostview \
28
CFLAGS+=	-DUSG
23
		lib/X11/app-defaults/Ghostview
29
24
30
post-install:
25
post-install:
31
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
26
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
(-)print/ghostview/files/patch-Dir.c (+10 lines)
Line 0 Link Here
1
--- Dir.c.orig
2
+++ Dir.c
3
@@ -25,6 +25,7 @@
4
  */
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
 
9
 #ifdef SEL_FILE_IGNORE_CASE
10
 #include <ctype.h>
(-)print/ghostview/files/patch-Draw.c (+33 lines)
Line 0 Link Here
1
--- Draw.c.orig
2
+++ Draw.c
3
@@ -59,6 +59,7 @@
4
 
5
 static XtIntervalId SFscrollTimerId;
6
 
7
+void
8
 SFinitFont()
9
 {
10
 	TextData	*data;
11
@@ -86,6 +87,7 @@
12
 	SFcharHeight = SFcharAscent + SFfont->max_bounds.descent;
13
 }
14
 
15
+void
16
 SFcreateGC()
17
 {
18
 	XGCValues	gcValues;
19
@@ -228,12 +230,12 @@
20
 	}
21
 
22
 	if (!(--dir->nEntries)) {
23
-		return;
24
+		return 1;
25
 	}
26
 
27
 	n = dir - &(SFdirs[SFdirPtr]);
28
 	if ((n < 0) || (n > 2)) {
29
-		return;
30
+		return 1;
31
 	}
32
 
33
 	XawScrollbarSetThumb(
(-)print/ghostview/files/patch-Ghostview.c (+11 lines)
Line 0 Link Here
1
--- Ghostview.c.orig
2
+++ Ghostview.c
3
@@ -23,6 +23,8 @@
4
  *      FAX: (608)262-9777         Madison, WI   53706
5
  */
6
 
7
+#include <stdlib.h>
8
+
9
 #include <X11/IntrinsicP.h>
10
 #include <X11/StringDefs.h>
11
 #include <X11/Xatom.h>
(-)print/ghostview/files/patch-Imakefile (+33 lines)
Line 0 Link Here
1
--- Imakefile.orig
2
+++ Imakefile
3
@@ -29,17 +29,17 @@
4
 
5
 #ifdef Use_SelFile
6
            SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
7
-                  Ghostview.c ps.c getenv.c setenv.c strcasecmp.c \
8
+                  Ghostview.c ps.c \
9
                   SelFile.c Dir.c Path.c Draw.c
10
            OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
11
-                  Ghostview.o ps.o getenv.o setenv.o strcasecmp.o \
12
+                  Ghostview.o ps.o \
13
                   SelFile.o Dir.o Path.o Draw.o
14
  SELFILE_DEFINE = -DSELFILE
15
 #else
16
            SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
17
-                  Ghostview.c ps.c getenv.c setenv.c strcasecmp.c
18
+                  Ghostview.c ps.c
19
            OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
20
-                  Ghostview.o ps.o getenv.o setenv.o strcasecmp.o
21
+                  Ghostview.o ps.o
22
  SELFILE_DEFINE =
23
 #endif
24
 
25
@@ -49,7 +49,7 @@
26
 
27
 XCOMM Add -DBSD4_2 to DEFINES if you system does not have memset() and memcpy()
28
 
29
-        DEFINES = -DNON_BLOCKING_IO $(SIGNAL_DEFINES) $(SELFILE_DEFINE)
30
+        DEFINES = -DUSG -DNON_BLOCKING_IO $(SIGNAL_DEFINES) $(SELFILE_DEFINE)
31
 
32
 .NOEXPORT:
33
 
(-)print/ghostview/files/patch-Path.c (+20 lines)
Line 0 Link Here
1
--- Path.c.orig
2
+++ Path.c
3
@@ -568,7 +568,7 @@
4
 
5
 				if (SFtwiddle) {
6
 					if (SFfindHomeDir(begin, end)) {
7
-						return;
8
+						return 1;
9
 					}
10
 				}
11
 				*end = 0;
12
@@ -616,7 +616,7 @@
13
 				}
14
 			} else {
15
 				if (SFfindFile(&(SFdirs[SFdirEnd-1]), begin)) {
16
-					return;
17
+					return 1;
18
 				}
19
 			}
20
 		} else {
(-)print/ghostview/files/patch-aa (-1 / +10 lines)
Lines 1-6 Link Here
1
--- misc.c.orig	Sat Jul 24 03:29:12 1993
1
--- misc.c.orig	Sat Jul 24 03:29:12 1993
2
+++ misc.c	Wed Jun  5 22:41:39 2002
2
+++ misc.c	Wed Jun  5 22:41:39 2002
3
@@ -60,8 +60,9 @@
3
@@ -24,6 +24,8 @@
4
  */
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
+
9
 #ifndef SEEK_SET
10
 #define SEEK_SET 0
11
 #endif
12
@@ -60,8 +62,9 @@
4
 #ifdef VMS
13
 #ifdef VMS
5
 #include <perror.h>
14
 #include <perror.h>
6
 #else
15
 #else
(-)print/ghostview/files/patch-actions.c (+11 lines)
Line 0 Link Here
1
--- actions.c.orig
2
+++ actions.c
3
@@ -23,6 +23,8 @@
4
  *      FAX: (608)262-9777         Madison, WI   53706
5
  */
6
 
7
+#include <stdlib.h>
8
+
9
 #include <X11/Intrinsic.h>
10
 #include <X11/StringDefs.h>
11
 #include <X11/Xaw/Cardinals.h>
(-)print/ghostview/files/patch-callbacks.c (+20 lines)
Line 0 Link Here
1
--- callbacks.c.orig
2
+++ callbacks.c
3
@@ -24,6 +24,8 @@
4
  */
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
+
9
 #ifndef BUFSIZ
10
 #define BUFSIZ 1024
11
 #endif
12
@@ -32,8 +34,6 @@
13
 #define getenv _getenv
14
 #endif
15
 
16
-extern char *getenv();
17
-
18
 #include <X11/Intrinsic.h>
19
 #include <X11/StringDefs.h>
20
 #include <X11/Shell.h>
(-)print/ghostview/files/patch-main.c (+20 lines)
Line 0 Link Here
1
--- main.c.orig
2
+++ main.c
3
@@ -23,6 +23,8 @@
4
  *      FAX: (608)262-9777         Madison, WI   53706
5
  */
6
 
7
+#include <stdlib.h>
8
+
9
 #include <X11/Intrinsic.h>
10
 #include <X11/cursorfont.h>
11
 #include <X11/StringDefs.h>
12
@@ -53,8 +55,6 @@
13
 #include "gv.h"
14
 #include "ps.h"
15
 
16
-extern char *getenv();
17
-
18
 static String version = "Ghostview, version 1.5";
19
 
20
 static XtResource resources[] = {
(-)print/ghostview/files/patch-ps.c (+12 lines)
Line 0 Link Here
1
--- ps.c.orig
2
+++ ps.c
3
@@ -24,6 +24,9 @@
4
  */
5
 
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
+#include <strings.h>
9
+
10
 #ifndef SEEK_SET
11
 #define SEEK_SET 0
12
 #endif
(-)print/ghostview/pkg-plist (-2 lines)
Lines 1-2 Link Here
1
bin/ghostview
2
lib/X11/app-defaults/Ghostview

Return to bug 178578