freebsd-ports/japanese/font-mikachan/Makefile
Hiroki Sato f053d39def Fix inconsistent installation directories of Japanese fonts and
reorganize the package names:

 (new)     -> font-ayu18
 (new)     -> font-ayu20
 k10       -> font-naga10 (also builds "marunaga" variant now)
 k12       -> font-kaname12
 (new)     -> font-elisa10 (resurrected)
 elisa8x8  -> font-elisa8
 kanji18   -> font-kanji18 (also builds 16-dot variant now)
 kanji26   -> font-kanji26 (also builds 24-dot variant now)
 kappa20   -> font-kappa20 (Ayu fonts is separated into font-ayu20)
 mikachan-ttfonts -> font-mikachan
 monafonts-ttf -> font-mona-ttf
 monafonts -> font-mona

All of bitmap fonts are now installed into misc/, and the TrueType fonts go
into TTF/.

No objection from:	maintainers
2015-09-25 21:48:09 +00:00

46 lines
1.1 KiB
Makefile

# Created by: sada
# $FreeBSD$
PORTNAME= mikachan
PORTVERSION= 9.1
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://mikachan.sourceforge.jp/
PKGNAMEPREFIX= ja-font-
DISTNAME= ver${PORTVERSION}
EXTRACT_SUFX= .lzh
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= turutani@scphys.kyoto-u.ac.jp
COMMENT= Handwritten Japanese TrueType fonts by Mika-chan
EXTRACT_DEPENDS= lha:${PORTSDIR}/archivers/lha
USES= fonts:fc
FONTNAME= TTF
EXTRACT_CMD= lha
EXTRACT_BEFORE_ARGS= pq
EXTRACT_AFTER_ARGS= > ${WRKSRC}/mika.ttf
NO_CDROM= Do not sell distfile
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUB_FILES= pkg-install
SUB_LIST= DIRFILE="${DATADIR}/fonts.dir"
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
PLIST_FILES= %%DATADIR%%/fonts.dir \
%%DATADIR%%/mika.ttf \
%%FONTSDIR%%/mika.ttf
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} \
${WRKSRC}/mika.ttf ${FILESDIR}/fonts.dir \
${STAGEDIR}${DATADIR}
post-install:
@${MKDIR} ${STAGEDIR}${FONTSDIR}
cd ${STAGEDIR}${FONTSDIR} && \
${LN} -s ../../../${DATADIR_REL}/*.ttf .
.include <bsd.port.mk>