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

(-)print/ghostscript55/Makefile (-23 / +17 lines)
Lines 6-43 Link Here
6
#
6
#
7
7
8
PORTNAME=	ghostscript
8
PORTNAME=	ghostscript
9
PORTVERSION=	5.50
9
PORTVERSION=	5.50a
10
CATEGORIES=	print
10
CATEGORIES=	print
11
MASTER_SITES=	ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ \
11
MASTER_SITES=	${MASTER_SITE_GNU} \
12
		http://www.erdw.ethz.ch/~bonk/ftp/gs-driver-distrib/ \
12
		ftp://ftp.cs.wisc.edu/ghost/gnu/gs550/ \
13
		http://www.ozemail.com.au/~geoffk/pdfencrypt/
13
		ftp://ftp.cs.wisc.edu/ghost/gnu/fonts/ \
14
		http://www.erdw.ethz.ch/~bonk/ftp/gs-driver-distrib/
15
MASTER_SITE_SUBDIR=	${PORTNAME}
14
DISTFILES=	${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
16
DISTFILES=	${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
15
		${HP850_DRV} ${DECRYPT_PDF}
17
		${HP850_DRV}
18
EXTRACT_ONLY=	${GS_SOURCES}
16
19
17
MAINTAINER=	andreas@FreeBSD.org
20
MAINTAINER=	andreas@FreeBSD.org
18
21
19
Y2K=		http://www.cs.wisc.edu/~ghost/aladdin/y2k.html
20
21
BUILD_DEPENDS=	/nonexistent:${PORTSDIR}/graphics/jpeg:extract \
22
BUILD_DEPENDS=	/nonexistent:${PORTSDIR}/graphics/jpeg:extract \
22
		/nonexistent:${PORTSDIR}/graphics/png:extract \
23
		unzip:${PORTSDIR}/archivers/unzip
23
		unzip:${PORTSDIR}/archivers/unzip
24
LIB_DEPENDS=	png.4:${PORTSDIR}/graphics/png
24
LIB_DEPENDS=	png.4:${PORTSDIR}/graphics/png
25
25
26
USE_XLIB=	yes
27
EXTRACT_ONLY=	${GS_SOURCES}
28
WRKSRC=		${WRKDIR}/gs5.50
26
WRKSRC=		${WRKDIR}/gs5.50
27
28
USE_XLIB=	yes
29
USE_GMAKE=	yes
29
USE_GMAKE=	yes
30
MAKEFILE=	unix-gcc.mak
30
MAKEFILE=	unix-gcc.mak
31
MAN1=		gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 ps2ps.1
31
MAN1=		gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 ps2ps.1
32
32
33
GS_SOURCES=	ghostscript-5.50.tar.gz
33
GS_SOURCES=	gnu-gs-5.50a.tar.gz
34
GS_SOURCES+=	ghostscript-5.50gnu.tar.gz
35
#  Note: the following two are real files that have symlinks with
34
#  Note: the following two are real files that have symlinks with
36
#  later version numbers pointing to them.  To avoid unnecessarily
35
#  later version numbers pointing to them.  To avoid unnecessarily
37
#  downloading distfiles, do not change these when upgrading the port
36
#  downloading distfiles, do not change these when upgrading the port
38
#  unless the files really change.
37
#  unless the files really change.
39
GS_FONTS_STD=	ghostscript-fonts-std-5.50.tar.gz
38
GS_FONTS_STD=	gnu-gs-fonts-std-6.0.tar.gz
40
GS_FONTS_OTHER=	ghostscript-fonts-other-5.50.tar.gz
39
GS_FONTS_OTHER=	gnu-gs-fonts-other-6.0.tar.gz
41
40
42
# Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
41
# Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
43
HP850_DRV=	hp8xxs13.zip
42
HP850_DRV=	hp8xxs13.zip
Lines 55-64 Link Here
55
54
56
post-extract:
55
post-extract:
57
	${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg
56
	${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg
58
	${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/png/work/libpng ${WRKSRC}/libpng
57
	unzip -L -q -aa -o ${DISTDIR}/${HP850_DRV} -d ${WRKSRC} -x devs.mak
59
	${MV} ${WRKSRC}/devs.mak ${WRKSRC}/devs.mak.bak
60
	cd ${WRKSRC} && unzip -Lao ${DISTDIR}/${HP850_DRV}
61
	${MV} ${WRKSRC}/devs.mak.bak ${WRKSRC}/devs.mak
62
58
63
do-configure:
59
do-configure:
64
.if defined(BATCH)
60
.if defined(BATCH)
Lines 71-81 Link Here
71
	${MKDIR} ${WRKSRC}/obj
67
	${MKDIR} ${WRKSRC}/obj
72
68
73
pre-install:
69
pre-install:
74
	@${MKDIR} ${PREFIX}/share/ghostscript ${PREFIX}/bin ${PREFIX}/man/man1
70
	@${MKDIR} ${PREFIX}/share/ghostscript
75
	(cd ${PREFIX}/share/ghostscript ; \
71
	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD}
76
			${TAR} -xzf ${DISTDIR}/${GS_FONTS_STD})
72
	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER}
77
	(cd ${PREFIX}/share/ghostscript/fonts ; \
78
			${TAR} -xzf ${DISTDIR}/${GS_FONTS_OTHER})
79
73
80
# install the readme and license file of the hp8xxx driver as well
74
# install the readme and license file of the hp8xxx driver as well
81
post-install:
75
post-install:
(-)print/ghostscript55/files/md5 (-4 / +3 lines)
Lines 1-6 Link Here
1
MD5 (ghostscript-5.50.tar.gz) = f51e92976c4cda9a05de5388fdbbbbbd
1
MD5 (gnu-gs-5.50a.tar.gz) = c12ea8dd56cfc453c99bd8864dfc90db
2
MD5 (ghostscript-5.50gnu.tar.gz) = 4930c9d2feea3294904fc683bf8b8beb
2
MD5 (gnu-gs-fonts-std-6.0.tar.gz) = 1521fab85ca3e8ce3ce781d4970e6c79
3
MD5 (ghostscript-fonts-std-5.50.tar.gz) = 8462a429e2672d332a510da076dca6d2
3
MD5 (gnu-gs-fonts-other-6.0.tar.gz) = 33457d3f37de7ef03d2eea05a9e6aa4f
4
MD5 (ghostscript-fonts-other-5.50.tar.gz) = e3540578f33caf5dfc384e5518890f57
5
MD5 (hp8xxs13.zip) = e46bcac0aed0c511c8cc88a1093cc586
4
MD5 (hp8xxs13.zip) = e46bcac0aed0c511c8cc88a1093cc586
6
MD5 (pdf_sec.ps) = 92cd6af5b4d7219e91e61b8351f0f7c4
5
MD5 (pdf_sec.ps) = 92cd6af5b4d7219e91e61b8351f0f7c4
(-)print/ghostscript55/patches/patch-aa (-15 / +23 lines)
Lines 1-6 Link Here
1
--- unix-gcc.mak.orig	Thu Sep 17 08:06:06 1998
1
--- unix-gcc.mak.orig	Mon Feb 14 11:28:41 2000
2
+++ unix-gcc.mak	Mon Nov 30 13:11:05 1998
2
+++ unix-gcc.mak	Sat Jul 29 00:40:45 2000
3
@@ -48,12 +48,10 @@
3
@@ -54,12 +54,10 @@
4
 # the directories also define the default search path for the
4
 # the directories also define the default search path for the
5
 # initialization files (gs_*.ps) and the fonts.
5
 # initialization files (gs_*.ps) and the fonts.
6
 
6
 
Lines 16-22 Link Here
16
 exec_prefix = $(prefix)
16
 exec_prefix = $(prefix)
17
 bindir = $(exec_prefix)/bin
17
 bindir = $(exec_prefix)/bin
18
 scriptdir = $(bindir)
18
 scriptdir = $(bindir)
19
@@ -141,7 +139,7 @@
19
@@ -140,14 +138,14 @@
20
 # You may need to change this if the libpng version changes.
21
 # See libpng.mak for more information.
22
 
23
-PSRCDIR=libpng
24
+PSRCDIR=${LOCALBASE}/include
25
 PVERSION=96
26
 
27
 # Choose whether to use a shared version of the PNG library, and if so,
20
 # what its name is.
28
 # what its name is.
21
 # See gs.mak and Make.htm for more information.
29
 # See gs.mak and Make.htm for more information.
22
 
30
 
Lines 25-31 Link Here
25
 LIBPNG_NAME=png
33
 LIBPNG_NAME=png
26
 
34
 
27
 # Define the directory where the zlib sources are stored.
35
 # Define the directory where the zlib sources are stored.
28
@@ -153,7 +151,7 @@
36
@@ -159,7 +157,7 @@
29
 # what its name is (usually libz, but sometimes libgz).
37
 # what its name is (usually libz, but sometimes libgz).
30
 # See gs.mak and Make.htm for more information.
38
 # See gs.mak and Make.htm for more information.
31
 
39
 
Lines 34-49 Link Here
34
 #ZLIB_NAME=gz
42
 #ZLIB_NAME=gz
35
 ZLIB_NAME=z
43
 ZLIB_NAME=z
36
 
44
 
37
@@ -172,7 +170,7 @@
45
@@ -178,7 +176,7 @@
38
 
46
 
39
 # Define the name of the C compiler.
47
 # Define the name of the C compiler.
40
 
48
 
41
-CC=gcc
49
-CC=gcc
42
+CC=cc
50
+#CC=cc
43
 
51
 
44
 # Define the name of the linker for the final link step.
52
 # Define the name of the linker for the final link step.
45
 # Normally this is the same as the C compiler.
53
 # Normally this is the same as the C compiler.
46
@@ -205,7 +203,7 @@
54
@@ -211,7 +209,7 @@
47
 #   gcc to accept ANSI-style function prototypes and function definitions.
55
 #   gcc to accept ANSI-style function prototypes and function definitions.
48
 XCFLAGS=
56
 XCFLAGS=
49
 
57
 
Lines 52-67 Link Here
52
 
60
 
53
 # Define platform flags for ld.
61
 # Define platform flags for ld.
54
 # SunOS 4.n may need -Bstatic.
62
 # SunOS 4.n may need -Bstatic.
55
@@ -214,7 +212,7 @@
63
@@ -220,7 +218,7 @@
56
 #	-R /usr/local/xxx/lib:/usr/local/lib
64
 #	-R /usr/local/xxx/lib:/usr/local/lib
57
 # giving the full path names of the shared library directories.
65
 # giving the full path names of the shared library directories.
58
 # XLDFLAGS can be set from the command line.
66
 # XLDFLAGS can be set from the command line.
59
-XLDFLAGS=
67
-XLDFLAGS=
60
+XLDFLAGS=-L$(prefix)/lib
68
+XLDFLAGS=-L${LOCALBASE}/lib
61
 
69
 
62
 LDFLAGS=$(XLDFLAGS) -fno-common
70
 LDFLAGS=$(XLDFLAGS) -fno-common
63
 
71
 
64
@@ -234,7 +232,7 @@
72
@@ -240,7 +238,7 @@
65
 # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
73
 # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
66
 # not in $(XINCLUDE).
74
 # not in $(XINCLUDE).
67
 
75
 
Lines 70-76 Link Here
70
 
78
 
71
 # Define the directory/ies and library names for the X11 library files.
79
 # Define the directory/ies and library names for the X11 library files.
72
 # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
80
 # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
73
@@ -246,12 +244,12 @@
81
@@ -252,12 +250,12 @@
74
 # Solaris and other SVR4 systems with dynamic linking probably want
82
 # Solaris and other SVR4 systems with dynamic linking probably want
75
 #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
83
 #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
76
 # X11R6 (on any platform) may need
84
 # X11R6 (on any platform) may need
Lines 86-92 Link Here
86
 
94
 
87
 # Define whether this platform has floating point hardware:
95
 # Define whether this platform has floating point hardware:
88
 #	FPU_TYPE=2 means floating point is faster than fixed point.
96
 #	FPU_TYPE=2 means floating point is faster than fixed point.
89
@@ -292,27 +290,6 @@
97
@@ -298,27 +296,6 @@
90
 
98
 
91
 FILE_IMPLEMENTATION=stdio
99
 FILE_IMPLEMENTATION=stdio
92
 
100
 
Lines 114-120 Link Here
114
 # ---------------------------- End of options --------------------------- #
122
 # ---------------------------- End of options --------------------------- #
115
 
123
 
116
 # Define the name of the partial makefile that specifies options --
124
 # Define the name of the partial makefile that specifies options --
117
@@ -320,16 +297,10 @@
125
@@ -326,16 +303,10 @@
118
 
126
 
119
 MAKEFILE=$(GLSRC)unix-gcc.mak
127
 MAKEFILE=$(GLSRC)unix-gcc.mak
120
 
128
 
Lines 132-138 Link Here
132
 CCAUX=$(CC)
140
 CCAUX=$(CC)
133
 #We can't use -fomit-frame-pointer with -pg....
141
 #We can't use -fomit-frame-pointer with -pg....
134
 #CC_LEAF=$(CC_)
142
 #CC_LEAF=$(CC_)
135
@@ -350,7 +321,3 @@
143
@@ -356,7 +327,3 @@
136
 include $(GLSRC)unixtail.mak
144
 include $(GLSRC)unixtail.mak
137
 include $(GLSRC)unix-end.mak
145
 include $(GLSRC)unix-end.mak
138
 include $(GLSRC)unixinst.mak
146
 include $(GLSRC)unixinst.mak
(-)print/ghostscript55/patches/patch-ad (+34 lines)
Line 0 Link Here
1
--- gp_unifs.c.orig	Mon Feb 14 11:28:25 2000
2
+++ gp_unifs.c	Fri Jul 28 23:53:04 2000
3
@@ -33,6 +33,7 @@
4
 #include "stat_.h"
5
 #include "dirent_.h"
6
 #include <sys/param.h>		/* for MAXPATHLEN */
7
+#include <unistd.h>
8
 
9
 /* Some systems (Interactive for example) don't define MAXPATHLEN,
10
  * so we define it here.  (This probably should be done via a Config-Script.)
11
@@ -63,6 +64,8 @@
12
 		     const char *mode)
13
 {				/* The -8 is for XXXXXX plus a possible final / and -. */
14
     int len = gp_file_name_sizeof - strlen(prefix) - 8;
15
+    int fd;
16
+    FILE *f;
17
 
18
     if (gp_getenv("TEMP", fname, &len) != 0)
19
 	strcpy(fname, "/tmp/");
20
@@ -75,8 +78,12 @@
21
     if (*fname != 0 && fname[strlen(fname) - 1] == 'X')
22
 	strcat(fname, "-");
23
     strcat(fname, "XXXXXX");
24
-    mktemp(fname);
25
-    return fopen(fname, mode);
26
+    fd = mkstemp(fname);
27
+    if (fd == -1)
28
+    	return NULL;
29
+    if ((f = fdopen(fd, mode)) == NULL)
30
+    	close(fd);
31
+    return f;
32
 }
33
 
34
 /* Open a file with the given name, as a stream of uninterpreted bytes. */
(-)print/ghostscript55/pkg/COMMENT (-1 / +1 lines)
Line 1 Link Here
1
Aladdin Postscript interpreter
1
GNU Postscript interpreter
(-)print/ghostscript55/pkg/DESCR (-14 / +11 lines)
Lines 1-13 Link Here
1
This is Aladdin Ghostscript, the non-GPL version that comes with a licence
1
GNU Ghostscript is the name of a set of software that provides:
2
different from the GPL. Read the file PUBLIC in the work/gsX.Y directory or
3
in ${PREFIX}/share/ghostscript/X.Y/doc/PUBLIC after installation for details !
4
5
Ghostscript is the well-known PostScript interpreter which is available for
6
all common and most esoteric platforms and supports many different printers
7
and some displays.
8
2
9
Official ghostscript homepage, see:
3
	- An interpreter for the PostScript (TM) language, and
10
	http://www.cs.wisc.edu/~ghost/index.html
4
5
	- A set of C procedures (the Ghostscript library) that implement
6
the graphics capabilities that appear as primitive operations in the
7
PostScript language.
8
9
GNU Ghostscript comes with NO WARRANTY and NO SUPPORT.  
11
10
12
This FreeBSD port includes two useful add-on packages:
11
This FreeBSD port includes two useful add-on packages:
13
	o Support for HP DeskJet 670, 690, 850, 855, 870, 890, 1100 and 1600,
12
	o Support for HP DeskJet 670, 690, 850, 855, 870, 890, 1100 and 1600,
Lines 16-25 Link Here
16
	o Support for pdfencrypt, see description on
15
	o Support for pdfencrypt, see description on
17
	  	http://www.ozemail.com.au/~geoffk/pdfencrypt/
16
	  	http://www.ozemail.com.au/~geoffk/pdfencrypt/
18
		
17
		
19
Thomas Merz has written a Ghostscript manual in PDF format:
18
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
20
	http://www.cs.wisc.edu/~ghost/merz.html
21
19
22
The manual is also available in German language, see:
20
PostScript is a trademark of Adobe Systems, Incorporated.
23
	http://www.muc.de/~tm/free/free.html
24
21
25
WWW: http://www.cs.wisc.edu/~ghost/index.html
22
WWW: http://www.gnu.org/software/ghostscript/ghostscript.html
(-)print/ghostscript55/pkg/PLIST (-3 / +2 lines)
Lines 47-53 Link Here
47
share/ghostscript/5.50/doc/Bug-form.htm
47
share/ghostscript/5.50/doc/Bug-form.htm
48
share/ghostscript/5.50/doc/C-style.htm
48
share/ghostscript/5.50/doc/C-style.htm
49
share/ghostscript/5.50/doc/Commprod.htm
49
share/ghostscript/5.50/doc/Commprod.htm
50
share/ghostscript/5.50/doc/Copying.htm
51
share/ghostscript/5.50/doc/Current.htm
50
share/ghostscript/5.50/doc/Current.htm
52
share/ghostscript/5.50/doc/DLL.htm
51
share/ghostscript/5.50/doc/DLL.htm
53
share/ghostscript/5.50/doc/Devices.htm
52
share/ghostscript/5.50/doc/Devices.htm
Lines 67-76 Link Here
67
share/ghostscript/5.50/doc/Make.htm
66
share/ghostscript/5.50/doc/Make.htm
68
share/ghostscript/5.50/doc/New-user.htm
67
share/ghostscript/5.50/doc/New-user.htm
69
share/ghostscript/5.50/doc/News.htm
68
share/ghostscript/5.50/doc/News.htm
70
share/ghostscript/5.50/doc/PUBLIC
71
share/ghostscript/5.50/doc/Ps2pdf.htm
69
share/ghostscript/5.50/doc/Ps2pdf.htm
72
share/ghostscript/5.50/doc/Psfiles.htm
70
share/ghostscript/5.50/doc/Psfiles.htm
73
share/ghostscript/5.50/doc/Public.htm
74
share/ghostscript/5.50/doc/Readme.htm
71
share/ghostscript/5.50/doc/Readme.htm
75
share/ghostscript/5.50/doc/Source.htm
72
share/ghostscript/5.50/doc/Source.htm
76
share/ghostscript/5.50/doc/Unix-lpr.htm
73
share/ghostscript/5.50/doc/Unix-lpr.htm
Lines 252-257 Link Here
252
share/ghostscript/fonts/fhirw.pfm
249
share/ghostscript/fonts/fhirw.pfm
253
share/ghostscript/fonts/fkarw.gsf
250
share/ghostscript/fonts/fkarw.gsf
254
share/ghostscript/fonts/fkarw.pfm
251
share/ghostscript/fonts/fkarw.pfm
252
share/ghostscript/fonts/fonts.dir
253
share/ghostscript/fonts/fonts.scale
255
share/ghostscript/fonts/hrger.pfa
254
share/ghostscript/fonts/hrger.pfa
256
share/ghostscript/fonts/hrgerb.gsf
255
share/ghostscript/fonts/hrgerb.gsf
257
share/ghostscript/fonts/hrgerd.gsf
256
share/ghostscript/fonts/hrgerd.gsf

Return to bug 20266