Stage support for japanese/kon2-16dot and it's slaves

PR:		port/186321 (based on)
Submitted by:	maintainer
This commit is contained in:
Pawel Pekala 2014-02-02 14:09:50 +00:00
parent 76e010042e
commit 23557c7727
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342297
9 changed files with 50 additions and 31 deletions

View File

@ -19,7 +19,7 @@ PLIST_FILES= share/fonts/bdf/kc15f.bdf.gz \
share/fonts/bdf/8x16.bdf.gz
post-patch: post-patch-zhkon2
NO_STAGE= yes
post-patch-zhkon2:
@${REINPLACE_CMD} -e 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/term.c \
${WRKSRC}/src/display/vga.c
@ -32,9 +32,12 @@ post-build-zhkon2:
post-install: post-install-zhkon2
post-install-zhkon2:
@${MKDIR} ${PREFIX}/share/fonts/bdf
cd ${KCFONTS_WRKSRC} && ./kc15f | ${GZIP_CMD} - > ${PREFIX}/share/fonts/bdf/kc15f.bdf.gz
cd ${CCE_WRKSRC} && ${CAT} fonts/gb16fs.bdf | ${GZIP_CMD} - > ${PREFIX}/share/fonts/bdf/gb16fs.bdf.gz
cd ${CCE_WRKSRC} && ${CAT} fonts/8x16.bdf | ${GZIP_CMD} - > ${PREFIX}/share/fonts/bdf/8x16.bdf.gz
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fonts/bdf
cd ${KCFONTS_WRKSRC} && ./kc15f | ${GZIP_CMD} - > \
${STAGEDIR}${PREFIX}/share/fonts/bdf/kc15f.bdf.gz
cd ${CCE_WRKSRC} && ${CAT} fonts/gb16fs.bdf | ${GZIP_CMD} - > \
${STAGEDIR}${PREFIX}/share/fonts/bdf/gb16fs.bdf.gz
cd ${CCE_WRKSRC} && ${CAT} fonts/8x16.bdf | ${GZIP_CMD} - > \
${STAGEDIR}${PREFIX}/share/fonts/bdf/8x16.bdf.gz
.include "${MASTERDIR}/Makefile"

View File

@ -5,5 +5,4 @@ KONFONT= 14dot
MASTERDIR= ${.CURDIR}/../kon2-16dot
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -14,19 +14,14 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
# '+=' is for slave ports
MAINTAINER?= turutani@scphys.kyoto-u.ac.jp
MAINTAINER= turutani@scphys.kyoto-u.ac.jp
COMMENT= Kanji On Console -- Display kanji characters on your own console
ONLY_FOR_ARCHS= i386 amd64
MAN1= kon.1
MANLANG= ja
PORTDOCS= README README.FreeBSD
SUB_LIST= KON16FONT=${KON16FONT} \
KON14FONT=${KON14FONT}
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !defined(KONFONT)
@ -48,6 +43,7 @@ post-patch:
${WRKSRC}/.config::
(${ECHO_CMD} "DISTDIR = ${DISTDIR}"; \
${ECHO_CMD} "TOPDIR = ${PREFIX}"; \
${ECHO_CMD} "S_TOPDIR = ${STAGEDIR}${PREFIX}"; \
${CAT} ${FILESDIR}/dotconfig; \
) > ${WRKSRC}/.config
@ -64,10 +60,8 @@ post-configure:
done
post-install:
${INSTALL_MAN} ${WRKSRC}/src/kon.1 ${MANPREFIX}/man/ja/man1
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
${INSTALL_MAN} ${WRKSRC}/src/kon.1 ${STAGEDIR}${MANPREFIX}/man/ja/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>

View File

@ -1,10 +1,10 @@
# $FreeBSD$
BINDIR = $(TOPDIR)/bin
LIBDIR = $(TOPDIR)/etc
MANDIR = $(TOPDIR)/man/ja/man
FONTDIR = $(TOPDIR)/share/fonts/bdf
BINDIR = $(S_TOPDIR)/bin
LIBDIR = $(S_TOPDIR)/etc
MANDIR = $(S_TOPDIR)/man/ja/man
FONTDIR = $(S_TOPDIR)/share/fonts/bdf
CONFIG_NAME = kon.cfg
CFLAGS += -DCONFIG_NAME=\"$(LIBDIR)/$(CONFIG_NAME)\"
CFLAGS += -DCONFIG_NAME=\"$(TOPDIR)/etc/$(CONFIG_NAME)\"
HAS_VGA = HAS_VGA
FLD_MINIX = FLD_MINIX

