aboutsummaryrefslogtreecommitdiff
path: root/japanese/vfghostscript
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>1999-05-31 09:01:33 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>1999-05-31 09:01:33 +0000
commit1bbf616a911bb3993299d5fa8363487b5a71f2c8 (patch)
tree6b417874a2402258567402dfab43b80982c6b1c4 /japanese/vfghostscript
parent4e7b59703312d72e05492df09fc40d012b8421e0 (diff)
downloadports-1bbf616a911bb3993299d5fa8363487b5a71f2c8.tar.gz
ports-1bbf616a911bb3993299d5fa8363487b5a71f2c8.zip
Make this build on alpha.
- Honor CFLAGS. - Use fpsetsticky instead of fpresetsticky.
Notes
Notes: svn path=/head/; revision=19151
Diffstat (limited to 'japanese/vfghostscript')
-rw-r--r--japanese/vfghostscript/files/patch-aa90
-rw-r--r--japanese/vfghostscript/files/unix-gcc.mak.patch2
2 files changed, 45 insertions, 47 deletions
diff --git a/japanese/vfghostscript/files/patch-aa b/japanese/vfghostscript/files/patch-aa
index 4be69b58ca50..c23f6dcb4286 100644
--- a/japanese/vfghostscript/files/patch-aa
+++ b/japanese/vfghostscript/files/patch-aa
@@ -1,46 +1,44 @@
-*** gs.c.orig Mon May 24 17:17:30 1993
---- gs.c Wed Aug 21 15:04:14 1996
-***************
-*** 42,47 ****
---- 42,56 ----
- #include "ostack.h"
- #include "store.h"
- #include "files.h" /* requires stream.h */
-+
-+ #ifdef _HAVE_PARAM_H
-+ #include <sys/param.h>
-+ #endif
-+ #if (defined(BSD) && (BSD>=199103))
-+ #include <floatingpoint.h>
-+ #endif
-+
-+
-
- #ifndef GS_LIB
- # define GS_LIB "GS_LIB"
-***************
-*** 111,116 ****
---- 120,129 ----
- main(int argc, const char *argv[])
- { int argi;
- char cstr[128];
-+ #if (defined(BSD) && (BSD>=199103))
-+ fpsetmask(fpgetmask() & ~FP_X_INV);
-+ /* epag600 driver in gdevep82.c sometimes down with Floating exception. sorry..*/
-+ #endif
- get_real();
- gs_init0(real_stdin, real_stdout, real_stderr, argc);
- { char *lib = getenv(GS_LIB);
-***************
-*** 356,361 ****
---- 369,378 ----
- }
- break;
- }
-+ #if (defined(BSD) && (BSD>=199103))
-+ fpresetsticky(FP_X_INV);
-+ fpsetmask(fpgetmask() & FP_X_INV);
-+ #endif
- return 0;
- }
-
+--- gs.c.orig Mon May 24 17:17:30 1993
++++ gs.c Mon May 31 17:55:14 1999
+@@ -42,6 +42,15 @@
+ #include "ostack.h"
+ #include "store.h"
+ #include "files.h" /* requires stream.h */
++
++#ifdef _HAVE_PARAM_H
++#include <sys/param.h>
++#endif
++#if (defined(BSD) && (BSD>=199103))
++#include <floatingpoint.h>
++#endif
++
++
+
+ #ifndef GS_LIB
+ # define GS_LIB "GS_LIB"
+@@ -111,6 +120,10 @@
+ main(int argc, const char *argv[])
+ { int argi;
+ char cstr[128];
++#if (defined(BSD) && (BSD>=199103))
++ fpsetmask(fpgetmask() & ~FP_X_INV);
++/* epag600 driver in gdevep82.c sometimes down with Floating exception. sorry..*/
++#endif
+ get_real();
+ gs_init0(real_stdin, real_stdout, real_stderr, argc);
+ { char *lib = getenv(GS_LIB);
+@@ -356,6 +369,14 @@
+ }
+ break;
+ }
++#if (defined(BSD) && (BSD>=199103))
++#if defined(__FreeBSD__) && defined(i386)
++ fpresetsticky(FP_X_INV);
++#else
++ fpsetsticky(0);
++#endif
++ fpsetmask(fpgetmask() & FP_X_INV);
++#endif
+ return 0;
+ }
+
diff --git a/japanese/vfghostscript/files/unix-gcc.mak.patch b/japanese/vfghostscript/files/unix-gcc.mak.patch
index 1fd4bd0f72bc..65218265f9fa 100644
--- a/japanese/vfghostscript/files/unix-gcc.mak.patch
+++ b/japanese/vfghostscript/files/unix-gcc.mak.patch
@@ -20,7 +20,7 @@
# specific stuff that <math.h> typically needs; nevertheless, we expect
# gcc to accept ANSI-style function prototypes and function definitions.
-! CFLAGS=-O -m486 $(XCFLAGS) -DCOMPFONT -DWMODE -DKANJI -D_POSIX_SOURCE \
+! CFLAGS+= $(XCFLAGS) -DCOMPFONT -DWMODE -DKANJI -D_POSIX_SOURCE \
! -D_HAVE_PARAM_H -I/usr/local/include
# Define platform flags for ld.