1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/japanese/font-cica/Makefile
Hajimu UMEMOTO db7032cc2d Simplify.
2018-03-15 16:21:09 +00:00

46 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= cica
PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= japanese x11-fonts
MASTER_SITES= https://github.com/miiton/Cica/releases/download/v${PORTVERSION}/
PKGNAMEPREFIX= ja-font-
DISTNAME= Cica_v${PORTVERSION}
MAINTAINER= ume@FreeBSD.org
COMMENT= Cica Japanese monospaced fonts for programming
USES= fonts:fc zip
FONTNAME= cica
NO_WRKSUBDIR= yes
NO_ARCH= yes
NO_BUILD= yes
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
SUB_FILES= pkg-install
WRKSRC= ${WRKDIR}/${DISTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${STAGEDIR}${FONTSDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
${FILESDIR}/62-fonts-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
"! -name *\.ttf"
.include <bsd.port.mk>