1999-07-18 00:57:34 +00:00
|
|
|
# New ports collection makefile for: Chinese Big5 TrueType fonts
|
|
|
|
# Version required: 1.0
|
|
|
|
# Date created: 9 July 1999
|
|
|
|
# Whom: Keith Jang <jtjang@gcn.net.tw>
|
|
|
|
#
|
1999-08-25 04:58:03 +00:00
|
|
|
# $FreeBSD$
|
1999-07-18 00:57:34 +00:00
|
|
|
#
|
|
|
|
|
1999-07-19 05:45:07 +00:00
|
|
|
DISTNAME= zh-moettf-1.0
|
1999-07-18 00:57:34 +00:00
|
|
|
CATEGORIES= chinese x11-fonts
|
|
|
|
MASTER_SITES= ftp://ftp.cc.ntut.edu.tw/OS/Linux/packages/chinese/fonts/twmoefont/ttf/ \
|
|
|
|
ftp://ftp.ncu.edu.tw/Linux/Chinese/fonts/twmoefont/ttf/ \
|
|
|
|
ftp://www.edu.tw/download/mandr/allbook/lishu/
|
|
|
|
DISTFILES= moe_kai.ttf moe_sung.ttf edustd-15.exe
|
|
|
|
|
|
|
|
MAINTAINER= jtjang@gcn.net.tw
|
|
|
|
|
|
|
|
BUILD_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
|
|
|
|
LIB_DEPENDS= font.1:${PORTSDIR}/x11-servers/XttXF86srv-common
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
1999-07-19 05:45:07 +00:00
|
|
|
DIST_SUBDIR= zh-moettf
|
1999-07-18 00:57:34 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_CDROM= "Contact Taiwan Ministry of Education for commercial use."
|
|
|
|
SHAREMODE= 644
|
|
|
|
FONTDIR= ${PREFIX}/lib/X11/fonts/TrueType
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@unrar x ${DISTDIR}/${DIST_SUBDIR}/edustd-15.exe ${WRKDIR}
|
|
|
|
@${MV} ${WRKDIR}/Edustd-15.TTF ${WRKDIR}/moe_lishu.ttf
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.if !exists(${FONTDIR})
|
|
|
|
@${ECHO} "========================================================="
|
|
|
|
@${ECHO} "Please add ${FONTDIR} to your font path"
|
|
|
|
@${ECHO} "in /etc/XF86Config."
|
|
|
|
@${ECHO} "========================================================="
|
|
|
|
@${MKDIR} ${FONTDIR}
|
|
|
|
.endif
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/moe_lishu.ttf ${FONTDIR}
|
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/moe_kai.ttf ${FONTDIR}
|
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/moe_sung.ttf ${FONTDIR}
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|