# Created by: Yoshiro MIHIRA # $FreeBSD$ PORTNAME= kanji PORTVERSION= 1.0 PORTREVISION= 1 CATEGORIES= japanese x11-fonts MASTER_SITES= PORTS_JP/${DISTNAME} PKGNAMEPREFIX= ja-font- PKGNAMESUFFIX?= 18 DISTNAME= ${PORTNAME}${PKGNAMESUFFIX} DISTFILES?= 573.z 574.z 575.z 576.z 577.z 578.z 579.z 580.z 581.z DIST_SUBDIR= ${DISTNAME} MAINTAINER= CQG00620@nifty.ne.jp COMMENT= ${PKGNAMESUFFIX}-dot Kanji font BUILD_DEPENDS= mkbold:x11-fonts/mkbold-mkitalic \ bdftopcf:x11-fonts/bdftopcf USES= fonts NO_ARCH= yes NO_WRKSUBDIR= yes EXTRACT_CMD= ${GZCAT} EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= | ${SED} '/bin\/sh/,/exit 0/!d' \ | (cd ${WRKSRC} && ${SH}) PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${WRKDIR}/pkg-install MAKEFILE= ${WRKDIR}/Makefile SUB_FILES= Makefile pkg-install pkg-message SUB_LIST= FONTSALIAS="${FONTSDIR}/fonts.alias.${PKGNAMESUFFIX}" \ SRCS="${SRCS}" PORTDOCS= README.${PORTNAME}${PKGNAMESUFFIX} SRCS?= kanji18.bdf kanji16.bdf README_FILE?= 573.z RESIZESED_FILE?=18to16.sed OPTIONS_DEFINE= DOCS post-extract: cd ${WRKSRC} && ${CAT} ${DISTNAME}.?? | uudecode ${GUNZIP_CMD} ${WRKSRC}/*.Z ${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/${README_FILE} \ | ${SED} '/bin\/sh/,/exit 0/d' \ > ${WRKSRC}/README.${DISTNAME} cd ${WRKSRC} && \ ${SED} -f ${RESIZESED_FILE} < ${PORTNAME}${PKGNAMESUFFIX}.bdf \ > ${PORTNAME}${RESIZESED_FILE:R:C/^[0-9][0-9]to//}.bdf pre-build: apply-slist post-install: ${INSTALL_DATA} ${FILESDIR}/fonts.alias.${PKGNAMESUFFIX} \ ${STAGEDIR}${FONTSDIR}/fonts.alias.${PKGNAMESUFFIX} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && \ ${INSTALL_DATA} README.${DISTNAME} ${STAGEDIR}${DOCSDIR} .include