View File

@ -13,10 +13,10 @@
(cd ${.CURDIR}/src ; make install)
(cd ${.CURDIR}/font ; make install)
- 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
+ install -m 0644 -c kon.cfg.FreeBSD ${LIBDIR}/kon.cfg
+ @sh tools/makedir ${FONTDIR}
+ @for i in k14.bdf 7x14rk.bdf jiskan16.bdf 8x16rk.bdf; do\
+ install -c -m 644 -o bin -g bin $(DISTDIR)/$$i ${FONTDIR};\
+ install -c -m 644 $(DISTDIR)/$$i ${FONTDIR};\
+ gzip -f -9 ${FONTDIR}/$$i;\
+ done

View File

@ -1,5 +1,5 @@
--- font/Makefile.FreeBSD.orig 1997-01-25 19:08:44.000000000 +0900
+++ font/Makefile.FreeBSD 2012-05-10 00:14:28.693551770 +0900
+++ font/Makefile.FreeBSD 2014-01-31 11:01:37.000000000 +0900
@@ -11,6 +11,7 @@
.endif
@ -8,3 +8,11 @@
.if exists(${.OBJDIR}/../lib)
LIBOBJ= -L${.OBJDIR}/../lib
@@ -20,4 +21,7 @@
LDADD= ${LIBOBJ} -lgon
+install: ${PROG}
+ /usr/bin/install -s ${PROG} ${BINDIR}
+
.include <bsd.prog.mk>

View File

@ -1,14 +1,14 @@
--- src/Makefile.FreeBSD.orig 1997-01-30 10:29:25.000000000 +0900
+++ src/Makefile.FreeBSD 2012-05-10 02:50:12.820551080 +0900
@@ -1,12 +1,19 @@
+++ src/Makefile.FreeBSD 2014-01-31 10:53:18.000000000 +0900
@@ -1,12 +1,17 @@
# FreeBSD makefile for kon
# Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
+.include <bsd.own.mk>
+
PROG= kon
BINOWN= root
BINMODE= 4555
-BINOWN= root
-BINMODE= 4555
-SRCS= vt.c sock.c fnld.c vc.c mouse.c term.c main.c utmp.c errors.c child.c
+SRCS= vt.c sock.c fnld.c vc.c mouse.c term.c main.c errors.c child.c
+.if exists(${INCLUDEDIR}/utmpx.h)
@ -21,4 +21,12 @@
+MK_MAN= no
CFLAGS+= -I${.CURDIR}/../include
CLEANFILES= Makefile
@@ -28,4 +33,7 @@
.include "${.CURDIR}/../.config"
.endif
+install: ${PROG}
+ /usr/bin/install -s ${PROG} ${BINDIR}
+
.include <bsd.prog.mk>

View File

@ -2,7 +2,7 @@ KON2 is a program for displaying Kanji (japanese characters) on the
console of Linux/FreeBSD. KON2 hooks the output of console and
redirects to pseudo tty, drawing on the VGA display.
If KON2 would be going to somthing wrong, check shared-memories being
If KON2 would be going to something wrong, check shared-memories being
loading or not. If not, add "options SYSVSHM" to
/usr/src/sys/i386/conf/GENERIC, and reconfigure the kernel.

View File

@ -1,9 +1,16 @@
bin/fld
@mode 4555
bin/kon
@mode
etc/kon.cfg
@owner bin
@group bin
share/fonts/bdf/7x14rk.bdf.gz
share/fonts/bdf/k14.bdf.gz
share/fonts/bdf/8x16rk.bdf.gz
share/fonts/bdf/jiskan16.bdf.gz
@owner
@group
man/ja/man1/kon.1.gz
@dirrm share/fonts/bdf
@dirrmtry share/fonts