diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-05-13 01:19:36 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-05-13 01:19:36 +0000 |
commit | 14eeb3f72c5095639159c26191ce44a00b203476 (patch) | |
tree | f947161ff06c87d697bcea8213871433e139c13c /chinese/kon2/Makefile | |
parent | Make it ready for coming slave ports. (diff) |
Add kon2 ,
kanji On Console -- Display kanji characters on your own
console.
PR: 50819
Submitted by: Chen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
Notes
Notes:
svn path=/head/; revision=80863
Diffstat (limited to 'chinese/kon2/Makefile')
-rw-r--r-- | chinese/kon2/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/chinese/kon2/Makefile b/chinese/kon2/Makefile new file mode 100644 index 000000000000..35880f82d490 --- /dev/null +++ b/chinese/kon2/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: kon2 with 16dot font +# Date created: 31 March 2003 +# Whom: Chen Chuan-Hsing <statue@freebsd.sinica.edu.tw> +# +# $FreeBSD$ +# + +MASTERDIR= ${.CURDIR}/../../japanese/kon2-16dot +EXTRA_PATCHES= ${.CURDIR}/files/patch-kon.cfg.FreeBSD \ + ${.CURDIR}/files/patch-lib::coding.c +CATEGORIES= chinese + +MAINTAINER= statue@freebsd.sinica.edu.tw + +BUILD_DEPENDS+= ${LOCALBASE}/share/fonts/bdf/kc15f.bdf.gz:${PORTSDIR}/chinese/kcfonts:patch \ + ${LOCALBASE}/share/fonts/bdf/gbkst.bdf.gz:${PORTSDIR}/chinese/fcitx:extract \ + pcf2bdf:${PORTSDIR}/x11-fonts/pcf2bdf + +USE_REINPLACE= yes +PLIST= pkg-plist +KCFONTS_WRKSRC= `cd ${PORTSDIR}/chinese/kcfonts; make -V WRKSRC` +FCITX_WRKSRC= `cd ${PORTSDIR}/chinese/fcitx; make -V WRKSRC` + +post-patch: + ${REINPLACE_CMD} -e "s;jiskan16.bdf.gz;kc15f.bdf.gz;g" \ + -e "s;ja_JP.ujis:Coding;ja_JP.ujis:;g" \ + -e "s;zh_TW.big5:;zh_TW.big5:Coding;g" \ + -e "s;BIG5.HKU-0;BIG5-0;g" \ + -e "s,GB2312.1980,GBK,g" \ + ${WRKSRC}/kon.cfg.FreeBSD + ${REINPLACE_CMD} -e "s;BIG5.HKU-0;BIG5-0;g" \ + -e "s;BIG5, 0;BIG5, 0xfefe;g" \ + -e "s,GB2312.1980,GBK,g" \ + ${WRKSRC}/lib/coding.c + +pre-install: + ${MKDIR} ${PREFIX}/share/fonts/bdf + cd ${KCFONTS_WRKSRC} && gcc -O -pipe -o kc15f tran.c kc15f.c && \ + ./kc15f | ${GZIP_CMD} - > ${PREFIX}/share/fonts/bdf/kc15f.bdf.gz + cd ${FCITX_WRKSRC}/fonts && ${GUNZIP_CMD} -cd gbkst16.pcf | pcf2bdf | \ + ${SED} -e 's/gbk/GBK/g' -e '/^$$/d' | ${GZIP_CMD} - > \ + ${PREFIX}/share/fonts/bdf/gbkst16.bdf.gz + +.include "${MASTERDIR}/Makefile" |