1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/chinese/moettf/Makefile
Kris Kennaway b4fd0b8e38 Reset maintainer on ports owned by the following committers who have
been inactive for over 12 months and did not respond to my email confirming
their status: keith, nakai, torstenb

Reviewed by:	portmgr
2003-11-03 01:19:26 +00:00

96 lines
3.2 KiB
Makefile

# New ports collection makefile for: Chinese Big5 TrueType fonts
# Date created: 9 July 1999
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= moettf
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= chinese x11-fonts
MASTER_SITES= http://www.edu.tw/download/mandr/biauword/5879/ \
http://www.edu.tw/download/mandr/allbook/lishu/ \
http://www.edu.tw/download/mandr/biauword/kai/ \
ftp://freebsd.sinica.edu.tw/pub/keith/moettf/ \
ftp://ftp.cc.ntut.edu.tw/OS/Linux/packages/chinese/fonts/twmoefont/ttf/
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
BUILD_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm
USE_XLIB= yes
DIST_SUBDIR= zh-moettf
NO_CDROM= "Contact Taiwan's Ministry of Education for commercial use."
NO_BUILD= yes
SHAREMODE= 644
FONTDIR= ${PREFIX}/share/fonts/TrueType
XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType
INSTALL_ENV= PKG_PREFIX=${PREFIX} XFREE86_VERSION=${XFREE86_VERSION} \
DEFAULT=${DEFAULT} WANT_CJK=${WANT_CJK} WANT_GS=${WANT_GS} \
WITHOUT_X=${WITHOUT_X}
.include <bsd.port.pre.mk>
.if defined(WANT_CJK)
RUN_DEPENDS+= bg5latex:${PORTSDIR}/chinese/CJK
.endif
.if defined(WANT_GS)
RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
.endif
.if ${XFREE86_VERSION} == 3 && !defined(WITHOUT_X)
RUN_DEPENDS+= mkfontdir.pl:${PORTSDIR}/x11-servers/XttXF86srv-common
.endif
pre-fetch:
.if defined(WANT_CJK)
@${ECHO} "CJK support will be added."
.endif
.if defined(WANT_GS)
@${ECHO} "Ghostscript support will be added."
.endif
.if defined(WITHOUT_X)
@${ECHO} "X Window support will NOT be added."
.endif
.if defined(DEFAULT)
@${ECHO} "MOETTF will be set as default font."
.endif
.if !defined(WANT_CJK) && !defined(WANT_GS) && !defined(WITHOUT_X) && !defined(DEFAULT)
@${ECHO} --
@${ECHO} "Type \"make WANT_CJK=yes\" if you want CJK support."
@${ECHO} "Type \"make WANT_GS=yes\" if you want Ghostscript support."
@${ECHO} "Type \"make WITHOUT_X=yes\" if you DONT want X Window support."
@${ECHO} "Type \"make DEFAULT=yes\" to set MOETTF the default font."
@${ECHO} "You can use them in combinations."
@${ECHO} --
.endif
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
@unrar x ${DISTDIR}/${DIST_SUBDIR}/edustds1.exe ${WRKDIR}
@${MV} ${WRKDIR}/edustds1.ttf ${WRKDIR}/moe_sungext.ttf
@unrar x ${DISTDIR}/${DIST_SUBDIR}/edustds2.exe ${WRKDIR}
@${MV} ${WRKDIR}/edustds2.ttf ${WRKDIR}/moe_sungsym.ttf
do-install:
.if !exists(${FONTDIR})
@${MKDIR} ${FONTDIR}
.endif
@${INSTALL_DATA} ${WRKDIR}/moe_lishu.ttf ${FONTDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/moe_kai.ttf ${FONTDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kai-pc.ttf ${FONTDIR}/moe_kai_pc.ttf
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/moe_sung.ttf ${FONTDIR}
@${INSTALL_DATA} ${WRKDIR}/moe_sungext.ttf ${FONTDIR}
@${INSTALL_DATA} ${WRKDIR}/moe_sungsym.ttf ${FONTDIR}
@${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>