2003-05-13 01:19:36 +00:00
|
|
|
# New ports collection makefile for: kon2 with 16dot font
|
|
|
|
# Date created: 31 March 2003
|
|
|
|
# Whom: Chen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-05-01 11:41:17 +00:00
|
|
|
PORTREVISION= 2
|
2004-02-23 19:46:00 +00:00
|
|
|
|
2003-05-13 01:19:36 +00:00
|
|
|
MASTERDIR= ${.CURDIR}/../../japanese/kon2-16dot
|
|
|
|
CATEGORIES= chinese
|
|
|
|
|
2005-07-25 21:58:10 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-05-13 01:19:36 +00:00
|
|
|
|
2005-05-01 00:42:58 +00:00
|
|
|
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/chinese/kcfonts:patch \
|
2005-05-01 11:41:17 +00:00
|
|
|
${NONEXISTENT}:${PORTSDIR}/chinese/cce:extract
|
2003-05-13 01:19:36 +00:00
|
|
|
|
|
|
|
KCFONTS_WRKSRC= `cd ${PORTSDIR}/chinese/kcfonts; make -V WRKSRC`
|
2005-05-01 11:41:17 +00:00
|
|
|
CCE_WRKSRC= `cd ${PORTSDIR}/chinese/cce; make -V WRKSRC`
|
2004-02-17 22:47:20 +00:00
|
|
|
|
2005-05-01 00:42:58 +00:00
|
|
|
PLIST_FILES= share/fonts/bdf/kc15f.bdf.gz \
|
2005-05-01 11:41:17 +00:00
|
|
|
share/fonts/bdf/gb16fs.bdf.gz \
|
2005-05-01 00:42:58 +00:00
|
|
|
share/fonts/bdf/8x16.bdf.gz
|
2005-03-05 18:30:20 +00:00
|
|
|
|
|
|
|
post-patch: post-patch-zhkon2
|
|
|
|
post-patch-zhkon2:
|
|
|
|
@${REINPLACE_CMD} -e 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/term.c \
|
2003-09-27 01:11:24 +00:00
|
|
|
${WRKSRC}/src/display/vga.c
|
2005-05-01 00:42:58 +00:00
|
|
|
@cd ${WRKSRC} && ${PATCH} < ${.CURDIR}/files/patch-lib::coding.c
|
|
|
|
@cd ${WRKSRC} && ${PATCH} < ${.CURDIR}/files/patch-kon.cfg.FreeBSD
|
2003-05-13 01:19:36 +00:00
|
|
|
|
2005-03-05 18:30:20 +00:00
|
|
|
post-build: post-build-zhkon2
|
|
|
|
post-build-zhkon2:
|
|
|
|
@cd ${KCFONTS_WRKSRC} && ${MAKE} kc15f
|
|
|
|
|
|
|
|
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
|
2005-05-01 11:41:17 +00:00
|
|
|
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
|
2003-05-13 01:19:36 +00:00
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|