summaryrefslogtreecommitdiff
path: root/chinese/mingunittf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/mingunittf/Makefile')
-rw-r--r--chinese/mingunittf/Makefile44
1 files changed, 44 insertions, 0 deletions
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 <statue@freebsd.sinica.edu.tw>
+#
+# $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 <bsd.port.pre.mk>
+
+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 <bsd.port.post.mk>