aboutsummaryrefslogtreecommitdiff
path: root/japanese/kterm
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2009-01-11 22:03:54 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2009-01-11 22:03:54 +0000
commitbc85d896f96dcd29023c46327c89ccafcb493002 (patch)
treea6b1e82324df898d41a1bf65d44e66258859cef0 /japanese/kterm
parent773c0e2277837b085f27dac830cf5af7d929fce5 (diff)
downloadports-bc85d896f96dcd29023c46327c89ccafcb493002.tar.gz
ports-bc85d896f96dcd29023c46327c89ccafcb493002.zip
Notes
Diffstat (limited to 'japanese/kterm')
-rw-r--r--japanese/kterm/Makefile2
-rw-r--r--japanese/kterm/files/patch-aa13
-rw-r--r--japanese/kterm/files/patch-main.c38
3 files changed, 46 insertions, 7 deletions
diff --git a/japanese/kterm/Makefile b/japanese/kterm/Makefile
index 8156d02da0c3..0048a028d945 100644
--- a/japanese/kterm/Makefile
+++ b/japanese/kterm/Makefile
@@ -7,7 +7,7 @@
PORTNAME= kterm
PORTVERSION= 6.2.0
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= japanese x11
MASTER_SITES= ${MASTER_SITE_PORTS_JP:S/$/:wp_jp/} \
${MASTER_SITE_XCONTRIB} \
diff --git a/japanese/kterm/files/patch-aa b/japanese/kterm/files/patch-aa
index d915ee0bdca4..fa9ce0249f59 100644
--- a/japanese/kterm/files/patch-aa
+++ b/japanese/kterm/files/patch-aa
@@ -1,5 +1,5 @@
---- Imakefile.orig Sun Dec 13 16:59:08 1998
-+++ Imakefile Sun Dec 13 17:37:16 1998
+--- Imakefile.orig 2009-01-12 06:30:54.603258900 +0900
++++ Imakefile 2009-01-12 06:45:23.991164903 +0900
@@ -13,6 +13,17 @@
XPOLL_DEF = -DNO_XPOLL_H
#endif
@@ -18,3 +18,12 @@
/*
* add -DWTMP and -DLASTLOG if you want them.
*/
+@@ -72,7 +83,7 @@
+ #endif
+ #endif
+
+- TERMCAPLIB = TermcapLibrary
++ TERMCAPLIB = TermcapLibrary -lutil
+
+ AllTarget($(PROGRAMS))
+
diff --git a/japanese/kterm/files/patch-main.c b/japanese/kterm/files/patch-main.c
index 30de16b8b728..ff60ca9ddb6c 100644
--- a/japanese/kterm/files/patch-main.c
+++ b/japanese/kterm/files/patch-main.c
@@ -1,5 +1,5 @@
---- main.c.orig Wed Jun 21 15:49:06 2006
-+++ main.c Wed Jun 21 15:50:17 2006
+--- main.c.orig 2009-01-12 06:02:34.419192340 +0900
++++ main.c 2009-01-12 06:29:01.427571571 +0900
@@ -210,7 +210,9 @@
#undef FIOCLEX
#undef FIONCLEX
@@ -19,7 +19,18 @@
#include <sgtty.h>
#endif
#include <sys/resource.h>
-@@ -1355,6 +1357,8 @@
+@@ -319,6 +321,10 @@
+ int Ptyfd;
+ #endif /* PUCC_PTYD */
+
++#ifdef __FreeBSD__
++#include <libutil.h> /* openpty() */
++#endif
++
+ #ifdef sequent
+ #define USE_GET_PSEUDOTTY
+ #endif
+@@ -1355,6 +1361,8 @@
d_tio.c_cc[VDISCARD] = CFLUSH;
d_tio.c_cc[VWERASE] = CWERASE;
d_tio.c_cc[VLNEXT] = CLNEXT;
@@ -28,7 +39,7 @@
#endif /* } */
#ifdef TIOCSLTC /* { */
d_ltc.t_suspc = CSUSP; /* t_suspc */
-@@ -1403,6 +1407,8 @@
+@@ -1403,6 +1411,8 @@
d_tio.c_cc[VQUIT] = CQUIT; /* '^\' */
d_tio.c_cc[VEOF] = CEOF; /* '^D' */
d_tio.c_cc[VEOL] = CEOL; /* '^@' */
@@ -37,3 +48,22 @@
#ifdef VSWTCH
d_tio.c_cc[VSWTCH] = CSWTCH; /* usually '^Z' */
#endif
+@@ -1963,6 +1973,10 @@
+ get_pty (pty)
+ int *pty;
+ {
++#if 1
++ int tty;
++ return (openpty(pty, &tty, ttydev, NULL, NULL));
++#else
+ #ifdef __osf__
+ int tty;
+ return (openpty(pty, &tty, ttydev, NULL, NULL));
+@@ -2066,6 +2080,7 @@
+ #endif /* __sgi or umips else */
+ #endif /* USE_GET_PSEUDOTTY else */
+ #endif /* ATT else */
++#endif /* !0 */
+ }
+
+ /*