mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
8cf8875aef
adoption. Note that I have left the maintainer's own ftp site as a MASTERSITE because it still appears to be active (for now, anyways). Hat: portmgr
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
# New ports collection makefile for: kon2 with 16dot font
|
|
# Date created: 31 March 2003
|
|
# Whom: Chen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTREVISION= 2
|
|
|
|
MASTERDIR= ${.CURDIR}/../../japanese/kon2-16dot
|
|
CATEGORIES= chinese
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/chinese/kcfonts:patch \
|
|
${NONEXISTENT}:${PORTSDIR}/chinese/cce:extract
|
|
|
|
USE_REINPLACE= yes
|
|
KCFONTS_WRKSRC= `cd ${PORTSDIR}/chinese/kcfonts; make -V WRKSRC`
|
|
CCE_WRKSRC= `cd ${PORTSDIR}/chinese/cce; make -V WRKSRC`
|
|
|
|
PLIST_FILES= share/fonts/bdf/kc15f.bdf.gz \
|
|
share/fonts/bdf/gb16fs.bdf.gz \
|
|
share/fonts/bdf/8x16.bdf.gz
|
|
|
|
post-patch: post-patch-zhkon2
|
|
post-patch-zhkon2:
|
|
@${REINPLACE_CMD} -e 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/term.c \
|
|
${WRKSRC}/src/display/vga.c
|
|
@cd ${WRKSRC} && ${PATCH} < ${.CURDIR}/files/patch-lib::coding.c
|
|
@cd ${WRKSRC} && ${PATCH} < ${.CURDIR}/files/patch-kon.cfg.FreeBSD
|
|
|
|
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
|
|
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
|
|
|
|
.include "${MASTERDIR}/Makefile"
|