aboutsummaryrefslogtreecommitdiff
path: root/chinese/font-std
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2009-05-31 09:19:10 +0000
committerHiroki Sato <hrs@FreeBSD.org>2009-05-31 09:19:10 +0000
commitd83170403eb0a9c168b8d20a0d37ce95ef451628 (patch)
tree94314b861ada07c1c8c5a9b7afeb74740c664509 /chinese/font-std
parent605c645403a0942e8cd24ba195e6810f900a5caf (diff)
downloadports-d83170403eb0a9c168b8d20a0d37ce95ef451628.tar.gz
ports-d83170403eb0a9c168b8d20a0d37ce95ef451628.zip
japanese/font-std, chinese/font-std, and dependency fixups due
to it have been added. These are to install standard fonts used in the Ports Collection. Currently they contain: std.ja_JP/Mincho std.ja_JP/Gothic std.ja_JP/Ryumin-Light std.ja_JP/GothicBBB-Medium std.zh_CN/STHeiti-Regular std.zh_CN/STSong-Light std.zh_CN/MSung-Light std.zh_CN/MHei-Medium under ${PREFIX}/share/fonts/. They are just symlinks to corresponding font files. The symlink names are based on popular PostScript font names. Applications should refer the font files via XLFD or fontconfig first. If they need a direct reference to the font file, please use files in std.*/*. This is because direct reference to a specific font name in an application configuration file makes the maintenance difficult when the font file name is changed, for example.
Notes
Notes: svn path=/head/; revision=234896
Diffstat (limited to 'chinese/font-std')
-rw-r--r--chinese/font-std/Makefile40
-rw-r--r--chinese/font-std/pkg-descr2
2 files changed, 42 insertions, 0 deletions
diff --git a/chinese/font-std/Makefile b/chinese/font-std/Makefile
new file mode 100644
index 000000000000..8017f3b47b8a
--- /dev/null
+++ b/chinese/font-std/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: font-std
+# Date created: 15 May 2009
+# Whom: hrs
+#
+# $FreeBSD$
+#
+
+PORTNAME= font-std
+PORTVERSION= 0.0.20090515
+CATEGORIES= chinese x11-fonts
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= Chinese Standard Fonts
+
+BUILD_DEPENDS= ${LOCALBASE}/share/fonts/TrueType/bkai00mp.ttf:${PORTSDIR}/chinese/arphicttf \
+ ${LOCALBASE}/share/fonts/TrueType/gbsn00lp.ttf:${PORTSDIR}/chinese/arphicttf \
+ ${LOCALBASE}/share/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf \
+ ${LOCALBASE}/share/fonts/TrueType/gkai00mp.ttf:${PORTSDIR}/chinese/arphicttf
+
+NO_BUILD= yes
+PLIST_FILES= ${FONTSDIR}/std.zh_CN/STHeiti-Regular \
+ ${FONTSDIR}/std.zh_CN/STSong-Light \
+ ${FONTSDIR}/std.zh_CN/MSung-Light \
+ ${FONTSDIR}/std.zh_CN/MHei-Medium
+PLIST_DIRS= ${FONTSDIR}/std.zh_CN
+FONTSDIR= ${PREFIX}/share/fonts
+
+do-fetch:
+ @${DO_NADA}
+
+do-install:
+ ${MKDIR} ${FONTSDIR}/std.zh_CN
+ ${LN} -s -f ${LOCALBASE}/share/fonts/TrueType/bkai00mp.ttf ${FONTSDIR}/std.zh_CN/STHeiti-Regular
+ ${LN} -s -f ${LOCALBASE}/share/fonts/TrueType/gbsn00lp.ttf ${FONTSDIR}/std.zh_CN/STSong-Light
+ ${LN} -s -f ${LOCALBASE}/share/fonts/TrueType/bsmi00lp.ttf ${FONTSDIR}/std.zh_CN/MSung-Light
+ ${LN} -s -f ${LOCALBASE}/share/fonts/TrueType/gkai00mp.ttf ${FONTSDIR}/std.zh_CN/MHei-Medium
+
+.include <bsd.port.mk>
diff --git a/chinese/font-std/pkg-descr b/chinese/font-std/pkg-descr
new file mode 100644
index 000000000000..50ef9d65aa22
--- /dev/null
+++ b/chinese/font-std/pkg-descr
@@ -0,0 +1,2 @@
+This port installs standard fonts for Chinese used in the Ports
+Collection.