diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2004-03-04 05:09:28 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2004-03-04 05:09:28 +0000 |
commit | 5a5697333d5d79824ea6af25ec62ce61b2aad0bb (patch) | |
tree | bda11956a061da8bf10fa74f3a4b14e877611bb1 /japanese/prn | |
parent | 3a9e4d5d50a29895f025f2a9a29f9798e3bfb11d (diff) | |
download | ports-5a5697333d5d79824ea6af25ec62ce61b2aad0bb.tar.gz ports-5a5697333d5d79824ea6af25ec62ce61b2aad0bb.zip |
Notes
Diffstat (limited to 'japanese/prn')
-rw-r--r-- | japanese/prn/Makefile | 8 | ||||
-rw-r--r-- | japanese/prn/files/patch-ab | 41 | ||||
-rw-r--r-- | japanese/prn/files/patch-cmt.c | 23 | ||||
-rw-r--r-- | japanese/prn/files/patch-cmt.h | 8 | ||||
-rw-r--r-- | japanese/prn/files/patch-prn.c | 60 |
5 files changed, 92 insertions, 48 deletions
diff --git a/japanese/prn/Makefile b/japanese/prn/Makefile index 15d1874a917f..f797d41b2d63 100644 --- a/japanese/prn/Makefile +++ b/japanese/prn/Makefile @@ -21,10 +21,4 @@ MANLANG= ja MAN1= prn.1 cprn.1 cmt.1 psconv.1 MAN5= cmtdefs.5 -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 502000 -BROKEN= "Does not compile" -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/japanese/prn/files/patch-ab b/japanese/prn/files/patch-ab deleted file mode 100644 index 209fd9298afb..000000000000 --- a/japanese/prn/files/patch-ab +++ /dev/null @@ -1,41 +0,0 @@ -*** prn.c.orig Thu May 26 11:37:45 1994 ---- prn.c Mon Jun 9 12:29:28 1997 -*************** -*** 34,41 **** - #include <sys/stat.h> - #include "euc.h" - - #define KCCPATH "/usr/local/bin/kcc" -! #if defined (__bsdi__) - #define LPRPATH "/usr/bin/lpr" - #else - #define LPRPATH "/usr/ucb/lpr" ---- 34,46 ---- - #include <sys/stat.h> - #include "euc.h" - -+ #if !defined KCCPATH - #define KCCPATH "/usr/local/bin/kcc" -! #endif -! #if (defined(__unix__) || defined(unix)) && !defined(USG) -! #include <sys/param.h> -! #endif -! #if defined (__bsdi__) || (defined(BSD) && (BSD >= 199103)) - #define LPRPATH "/usr/bin/lpr" - #else - #define LPRPATH "/usr/ucb/lpr" -*************** -*** 48,55 **** ---- 53,64 ---- - - #else - -+ #if !defined CMTPATH - #define CMTPATH "/usr/local/bin/cmt" -+ #endif -+ #if !defined PSPATH - #define PSPATH "/usr/local/bin/psconv" -+ #endif - - #endif - diff --git a/japanese/prn/files/patch-cmt.c b/japanese/prn/files/patch-cmt.c new file mode 100644 index 000000000000..485ef37112c7 --- /dev/null +++ b/japanese/prn/files/patch-cmt.c @@ -0,0 +1,23 @@ +--- cmt.c.orig Mon Apr 25 16:26:57 1994 ++++ cmt.c Fri Feb 6 00:18:46 2004 +@@ -352,16 +352,15 @@ + error(format, arg1, arg2, ...) + char *format; + ---------------------------------------------------------------------*/ +-#include <varargs.h> ++#include <stdarg.h> + +-void error(va_alist) +- va_dcl ++void error(char *a, ...) + { + va_list args; + +- va_start(args); ++ va_start(args, a); + fprintf(stderr, "%s: ", progname); +- vfprintf(stderr, va_arg(args, char *), args); ++ vfprintf(stderr, a, args); + putc('\n', stderr); + va_end(args); + exit(1); diff --git a/japanese/prn/files/patch-cmt.h b/japanese/prn/files/patch-cmt.h new file mode 100644 index 000000000000..fc5b9d808081 --- /dev/null +++ b/japanese/prn/files/patch-cmt.h @@ -0,0 +1,8 @@ +--- cmt.h.orig Fri Feb 6 00:13:05 2004 ++++ cmt.h Fri Feb 6 00:13:18 2004 +@@ -32,4 +32,4 @@ + /* + * Error handling function. + */ +-extern void error(); ++extern void error(char *, ...); diff --git a/japanese/prn/files/patch-prn.c b/japanese/prn/files/patch-prn.c new file mode 100644 index 000000000000..b1aac4b50ff9 --- /dev/null +++ b/japanese/prn/files/patch-prn.c @@ -0,0 +1,60 @@ +--- prn.c.orig Thu May 26 11:37:45 1994 ++++ prn.c Fri Feb 6 00:18:11 2004 +@@ -34,8 +34,13 @@ + #include <sys/stat.h> + #include "euc.h" + ++#if !defined KCCPATH + #define KCCPATH "/usr/local/bin/kcc" +-#if defined (__bsdi__) ++#endif ++#if (defined(__unix__) || defined(unix)) && !defined(USG) ++#include <sys/param.h> ++#endif ++#if defined (__bsdi__) || (defined(BSD) && (BSD >= 199103)) + #define LPRPATH "/usr/bin/lpr" + #else + #define LPRPATH "/usr/ucb/lpr" +@@ -48,8 +53,12 @@ + + #else + ++#if !defined CMTPATH + #define CMTPATH "/usr/local/bin/cmt" ++#endif ++#if !defined PSPATH + #define PSPATH "/usr/local/bin/psconv" ++#endif + + #endif + +@@ -96,7 +105,7 @@ + static char *filename; /* name of the file being processed */ + static char *modtime; /* the last modification time */ + +-static void error(); ++static void error(char *, ...); + static char *basename(); + static bool formatopt(); + static bool rangeopt(); +@@ -498,16 +507,15 @@ + error(format, arg1, arg2, ...) + char *format; + ---------------------------------------------------------------------*/ +-#include <varargs.h> ++#include <stdarg.h> + +-static void error(va_alist) +- va_dcl ++static void error(char *a, ...) + { + va_list args; + +- va_start(args); ++ va_start(args, a); + fprintf(stderr, "%s: ", progname); +- vfprintf(stderr, va_arg(args, char *), args); ++ vfprintf(stderr, a, args); + putc('\n', stderr); + va_end(args); + exit(1); |