summaryrefslogtreecommitdiff
path: root/print/ghostscript7/files
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>2000-08-24 21:20:30 +0000
committerAndreas Klemm <andreas@FreeBSD.org>2000-08-24 21:20:30 +0000
commitbbb68e38257b3b1db87bb399fb32ffda0e44b899 (patch)
tree98424ee9196641939bd691185233492f88674b28 /print/ghostscript7/files
parentnot available anymore, use postgresql 7 (diff)
Update port: print/ghostscript55 to 5.50a
Thanks for port submission ! PR: 20266 Submitted by: tkato@prontomail.ne.jp
Notes
Notes: svn path=/head/; revision=31939
Diffstat (limited to 'print/ghostscript7/files')
-rw-r--r--print/ghostscript7/files/patch-aa38
-rw-r--r--print/ghostscript7/files/patch-ad34
2 files changed, 57 insertions, 15 deletions
diff --git a/print/ghostscript7/files/patch-aa b/print/ghostscript7/files/patch-aa
index 65a3e92356bb..7aeee26276fe 100644
--- a/print/ghostscript7/files/patch-aa
+++ b/print/ghostscript7/files/patch-aa
@@ -1,6 +1,6 @@
---- unix-gcc.mak.orig Thu Sep 17 08:06:06 1998
-+++ unix-gcc.mak Mon Nov 30 13:11:05 1998
-@@ -48,12 +48,10 @@
+--- unix-gcc.mak.orig Mon Feb 14 11:28:41 2000
++++ unix-gcc.mak Sat Jul 29 00:40:45 2000
+@@ -54,12 +54,10 @@
# the directories also define the default search path for the
# initialization files (gs_*.ps) and the fonts.
@@ -16,7 +16,15 @@
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
scriptdir = $(bindir)
-@@ -141,7 +139,7 @@
+@@ -140,14 +138,14 @@
+ # You may need to change this if the libpng version changes.
+ # See libpng.mak for more information.
+
+-PSRCDIR=libpng
++PSRCDIR=${LOCALBASE}/include
+ PVERSION=96
+
+ # Choose whether to use a shared version of the PNG library, and if so,
# what its name is.
# See gs.mak and Make.htm for more information.
@@ -25,7 +33,7 @@
LIBPNG_NAME=png
# Define the directory where the zlib sources are stored.
-@@ -153,7 +151,7 @@
+@@ -159,7 +157,7 @@
# what its name is (usually libz, but sometimes libgz).
# See gs.mak and Make.htm for more information.
@@ -34,16 +42,16 @@
#ZLIB_NAME=gz
ZLIB_NAME=z
-@@ -172,7 +170,7 @@
+@@ -178,7 +176,7 @@
# Define the name of the C compiler.
-CC=gcc
-+CC=cc
++#CC=cc
# Define the name of the linker for the final link step.
# Normally this is the same as the C compiler.
-@@ -205,7 +203,7 @@
+@@ -211,7 +209,7 @@
# gcc to accept ANSI-style function prototypes and function definitions.
XCFLAGS=
@@ -52,16 +60,16 @@
# Define platform flags for ld.
# SunOS 4.n may need -Bstatic.
-@@ -214,7 +212,7 @@
+@@ -220,7 +218,7 @@
# -R /usr/local/xxx/lib:/usr/local/lib
# giving the full path names of the shared library directories.
# XLDFLAGS can be set from the command line.
-XLDFLAGS=
-+XLDFLAGS=-L$(prefix)/lib
++XLDFLAGS=-L${LOCALBASE}/lib
LDFLAGS=$(XLDFLAGS) -fno-common
-@@ -234,7 +232,7 @@
+@@ -240,7 +238,7 @@
# Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
# not in $(XINCLUDE).
@@ -70,7 +78,7 @@
# Define the directory/ies and library names for the X11 library files.
# XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
-@@ -246,12 +244,12 @@
+@@ -252,12 +250,12 @@
# Solaris and other SVR4 systems with dynamic linking probably want
#XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
# X11R6 (on any platform) may need
@@ -86,7 +94,7 @@
# Define whether this platform has floating point hardware:
# FPU_TYPE=2 means floating point is faster than fixed point.
-@@ -292,27 +290,6 @@
+@@ -298,27 +296,6 @@
FILE_IMPLEMENTATION=stdio
@@ -114,7 +122,7 @@
# ---------------------------- End of options --------------------------- #
# Define the name of the partial makefile that specifies options --
-@@ -320,16 +297,10 @@
+@@ -326,16 +303,10 @@
MAKEFILE=$(GLSRC)unix-gcc.mak
@@ -132,7 +140,7 @@
CCAUX=$(CC)
#We can't use -fomit-frame-pointer with -pg....
#CC_LEAF=$(CC_)
-@@ -350,7 +321,3 @@
+@@ -356,7 +327,3 @@
include $(GLSRC)unixtail.mak
include $(GLSRC)unix-end.mak
include $(GLSRC)unixinst.mak
diff --git a/print/ghostscript7/files/patch-ad b/print/ghostscript7/files/patch-ad
new file mode 100644
index 000000000000..9688a7b217ff
--- /dev/null
+++ b/print/ghostscript7/files/patch-ad
@@ -0,0 +1,34 @@
+--- gp_unifs.c.orig Mon Feb 14 11:28:25 2000
++++ gp_unifs.c Fri Jul 28 23:53:04 2000
+@@ -33,6 +33,7 @@
+ #include "stat_.h"
+ #include "dirent_.h"
+ #include <sys/param.h> /* for MAXPATHLEN */
++#include <unistd.h>
+
+ /* Some systems (Interactive for example) don't define MAXPATHLEN,
+ * so we define it here. (This probably should be done via a Config-Script.)
+@@ -63,6 +64,8 @@
+ const char *mode)
+ { /* The -8 is for XXXXXX plus a possible final / and -. */
+ int len = gp_file_name_sizeof - strlen(prefix) - 8;
++ int fd;
++ FILE *f;
+
+ if (gp_getenv("TEMP", fname, &len) != 0)
+ strcpy(fname, "/tmp/");
+@@ -75,8 +78,12 @@
+ if (*fname != 0 && fname[strlen(fname) - 1] == 'X')
+ strcat(fname, "-");
+ strcat(fname, "XXXXXX");
+- mktemp(fname);
+- return fopen(fname, mode);
++ fd = mkstemp(fname);
++ if (fd == -1)
++ return NULL;
++ if ((f = fdopen(fd, mode)) == NULL)
++ close(fd);
++ return f;
+ }
+
+ /* Open a file with the given name, as a stream of uninterpreted bytes. */