aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/edict
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2008-07-28 02:44:06 +0800
committerarved <arved@FreeBSD.org>2008-07-28 02:44:06 +0800
commit034d7e2ac8196f3252436153a7c196809b9781f2 (patch)
treea8a5c2f6ceeb4dedfc18f12a4d8b28113cb7be39 /japanese/edict
parent82cb6bdb7903fabb7a7a47ec915aa372bc478c9c (diff)
downloadfreebsd-ports-graphics-034d7e2ac8196f3252436153a7c196809b9781f2.tar.gz
freebsd-ports-graphics-034d7e2ac8196f3252436153a7c196809b9781f2.tar.zst
freebsd-ports-graphics-034d7e2ac8196f3252436153a7c196809b9781f2.zip
Unbreak on amd64
Set maintainership back to ports PR: 125683 Submitted by: Kazunori_Fujiwara <fujiwara@wide.ad.jp> Approved by: maintainer
Diffstat (limited to 'japanese/edict')
-rw-r--r--japanese/edict/Makefile6
-rw-r--r--japanese/edict/files/patch-xjdfrontend.c2
-rw-r--r--japanese/edict/files/patch-xjdxgen.c13
3 files changed, 13 insertions, 8 deletions
diff --git a/japanese/edict/Makefile b/japanese/edict/Makefile
index b2b462bc6c7..61d50585b5e 100644
--- a/japanese/edict/Makefile
+++ b/japanese/edict/Makefile
@@ -21,7 +21,7 @@ MASTER_SITES= \
EXTRACT_SUFX=
DISTFILES= ${DICTFILES} ${SRCFILES} ${DOCFILES}
-MAINTAINER= jhanna@shaw.ca
+MAINTAINER= ports@FreeBSD.org
COMMENT= Japanese-English dictionaries with access and maintenance utilities
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
@@ -60,10 +60,6 @@ NO_WRKSUBDIR= yes
.include <bsd.port.pre.mk>
-.if ${ARCH} != "i386"
-BROKEN= Does not build
-.endif
-
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
diff --git a/japanese/edict/files/patch-xjdfrontend.c b/japanese/edict/files/patch-xjdfrontend.c
index 6a9ef853962..7b1807b06b3 100644
--- a/japanese/edict/files/patch-xjdfrontend.c
+++ b/japanese/edict/files/patch-xjdfrontend.c
@@ -16,7 +16,7 @@
+#elif defined(__POSIX__)
+ tcgetattr(0, &orig); tcgetattr(0, &new);
+ new.c_lflag &= ~ICANON; new.c_lflag &= ~ISIG; new.c_lflag &= ~ECHO;
-+ new.c_lflag &= ~IXON;
++ new.c_lflag &= ~IXON; new.c_cc[VMIN] = 1;
+ new.c_cc[4] = 1; new.c_cc[5] = 0; tcsetattr(0, TCSANOW, &new);
#else
ioctl(0, TCGETA, &orig); ioctl(0, TCGETA, &new);
diff --git a/japanese/edict/files/patch-xjdxgen.c b/japanese/edict/files/patch-xjdxgen.c
index 087d117446b..76ddb7f6e49 100644
--- a/japanese/edict/files/patch-xjdxgen.c
+++ b/japanese/edict/files/patch-xjdxgen.c
@@ -1,5 +1,5 @@
---- xjdxgen.c.orig 1998-09-10 20:04:21.000000000 -0700
-+++ xjdxgen.c 2008-03-06 11:40:41.000000000 -0800
+--- xjdxgen.c.orig 1998-09-11 05:04:21.000000000 +0200
++++ xjdxgen.c 2008-07-27 20:39:29.000000000 +0200
@@ -23,7 +23,7 @@
#include <sys/stat.h>
@@ -9,3 +9,12 @@
#include <ctype.h>
#include <string.h>
#include "xjdic.h"
+@@ -154,7 +154,7 @@
+ db[diclen] = 10;
+ db[0] = 10;
+ printf("Dictionary size: %ld bytes.\n",dbyte);
+- indlen = (diclen * 3)/4;
++ indlen = (diclen * 3*(sizeof(long)/4))/4;
+ jindex = (unsigned long *)malloc(indlen);
+ if(jindex == NULL)
+ {