freebsd-ports/x11-fonts/wqy/Makefile
Xin LI 87e4579c33 Update to 0.7.0 (the version goes backward since the old version
number is from where the fontset is derived from).

Submitted by:	Dryice Liu <dryice dryice name> (maintainer)
PR:		ports/97779
2006-05-29 01:58:48 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: wqy font
# Date created: 11 May 2005
# Whom: Dryice Liu <dryice@liu.com.cn>
#
# $FreeBSD$
#
PORTNAME= wqy
PORTVERSION= 0.7.0
PORTEPOCH= 1
CATEGORIES= x11-fonts
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://dryice.name/computer/FreeBSD/distfiles/
MASTER_SITE_SUBDIR= wqy
DISTNAME= ${PORTNAME}-bitmapfont-pcf-${PORTVERSION}-4
MAINTAINER= dryice@dryice.name
COMMENT= A font which includes all the CJK characters covered by Unicode 4.0
WRKSRC= ${WRKDIR}/${PORTNAME}-bitmapfont
NO_BUILD= yes
USE_X_PREFIX= yes
FONTSDIR= lib/X11/fonts/wqy
PLIST_SUB= FONTSDIR=${FONTSDIR}
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog CREDIT GPL.txt INSTALL INSTALL.zh.gb2312 LOGO.png PLEASE_HELP_TO_IMPROVE README STAT
.endif
do-install:
@${MKDIR} ${PREFIX}/${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/*.pcf ${PREFIX}/${FONTSDIR}
post-install:
@${RM} ${PREFIX}/${FONTSDIR}/fonts* >/dev/null 2>&1 || true
@command mkfontdir ${PREFIX}/${FONTSDIR} || true
@${CP} ${PREFIX}/${FONTSDIR}/fonts.dir ${PREFIX}/${FONTSDIR}/fonts.scale || true
@command fc-cache -v ${PREFIX}/${FONTSDIR} || true
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>