Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
japanese/kterm: Resurrect kterm-6.2.0
- Loading branch information
1 parent
39c95ce
commit f7d0c25
Showing
19 changed files
with
546 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
PORTNAME= kterm | ||
PORTVERSION= 6.2.0 | ||
DISTVERSIONPREFIX= v | ||
DISTVERSIONSUFFIX= .fb6 | ||
PORTREVISION= 17 | ||
CATEGORIES= japanese x11 | ||
MASTER_SITES= LOCAL/hrs:pcemu | ||
DISTFILES= pcemu1.01alpha.tar.gz:pcemu | ||
DIST_SUBDIR= ${PORTNAME} | ||
|
||
MAINTAINER= hrs@FreeBSD.org | ||
COMMENT= Xterm variant with Japanese support | ||
WWW= https://bogytech.blogspot.jp/search/label/kterm | ||
|
||
LICENSE= MIT | ||
|
||
USES= iconv imake xorg | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= hrs-allbsd | ||
USE_XORG= ice sm x11 xaw xext xmu xpm xt | ||
|
||
CFLAGS+= -Wno-return-type | ||
|
||
PORTDOCS= README.kt README.wallpaper.ja dot.termcap | ||
|
||
OPTIONS_DEFINE= TEKTRONIXEMU VGAFONT DOCS | ||
OPTIONS_DEFAULT=DEFAULT | ||
OPTIONS_SINGLE= SCROLLBAR | ||
OPTIONS_SINGLE_SCROLLBAR= DEFAULT XAW3DLIB NEXTAWLIB | ||
OPTIONS_SUB= yes | ||
|
||
NEXTAWLIB_DESC= with neXtaw scrollbar | ||
TEKTRONIXEMU_DESC= Tektronix emulation | ||
VGAFONT_DESC= install VGA font | ||
XAW3DLIB_DESC= with Xaw3d scrollbar | ||
|
||
NEXTAWLIB_LIB_DEPENDS= libneXtaw.so:x11-toolkits/neXtaw | ||
VGAFONT_EXTRACT_DEPENDS= \ | ||
${LOCALBASE}/bin/bdftopcf:x11-fonts/bdftopcf | ||
VGAFONT_BUILD_DEPENDS= \ | ||
${LOCALBASE}/bin/mkfontscale:x11-fonts/mkfontscale | ||
VGAFONT_USES= fonts | ||
XAW3DLIB_LIB_DEPENDS= libXaw3d.so:x11-toolkits/Xaw3d | ||
|
||
.include <bsd.port.options.mk> | ||
|
||
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) | ||
CFLAGS+= -Wno-error=int-conversion | ||
.endif | ||
|
||
post-extract-VGAFONT-on: | ||
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ | ||
${DISTDIR}/${DIST_SUBDIR}/pcemu1.01alpha.tar.gz \ | ||
${EXTRACT_AFTER_ARGS} -C ${WRKDIR} pcemu1.01alpha/vga.bdf | ||
cd ${WRKDIR}/pcemu1.01alpha && \ | ||
${LOCALBASE}/bin/bdftopcf vga.bdf | ${GZIP_CMD} > vga.pcf.gz | ||
|
||
post-extract-TEKTRONIXEMU-on: | ||
echo "#undef KTERM_NOTEK" >> ${WRKSRC}/kterm.h | ||
post-extract-TEKTRONIXEMU-off: | ||
echo "#undef KTERM_NOTEK" >> ${WRKSRC}/kterm.h | ||
echo "#define KTERM_NOTEK" >> ${WRKSRC}/kterm.h | ||
|
||
post-extract-XAW3DLIB-on: | ||
echo "#undef KTERM_XAW3D" >> ${WRKSRC}/kterm.h | ||
echo "#undef USE_XAW3DLIB" >> ${WRKSRC}/kterm.h | ||
echo "#define KTERM_XAW3D" >> ${WRKSRC}/kterm.h | ||
echo "#define USE_XAW3DLIB" >> ${WRKSRC}/kterm.h | ||
post-extract-XAW3DLIB-off: | ||
echo "#undef KTERM_XAW3D" >> ${WRKSRC}/kterm.h | ||
|
||
post-extract-NEXTAWLIB-on: | ||
echo "#undef KTERM_XAW3D" >> ${WRKSRC}/kterm.h | ||
echo "#undef USE_NEXTAWLIB" >> ${WRKSRC}/kterm.h | ||
echo "#define KTERM_XAW3D" >> ${WRKSRC}/kterm.h | ||
echo "#define USE_NEXTAWLIB" >> ${WRKSRC}/kterm.h | ||
post-extract-NEXTAWLIB-off: | ||
echo "#undef KTERM_XAW3D" >> ${WRKSRC}/kterm.h | ||
|
||
post-extract: | ||
${ECHO_CMD} "#undef InstallXtermSetUID" >> ${WRKSRC}/kterm.h | ||
${ECHO_CMD} "#define InstallXtermSetUID 0" >> ${WRKSRC}/kterm.h | ||
|
||
post-build: | ||
${ICONV_CMD} -f iso-2022-jp -t utf-8 ${WRKSRC}/kterm.jman \ | ||
| ${GZIP_CMD} > ${WRKSRC}/kterm.1.gz | ||
pre-install: | ||
${MKDIR} ${STAGEDIR}${MANPREFIX}/man/ja.UTF-8/man1 | ||
post-install: | ||
${INSTALL_MAN} ${WRKSRC}/kterm.1.gz \ | ||
${STAGEDIR}${MANPREFIX}/man/ja.UTF-8/man1 | ||
pre-install-DOCS-on: | ||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ||
pre-install-VGAFONT-on: | ||
${MKDIR} ${STAGEDIR}${FONTSDIR} | ||
post-install-DOCS-on: | ||
${INSTALL_DATA} \ | ||
${WRKSRC}/README.kt \ | ||
${WRKSRC}/README.wallpaper.ja \ | ||
${FILESDIR}/dot.termcap \ | ||
${STAGEDIR}${DOCSDIR} | ||
post-install-VGAFONT-on: | ||
${INSTALL_DATA} ${WRKDIR}/pcemu1.01alpha/vga.pcf.gz \ | ||
${STAGEDIR}${FONTSDIR} | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TIMESTAMP = 1487003137 | ||
SHA256 (kterm/pcemu1.01alpha.tar.gz) = 0936d3e3b8b6ef36078b40983d10b66971206142ab489c096cc29e94b17852ea | ||
SIZE (kterm/pcemu1.01alpha.tar.gz) = 316257 | ||
SHA256 (kterm/hrs-allbsd-kterm-v6.2.0.fb6_GH0.tar.gz) = 8ebde513d5d765b43c4a8ac44f8e4b8dc452871f661fd7311c20955cf124d487 | ||
SIZE (kterm/hrs-allbsd-kterm-v6.2.0.fb6_GH0.tar.gz) = 276713 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ktermc|kanji terminal with 16 colors:\ | ||
:op=\E[m:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:\ | ||
:mb=\E[5m:md=\E[1m:mr=\E[7m:mh=\E[2m:me=\E[m:\ | ||
:tc=kterm: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- ./kterm.h.orig Fri Jul 12 14:01:37 1996 | ||
+++ ./kterm.h Thu Aug 16 01:34:54 2001 | ||
@@ -35,7 +35,7 @@ | ||
#define KTERM_XIM /* XIM protocol */ | ||
#define KTERM_KINPUT2 /* Kinput2 protocol */ | ||
#define KTERM_COLOR /* color sequence */ | ||
-#define KTERM_NOTEK /* disables Tektronix emulation */ | ||
+#undef KTERM_NOTEK /* disables Tektronix emulation */ | ||
#undef KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */ | ||
|
||
#endif /* !_KTERM_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- ./kterm.h.org Thu Jul 11 22:01:37 1996 | ||
+++ ./kterm.h Fri Nov 1 05:22:15 1996 | ||
@@ -36,6 +36,7 @@ | ||
#define KTERM_KINPUT2 /* Kinput2 protocol */ | ||
#define KTERM_COLOR /* color sequence */ | ||
#define KTERM_NOTEK /* disables Tektronix emulation */ | ||
-#undef KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */ | ||
+#define KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */ | ||
+#define USE_XAW3DLIB | ||
|
||
#endif /* !_KTERM_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- ./kterm.h.org Thu Jul 11 22:01:37 1996 | ||
+++ ./kterm.h Fri Nov 1 05:22:15 1996 | ||
@@ -36,6 +36,7 @@ | ||
#define KTERM_KINPUT2 /* Kinput2 protocol */ | ||
#define KTERM_COLOR /* color sequence */ | ||
#define KTERM_NOTEK /* disables Tektronix emulation */ | ||
-#undef KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */ | ||
+#define KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */ | ||
+#define USE_NEXTAWLIB | ||
|
||
#endif /* !_KTERM_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- Imakefile.orig 2016-11-04 21:41:21 UTC | ||
+++ Imakefile | ||
@@ -13,6 +13,16 @@ XCOMM $Id: Imakefile,v 6.3 1996/07/12 05:01:03 kagotan | ||
XPOLL_DEF = -DNO_XPOLL_H | ||
#endif | ||
|
||
+#ifdef USE_XAW3DLIB | ||
+#undef XawClientLibs | ||
+#define XawClientLibs -lXaw3d $(XMULIB) $(XTOOLLIB) $(XLIB) | ||
+#endif | ||
+ | ||
+#ifdef USE_NEXTAWLIB | ||
+#undef XawClientLibs | ||
+#define XawClientLibs -lneXtaw $(XMULIB) $(XTOOLLIB) $(XLIB) | ||
+#endif | ||
+ | ||
/* | ||
* add -DWTMP and -DLASTLOG if you want them. | ||
*/ | ||
@@ -27,7 +37,7 @@ XCOMM $Id: Imakefile,v 6.3 1996/07/12 05:01:03 kagotan | ||
OSMAJORVERSION = OSMajorVersion | ||
OSMINORVERSION = OSMinorVersion | ||
|
||
- MAIN_DEFINES = -DUTMP $(TTYGROUPDEF) $(PUCCPTYDDEF) \ | ||
+ MAIN_DEFINES = $(TTYGROUPDEF) $(PUCCPTYDDEF) \ | ||
-DOSMAJORVERSION=$(OSMAJORVERSION) \ | ||
-DOSMINORVERSION=$(OSMINORVERSION) | ||
MISC_DEFINES = /* -DALLOWLOGFILEEXEC */ | ||
@@ -72,7 +82,7 @@ XCOMM $Id: Imakefile,v 6.3 1996/07/12 05:01:03 kagotan | ||
#endif | ||
#endif | ||
|
||
- TERMCAPLIB = TermcapLibrary | ||
+ TERMCAPLIB = TermcapLibrary -lutil | ||
|
||
AllTarget($(PROGRAMS)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- KTerm.ad.orig 2016-11-04 21:41:21 UTC | ||
+++ KTerm.ad | ||
@@ -52,37 +52,43 @@ KTerm.JoinSession:False | ||
|
||
*fontMenu.Label: VT Fonts | ||
*fontMenu*fontdefault*Label: Default | ||
-*VT100*fontList: -*-fixed-medium-r-normal--14-*,\ | ||
- -*-gothic-medium-r-normal--14-*,\ | ||
- -*-mincho-medium-r-normal--14-* | ||
-!*VT100*boldFontList: -*-fixed-bold-r-normal--14-*,\ | ||
-! -*-gothic-bold-r-normal--14-*,\ | ||
-! -*-mincho-bold-r-normal--14-* | ||
+*VT100*fontList: -alias-fixed-medium-r-normal--14-*-*-*-c-*-*-*,\ | ||
+ -*-fixed-medium-r-normal--14-*-*-*-c-*-*-*,\ | ||
+ -*-gothic-medium-r-normal--14-*-*-*-c-*-*-*,\ | ||
+ -*-mincho-medium-r-normal--14-*-*-*-c-*-*-* | ||
+!*VT100*boldFontList: -*-fixed-bold-r-normal--14-*-c-*,\ | ||
+! -*-gothic-bold-r-normal--14-*-c-*,\ | ||
+! -*-mincho-bold-r-normal--14-*-c-* | ||
*fontMenu*font1*Label: Unreadable | ||
-*VT100*fontList1: -*-fixed-medium-r-normal--2-*,\ | ||
- -*-gothic-medium-r-normal--2-*,\ | ||
- -*-mincho-medium-r-normal--2-* | ||
-*VT100*font1: -misc-nil-medium-r-normal--2-*-misc-fontspecific | ||
+*VT100*fontList1: -*-fixed-medium-r-normal--2-*-c-*,\ | ||
+ -*-gothic-medium-r-normal--2-*-c-*,\ | ||
+ -*-mincho-medium-r-normal--2-*-c-* | ||
+*VT100*font1: -misc-nil-medium-r-normal--2-*-c-*-misc-fontspecific | ||
*fontMenu*font2*Label: Tiny | ||
-*VT100*fontList2: -*-fixed-medium-r-normal--14-*,\ | ||
- -*-gothic-medium-r-normal--14-*,\ | ||
- -*-mincho-medium-r-normal--14-* | ||
+*VT100*fontList2: -alias-fixed-medium-r-normal--8-*-*-*-c-*-*-*,\ | ||
+ -*-fixed-medium-r-normal--8-*-*-*-c-*-*-*,\ | ||
+ -*-gothic-medium-r-normal--8-*-*-*-c-*-*-*,\ | ||
+ -*-mincho-medium-r-normal--8-*-*-*-c-*-*-* | ||
*fontMenu*font3*Label: Small | ||
-*VT100*fontList3: -*-fixed-medium-r-normal--16-*,\ | ||
- -*-gothic-medium-r-normal--16-*,\ | ||
- -*-mincho-medium-r-normal--16-* | ||
+*VT100*fontList3: -alias-fixed-medium-r-normal--12-*-*-*-c-*-*-*,\ | ||
+ -*-fixed-medium-r-normal--12-*-*-*-c-*-*-*,\ | ||
+ -*-gothic-medium-r-normal--12-*-*-*-c-*-*-*,\ | ||
+ -*-mincho-medium-r-normal--12-*-*-*-c-*-*-* | ||
*fontMenu*font4*Label: Medium | ||
-*VT100*fontList4: -*-fixed-medium-r-normal--18-*,\ | ||
- -*-gothic-medium-r-normal--18-*,\ | ||
- -*-mincho-medium-r-normal--18-* | ||
+*VT100*fontList4: -alias-fixed-medium-r-normal--16-*-*-*-c-*-*-*,\ | ||
+ -*-fixed-medium-r-normal--16-*-*-*-c-*-*-*,\ | ||
+ -*-gothic-medium-r-normal--16-*-*-*-c-*-*-*,\ | ||
+ -*-mincho-medium-r-normal--16-*-*-*-c-*-*-* | ||
*fontMenu*font5*Label: Large | ||
-*VT100*fontList5: -*-fixed-medium-r-normal--24-*,\ | ||
- -*-gothic-medium-r-normal--24-*,\ | ||
- -*-mincho-medium-r-normal--24-* | ||
+*VT100*fontList5: -alias-fixed-medium-r-normal--20-*-*-*-c-*-*-*,\ | ||
+ -*-fixed-medium-r-normal--20-*-*-*-c-*-*-*,\ | ||
+ -*-gothic-medium-r-normal--20-*-*-*-c-*-*-*,\ | ||
+ -*-mincho-medium-r-normal--20-*-*-*-c-*-*-* | ||
*fontMenu*font6*Label: Huge | ||
-*VT100*fontList6: -*-fixed-medium-r-normal--26-*,\ | ||
- -*-gothic-medium-r-normal--26-*,\ | ||
- -*-mincho-medium-r-normal--26-* | ||
+*VT100*fontList6: -alias-fixed-medium-r-normal--24-*-*-*-c-*-*-*,\ | ||
+ -*-fixed-medium-r-normal--24-*-*-*-c-*-*-*,\ | ||
+ -*-gothic-medium-r-normal--24-*-*-*-c-*-*-*,\ | ||
+ -*-mincho-medium-r-normal--24-*-*-*-c-*-*-* | ||
*fontMenu*fontescape*Label: Escape Sequence | ||
*fontMenu*fontsel*Label: Selection | ||
!fontescape and fontsel overridden by application | ||
@@ -132,5 +138,18 @@ KTerm.JoinSession:False | ||
*tek4014*font3: 6x13 | ||
*tek4014*fontSmall: 6x10 | ||
|
||
-*VT100*translations: #override Shift<Key>space: \ | ||
- begin-conversion(_JAPANESE_CONVERSION) | ||
+!This can be useful if you have an IntelliMouse. It maps the button | ||
+!events generated by the wheel | ||
+*VT100*Translations: #override \ | ||
+ !Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\ | ||
+ !Lock Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\ | ||
+ !Lock @Num_Lock Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\ | ||
+ ! @Num_Lock Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\ | ||
+ <Btn4Down>: scroll-back(5,line) \n\ | ||
+ !Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\ | ||
+ !Lock Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\ | ||
+ !Lock @Num_Lock Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\ | ||
+ ! @Num_Lock Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\ | ||
+ <Btn5Down>: scroll-forw(5,line) | ||
+*VT100.translations: #override \ | ||
+ Shift<Key>space: begin-conversion(_JAPANESE_CONVERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- VTPrsTbl.c.orig 2016-11-04 21:41:21 UTC | ||
+++ VTPrsTbl.c | ||
@@ -490,7 +490,7 @@ CASE_GROUND_STATE, | ||
CASE_GROUND_STATE, | ||
CASE_GROUND_STATE, | ||
/* X Y Z [ */ | ||
-CASE_GROUND_STATE, | ||
+CASE_ECH, | ||
CASE_GROUND_STATE, | ||
CASE_GROUND_STATE, | ||
CASE_GROUND_STATE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- VTparse.h.orig 2016-11-04 21:41:21 UTC | ||
+++ VTparse.h | ||
@@ -118,3 +118,4 @@ | ||
#define CASE_SCS_STATE 77 | ||
#define CASE_GSET_VERSION_STATE 78 | ||
#define CASE_GSET_VERSION 79 | ||
+#define CASE_ECH 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- charproc.c.orig 2016-11-04 21:41:21 UTC | ||
+++ charproc.c | ||
@@ -103,8 +103,8 @@ extern jmp_buf VTend; | ||
extern XtAppContext app_con; | ||
extern Widget toplevel; | ||
extern void exit(); | ||
-extern char *malloc(); | ||
-extern char *realloc(); | ||
+extern void *malloc(); | ||
+extern void *realloc(); | ||
extern fd_set Select_mask; | ||
extern fd_set X_mask; | ||
extern fd_set pty_mask; | ||
@@ -1974,6 +1974,12 @@ static void VTparse() | ||
} | ||
parsestate = groundtable; | ||
break; | ||
+ | ||
+ case CASE_ECH: | ||
+ /* ECH */ | ||
+ ClearRightN(screen, param[0] < 1 ? 1 : param[0]); | ||
+ parsestate = groundtable; | ||
+ break; | ||
|
||
case CASE_IL: | ||
/* IL */ |
Oops, something went wrong.