From 8c0f938203beb11d82af54347620d211cbb478a7 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Mon, 29 Dec 2003 05:50:13 +0000 Subject: New port: chinese/mingunittf This port installs Chinese Big5HKSCS TrueType Mingti fonts. WWW: http://www.info.gov.hk/digital21/unicode/hkscs/reference_iso10646.html PR: ports/59793 Submitted by: Statue --- chinese/mingunittf/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 chinese/mingunittf/Makefile (limited to 'chinese/mingunittf/Makefile') diff --git a/chinese/mingunittf/Makefile b/chinese/mingunittf/Makefile new file mode 100644 index 000000000000..d8eae9d5dd7f --- /dev/null +++ b/chinese/mingunittf/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: HKSCS Chinese TrueType fonts +# Date created: 29 Nov 2003 +# Whom: Shen Chuan-Hsing +# +# $FreeBSD$ +# + +PORTNAME= mingunittf +PORTVERSION= 1.08 +CATEGORIES= chinese x11-fonts +MASTER_SITES= http://www.info.gov.hk/digital21/chi/hkscs/download/ +DISTNAME= ming_uni.ttf +EXTRACT_SUFX= .gz + +MAINTAINER= ports@freebsd.org +COMMENT= Chinese Big5HKSCS TrueType fonts + +BUILD_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \ + fc-cache:${PORTSDIR}/x11-fonts/fontconfig +RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \ + fc-cache:${PORTSDIR}/x11-fonts/fontconfig + +EXTRACT_CMD= ${GZIP_CMD} +EXTRACT_BEFORE_ARGS= -dc +EXTRACT_AFTER_ARGS= > ${WRKSRC}/minguni.ttf +NO_BUILD= yes +SHAREMODE= 644 +WRKSRC= ${WRKDIR} +USE_XLIB= yes +FONTDIR= ${PREFIX}/share/fonts/TrueType +XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType +INSTALL_ENV= PKG_PREFIX=${PREFIX} + +.include + +do-install: + @${MKDIR} ${FONTDIR} + @${INSTALL_DATA} ${WRKSRC}/minguni.ttf ${FONTDIR} + @${ECHO_MSG} "===> Running ttfm.sh" + -@${PREFIX}/bin/ttfm.sh --add xttfm minguni.ttf + @${ECHO_MSG} "===> Running fc-cache" + -@${X11BASE}/bin/fc-cache -f -v ${XFONTDIR} + +.include -- cgit v1.2.3