aboutsummaryrefslogtreecommitdiff
path: root/japanese/kon2-16dot/files
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>1998-09-26 15:41:21 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>1998-09-26 15:41:21 +0000
commit6c225cc3951aab11b12d39baae9ba65214ddb280 (patch)
tree6a13897f9ffc0c40cc292a8c7428ee39b08f1135 /japanese/kon2-16dot/files
parent8234e315bda4b19fb4b7a854096c9d120f3ccc52 (diff)
downloadports-6c225cc3951aab11b12d39baae9ba65214ddb280.tar.gz
ports-6c225cc3951aab11b12d39baae9ba65214ddb280.zip
Notes
Diffstat (limited to 'japanese/kon2-16dot/files')
-rw-r--r--japanese/kon2-16dot/files/dotconfig2
-rw-r--r--japanese/kon2-16dot/files/patch-aa34
-rw-r--r--japanese/kon2-16dot/files/patch-ac4
-rw-r--r--japanese/kon2-16dot/files/patch-ad17
-rw-r--r--japanese/kon2-16dot/files/patch-ae4
-rw-r--r--japanese/kon2-16dot/files/patch-ai8
-rw-r--r--japanese/kon2-16dot/files/patch-aj5
7 files changed, 68 insertions, 6 deletions
diff --git a/japanese/kon2-16dot/files/dotconfig b/japanese/kon2-16dot/files/dotconfig
index 4288bff0dd35..49d27d8d6867 100644
--- a/japanese/kon2-16dot/files/dotconfig
+++ b/japanese/kon2-16dot/files/dotconfig
@@ -4,7 +4,7 @@ TOPDIR = %%PREFIX%%
BINDIR = $(TOPDIR)/bin
LIBDIR = $(TOPDIR)/etc
MANDIR = $(TOPDIR)/man/ja/man1
-FONTDIR = $(TOPDIR)/lib/fonts
+FONTDIR = $(TOPDIR)/share/fonts/bdf
CONFIG_NAME = kon.cfg
CFLAGS += -DCONFIG_NAME=\"$(LIBDIR)/$(CONFIG_NAME)\"
diff --git a/japanese/kon2-16dot/files/patch-aa b/japanese/kon2-16dot/files/patch-aa
index 1873aa7d14b7..db9410127742 100644
--- a/japanese/kon2-16dot/files/patch-aa
+++ b/japanese/kon2-16dot/files/patch-aa
@@ -34,3 +34,37 @@
ioctl(0, VT_SETMODE, &vtm);
vInfo.graph_mode();
if (useHardScroll)
+@@ -830,21 +830,31 @@
+
+ static int ConfigBeep(const char *confstr)
+ {
+- beepCount = atoi(confstr) * 10000;
+ #if defined(linux)
++ beepCount = atoi(confstr) * 10000;
+ if (beepCount > 0)
+ ioperm(COUNTER_ADDR, 1, TRUE);
+ #endif
++#if defined(__FreeBSD__)
++ beepCount = atoi(confstr) * 10;
++#endif
+ return SUCCESS;
+ }
+
++#define BELL_PITCH 800
++
+ void Beep(void)
+ {
+- if (!con.active || beepCount <= 0) return;
+ #if defined(linux)
++ if (!con.active || beepCount <= 0) return;
+ PortOutb(PortInb(COUNTER_ADDR)|3, COUNTER_ADDR);
+ usleep(beepCount);
+ PortOutb(PortInb(COUNTER_ADDR)&0xFC, COUNTER_ADDR);
++#endif
++#if defined(__FreeBSD__)
++ if(beepCount <= 0) return;
++ ioctl(fileno(stdout), KDMKTONE, (BELL_PITCH & 0xffff) |
++ ((beepCount & 0xffff) << 16));
+ #endif
+ }
+
diff --git a/japanese/kon2-16dot/files/patch-ac b/japanese/kon2-16dot/files/patch-ac
index c3876ed890ba..84dcedc40a70 100644
--- a/japanese/kon2-16dot/files/patch-ac
+++ b/japanese/kon2-16dot/files/patch-ac
@@ -15,8 +15,8 @@
- install -g wheel -o root -m 0644 -c kon.cfg.FreeBSD /usr/local/etc/kon.cfg
+ install -g wheel -o root -m 0644 -c kon.cfg.FreeBSD ${LIBDIR}/kon.cfg
+ @sh tools/makedir ${FONTDIR}
-+ @for i in k14.bdf 7x14rk.bdf; do\
-+ install -c $(DISTDIR)/$$i ${FONTDIR};\
++ @for i in k14.bdf 7x14rk.bdf jiskan16.bdf 8x16rk.bdf; do\
++ install -c -m 644 -o bin -g bin $(DISTDIR)/$$i ${FONTDIR};\
+ gzip -f -9 ${FONTDIR}/$$i;\
+ done
diff --git a/japanese/kon2-16dot/files/patch-ad b/japanese/kon2-16dot/files/patch-ad
index 3a4f01d3827a..96f2563c544a 100644
--- a/japanese/kon2-16dot/files/patch-ad
+++ b/japanese/kon2-16dot/files/patch-ad
@@ -1,5 +1,20 @@
--- kon.cfg.FreeBSD.orig Fri Jan 24 02:17:34 1997
-+++ kon.cfg.FreeBSD Fri Apr 11 08:27:07 1997
++++ kon.cfg.FreeBSD Wed Sep 2 22:24:15 1998
+@@ -115,8 +115,11 @@
+
+ # Startup command definition (usually font loading commands are specified)
+-bdf-zcat:Startup
++bdf-zcat16:@@KON16FONT@@
+- gzip -cd /usr/local/lib/fonts/k14.bdf.gz | /usr/local/bin/fld -t bdf -n
+- gzip -cd /usr/local/lib/fonts/7x14rk.bdf.gz | /usr/local/bin/fld -t bdf -n
++ gzip -cd @@PREFIX@@/share/fonts/bdf/jiskan16.bdf.gz | /usr/local/bin/fld -t bdf -n
++ gzip -cd @@PREFIX@@/share/fonts/bdf/8x16rk.bdf.gz | /usr/local/bin/fld -t bdf -n
++bdf-zcat14:@@KON14FONT@@
++ gzip -cd @@PREFIX@@/share/fonts/bdf/k14.bdf.gz | /usr/local/bin/fld -t bdf -n
++ gzip -cd @@PREFIX@@/share/fonts/bdf/7x14rk.bdf.gz | /usr/local/bin/fld -t bdf -n
+ minix:
+ /usr/bin/fld.minix -n /usr/share/fonts/publicfont.ank
+ /usr/bin/fld.minix -n /usr/share/fonts/publicfont.k14
@@ -143,13 +143,13 @@
# Mouse type definition. Choose one of: Microsoft,
# MouseSystems, BusMouse, MMSeries, Logitech, or None.
diff --git a/japanese/kon2-16dot/files/patch-ae b/japanese/kon2-16dot/files/patch-ae
index 53a88f965cd1..1ae00152e903 100644
--- a/japanese/kon2-16dot/files/patch-ae
+++ b/japanese/kon2-16dot/files/patch-ae
@@ -5,10 +5,10 @@
.if n .ta 2.5i
.if t .ta 1.8i
-/usr/local/lib/kon.cfg 環境設定ファイル
-+/usr/local/etc/kon.cfg 環境設定ファイル
++@@PREFIX@@/etc/kon.cfg 環境設定ファイル
.br
-/usr/lib/font/* フォントファイル
-+/usr/local/lib/fonts/* フォントファイル
++@@PREFIX@@/share/fonts/bdf/* フォントファイル
.SH 【関連項目】
swkon(1), fld(1)
.SH 【注意事項】
diff --git a/japanese/kon2-16dot/files/patch-ai b/japanese/kon2-16dot/files/patch-ai
new file mode 100644
index 000000000000..c75fac3016b2
--- /dev/null
+++ b/japanese/kon2-16dot/files/patch-ai
@@ -0,0 +1,8 @@
+--- doc/CHANGES.orig Fri Jan 23 01:41:23 1998
++++ doc/CHANGES Fri Jan 23 01:40:52 1998
+@@ -128,3 +128,5 @@
+ FreeBSD での kon.cfg, kon のインストール時のパーミッション修正
+ KON2 0.3(97/2/06) manabe@dsl.ics.tut.ac.jp
+ FreeBSD 版 kon.cfg での VGA レジスタ値を Linux でも利用
++KON2 0.3(98/1/23) s-nabe@cs.titech.ac.jp
++ FreeBSD でのビープがなるようにした
diff --git a/japanese/kon2-16dot/files/patch-aj b/japanese/kon2-16dot/files/patch-aj
new file mode 100644
index 000000000000..55d44e251818
--- /dev/null
+++ b/japanese/kon2-16dot/files/patch-aj
@@ -0,0 +1,5 @@
+--- include/version.h.orig Fri Jan 23 01:41:39 1998
++++ include/version.h Fri Jan 23 01:36:12 1998
+@@ -1 +1 @@
+-#define VERSION "ver.0.3 (01/28)"
++#define VERSION "ver.0.3 (1998/01/23)"