1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/chinese/moettf/Makefile
Eitan Adler 625ac80599 LEGAL, chinese/moettf: sync LEGAL text
Add 's and remove trailing '.'
2013-12-11 19:51:29 +00:00

59 lines
1.8 KiB
Makefile

# Created by: Jing-Tang Keith Jang <keith@FreeBSD.org>
# $FreeBSD$
PORTNAME= moettf
PORTVERSION= 2.0
PORTREVISION= 3
CATEGORIES= chinese x11-fonts
MASTER_SITES= http://ftp.riken.go.jp/pub/FreeBSD/distfiles/zh-moettf/ \
http://ftp.math.uni-bielefeld.de/pub/unix/FreeBSD/distfiles/zh-moettf/
DISTFILES= moe_kai.ttf moe_sung.ttf edustds1.exe edustds2.exe \
edustd-15.exe kai-pc.ttf
MAINTAINER= ports@FreeBSD.org
COMMENT= Three Chinese BIG5 TrueType fonts: Kai LiShu Sung SungExt
EXTRACT_DEPENDS=unrar:${PORTSDIR}/archivers/unrar
DIST_SUBDIR= zh-moettf
NO_CDROM= Contact Taiwan's Ministry of Education for commercial use
NO_BUILD= yes
NO_WRKSUBDIR= yes
TTF_DEFAULT= moe_sung.ttf
TTF_DEFAULTKAI= moe_kai.ttf
TTF= moe_lishu.ttf moe_kai.ttf moe_sung.ttf moe_sungext.ttf moe_sungsym.ttf
NO_STAGE= yes
do-extract:
@${MKDIR} ${WRKSRC}
@unrar x ${DISTDIR}/${DIST_SUBDIR}/edustd-15.exe ${WRKSRC}
@${MV} ${WRKSRC}/Edustd-15.TTF ${WRKSRC}/moe_lishu.ttf
@unrar x ${DISTDIR}/${DIST_SUBDIR}/edustds1.exe ${WRKSRC}
@${MV} ${WRKSRC}/edustds1.ttf ${WRKSRC}/moe_sungext.ttf
@unrar x ${DISTDIR}/${DIST_SUBDIR}/edustds2.exe ${WRKSRC}
@${MV} ${WRKSRC}/edustds2.ttf ${WRKSRC}/moe_sungsym.ttf
@${CP} ${DISTDIR}/${DIST_SUBDIR}/moe_kai.ttf ${WRKSRC}
@${CP} ${DISTDIR}/${DIST_SUBDIR}/moe_sung.ttf ${WRKSRC}
do-install:
@${MKDIR} ${FONTSDIR}
.for ttf in ${TTF}
${INSTALL_DATA} ${WRKSRC}/${ttf} ${FONTSDIR}
.endfor
post-install:
.if !defined(WITHOUT_X11)
.for f in fonts.dir fonts.alias
${SED} -e "s/ t w m o e _ k a i/twmoe_kai/g" \
-e "s/ ° ê ¦ r ¼ Ð · Ç § º Å é/twmoe_sung/g" \
${XFONTSDIR}/${f} > ${XFONTSDIR}/${f}.$$ && \
${MV} ${XFONTSDIR}/${f}.$$ ${XFONTSDIR}/${f}
.endfor
.endif
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/chinese/ttfm/Makefile.ttf"
.include <bsd.port.post.mk>