aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2004-01-26 21:34:55 +0800
committermaho <maho@FreeBSD.org>2004-01-26 21:34:55 +0800
commitf95da47d0745ed4c32bdc5bb1290ab6c07dc7003 (patch)
treed096445c051bdeb3a5dd38caff15f8c7cb679658 /japanese
parentd055b1bfbfa87e85f48d006d3094d5dda7a4b584 (diff)
downloadfreebsd-ports-gnome-f95da47d0745ed4c32bdc5bb1290ab6c07dc7003.tar.gz
freebsd-ports-gnome-f95da47d0745ed4c32bdc5bb1290ab6c07dc7003.tar.zst
freebsd-ports-gnome-f95da47d0745ed4c32bdc5bb1290ab6c07dc7003.zip
PR:
Submitted by: Reviewed by: Approved by: Obtained from: MFC after: A better solution for unbreak other than using gcc-2.95.3. Submitted by: KIMURA Yasuhiro <yasu@utahime.org>
Diffstat (limited to 'japanese')
-rw-r--r--japanese/kcc/Makefile9
-rw-r--r--japanese/kcc/files/patch-ab36
2 files changed, 38 insertions, 7 deletions
diff --git a/japanese/kcc/Makefile b/japanese/kcc/Makefile
index 46a89aa2c907..11177edafa04 100644
--- a/japanese/kcc/Makefile
+++ b/japanese/kcc/Makefile
@@ -7,6 +7,7 @@
PORTNAME= kcc
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
DISTNAME= ${PORTNAME}
@@ -18,10 +19,4 @@ INSTALL_TARGET= install install.man
MANLANG= ja
MAN1= kcc.1
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 501000
-USE_GCC=2.95
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/japanese/kcc/files/patch-ab b/japanese/kcc/files/patch-ab
new file mode 100644
index 000000000000..9284cf51b09a
--- /dev/null
+++ b/japanese/kcc/files/patch-ab
@@ -0,0 +1,36 @@
+--- kcc.c.dist Mon Mar 28 20:00:12 1994
++++ kcc.c Wed Jan 21 06:01:11 2004
+@@ -134,7 +134,7 @@
+ extern unsigned short hiragana[];
+ unsigned short *kanatbl = katakana;
+
+-void error();
++void error(char* fmt, ...);
+
+ /**********************************************************************
+ * *
+@@ -364,18 +364,17 @@
+ NAME
+ error - print formatted error message on stderr and die
+ ---------------------------------------------------------------------*/
+-#include <varargs.h>
++#include <stdarg.h>
+
+-void error(va_alist)
+- va_dcl
++void error(char *fmt, ...)
+ {
+- va_list args;
++ va_list ap;
+
+- va_start(args);
++ va_start(ap, fmt);
+ fprintf(stderr, "%s: ", progname);
+- vfprintf(stderr, va_arg(args, char *), args);
++ vfprintf(stderr, fmt, ap);
+ putc('\n', stderr);
+- va_end(args);
++ va_end(ap);
+ exit(1);
+ }
+