freebsd-ports/japanese/font-kanji18/Makefile
MANTANI Nobutaka e4be7f3703 - Install font files to ${FONTSDIR} instead of ${DATADIR}.
- Stop to make symbolic links from the font files to
  ${PREFIX}/share/fonts/misc/, which is found in the default
  font path, because recent libXfont does not follow symbolic
  links.
- Add pkg-message.in to show additional font path settings.
- Bump PORTREVISION.
- Set submitter as maintainer.

PR:		225125 [1], 226517 [2]
Submitted by:	WATANABE Kazuhiro <CQG00620@nifty.ne.jp> [2]
Reported by:	Shigeharu TAKENO <shige@iee.niit.ac.jp> [1]
2018-03-25 14:42:13 +00:00

63 lines
1.7 KiB
Makefile

# Created by: Yoshiro MIHIRA <sanpei@sanpei.org>
# $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 <bsd.port.mk>