freebsd-ports/japanese/font-mplus-bitmap/Makefile
Hiroki Sato d64e9ecffe - Add LICENSE.
- Use FONTPATHSPEC and nuke pkg-message for adding FontPath manually.
2019-12-30 04:53:05 +00:00

48 lines
1.2 KiB
Makefile

# Created by: The 244th namelessness at 2ch.net
# $FreeBSD$
PORTNAME= mplus
PORTVERSION= 2.2.4
PORTREVISION= 3
CATEGORIES= japanese x11-fonts
MASTER_SITES= OSDN/${PORTNAME}-fonts/5030/
PKGNAMEPREFIX= ja-font-
PKGNAMESUFFIX= -bitmap
DISTNAME= ${PORTNAME}_bitmap_fonts-2.2.4
MAINTAINER= hrs@FreeBSD.org
COMMENT= M+ Bitmap fonts
LICENSE= PD
BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf
USES= fonts
FONTPATHSPEC= ${PORTNAME}${PKGNAMESUFFIX}:unscaled:pri=60
NO_BUILD= yes
NO_ARCH= yes
FONTSDIR= ${PREFIX}/share/fonts/${PORTNAME}${PKGNAMESUFFIX}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= INSTALL_E LICENSE_E README_E \
INSTALL_J LICENSE_J README_J
OPTIONS_DEFINE= DOCS
post-extract:
cd ${WRKSRC} && \
${CAT} fonts_e/fonts.alias fonts_e/euro/fonts.alias \
fonts_j/fonts.alias | ${SORT} -r > ${WRKDIR}/fonts.alias
do-install:
@${MKDIR} ${STAGEDIR}${FONTSDIR}
cd ${WRKSRC} && \
${SETENV} DESTDIR="${STAGEDIR}${FONTSDIR}" \
${SH} ${WRKSRC}/install_mplus_fonts
${INSTALL_DATA} ${WRKDIR}/fonts.alias ${STAGEDIR}${FONTSDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>