aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/sazanami-ttf
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2004-06-19 22:09:28 +0800
committernork <nork@FreeBSD.org>2004-06-19 22:09:28 +0800
commit09856c2542e40eed15d1cd07bc9be86c03757be3 (patch)
treeefafb67fa48f9716c76032bb5e4fd0aac7afadd2 /japanese/sazanami-ttf
parentcc5389e2895ae88d0d1320f3a7d81d7a3365551c (diff)
downloadfreebsd-ports-gnome-09856c2542e40eed15d1cd07bc9be86c03757be3.tar.gz
freebsd-ports-gnome-09856c2542e40eed15d1cd07bc9be86c03757be3.tar.zst
freebsd-ports-gnome-09856c2542e40eed15d1cd07bc9be86c03757be3.zip
Add sazanami-ttf 20040618, Free Japanese TrueType fonts named 'Sazanami'.
Submitted by: hrs
Diffstat (limited to 'japanese/sazanami-ttf')
-rw-r--r--japanese/sazanami-ttf/Makefile67
-rw-r--r--japanese/sazanami-ttf/distinfo2
-rw-r--r--japanese/sazanami-ttf/files/fonts.alias.sazanami40
-rw-r--r--japanese/sazanami-ttf/files/fonts.dir.sazanami61
-rw-r--r--japanese/sazanami-ttf/pkg-deinstall15
-rw-r--r--japanese/sazanami-ttf/pkg-descr3
-rw-r--r--japanese/sazanami-ttf/pkg-install20
-rw-r--r--japanese/sazanami-ttf/pkg-plist25
8 files changed, 233 insertions, 0 deletions
diff --git a/japanese/sazanami-ttf/Makefile b/japanese/sazanami-ttf/Makefile
new file mode 100644
index 000000000000..d797929956e0
--- /dev/null
+++ b/japanese/sazanami-ttf/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: Sazanami TrueType fonts
+# Date created: 19 June 2004
+# Whom: hrs
+#
+# $FreeBSD$
+#
+
+PORTNAME= sazanami-ttf
+PORTVERSION= 20040618
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= http://downloads.sourceforge.jp/efont/9934/ \
+ ${MASTER_SITE_PORTS_JP}
+DISTNAME= ${PORTNAME:S/-ttf$//}-${PORTVERSION}
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= Free Japanese TrueType fonts named 'Sazanami'
+
+USE_X_PREFIX= yes
+USE_BZIP2= yes
+NO_BUILD= yes
+
+FONTSDIR= lib/X11/fonts/TrueType
+LOCALFONTSDIR= share/fonts/TrueType
+MAKE_ENV= FONTSDIR=${FONTSDIR}
+PLIST_SUB= FONTSDIR=${FONTSDIR} \
+ LOCALFONTSDIR=${LOCALBASE}/${LOCALFONTSDIR}
+
+WRKSRC= ${WRKDIR}/sazanami-${PORTVERSION}
+
+DOC_FILES= README \
+ doc/oradano/README.txt doc/misaki/misakib8.txt \
+ doc/mplus/LICENSE_J doc/shinonome/LICENSE \
+ doc/ayu/README.txt doc/kappa/README
+
+do-install:
+.if !exists(${PREFIX}/${FONTSDIR})
+ @${ECHO} "*********************************************************"
+ @${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
+ @${ECHO} "and load 'xtt' module in /etc/XF86Config."
+ @${ECHO} "*********************************************************"
+ ${MKDIR} ${PREFIX}/${FONTSDIR}
+.endif
+ ${INSTALL_DATA} ${WRKSRC}/sazanami-gothic.ttf \
+ ${WRKSRC}/sazanami-mincho.ttf \
+ ${FILESDIR}/fonts.dir.sazanami \
+ ${FILESDIR}/fonts.alias.sazanami \
+ ${PREFIX}/${FONTSDIR}
+ ${MKDIR} ${LOCALBASE}/${LOCALFONTSDIR}
+ ${LN} -s -f \
+ ${PREFIX}/${FONTSDIR}/sazanami-gothic.ttf \
+ ${LOCALBASE}/${LOCALFONTSDIR}/sazanami-gothic.ttf
+ ${LN} -s -f \
+ ${PREFIX}/${FONTSDIR}/sazanami-mincho.ttf \
+ ${LOCALBASE}/${LOCALFONTSDIR}/sazanami-mincho.ttf
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for F in ${DOC_FILES:Mdoc/*}
+ ${MKDIR} ${DOCSDIR}/${F:S,^doc/,,:H}
+ ${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}/${F:S,^doc/,,:H}
+.endfor
+.for F in ${DOC_FILES:Ndoc/*}
+ ${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}
+.endfor
+.endif
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/japanese/sazanami-ttf/distinfo b/japanese/sazanami-ttf/distinfo
new file mode 100644
index 000000000000..ebc4d8f325d3
--- /dev/null
+++ b/japanese/sazanami-ttf/distinfo
@@ -0,0 +1,2 @@
+MD5 (sazanami-20040618.tar.bz2) = 0d1057280e200e70104bd8b3380bf88c
+SIZE (sazanami-20040618.tar.bz2) = 8548409
diff --git a/japanese/sazanami-ttf/files/fonts.alias.sazanami b/japanese/sazanami-ttf/files/fonts.alias.sazanami
new file mode 100644
index 000000000000..09543a695eed
--- /dev/null
+++ b/japanese/sazanami-ttf/files/fonts.alias.sazanami
@@ -0,0 +1,40 @@
+-sazanami-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-medium-ro-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-medium-o-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-medium-o-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-medium-ri-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-medium-i-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-medium-i-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-medium-r-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-medium-r-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-mincho-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-mincho-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-bold-o-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-bold-i-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-bold-i-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-mincho-bold-r-normal--0-0-0-0-p-0-iso8859-1 -sazanami-mincho-bold-r-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-medium-ro-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-medium-o-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-medium-o-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-medium-ri-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-medium-i-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-medium-i-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-medium-r-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-medium-r-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -sazanami-gothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+-sazanami-gothic-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-bold-ro-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-bold-o-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-bold-o-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-bold-ri-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-bold-i-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-bold-i-normal--0-0-0-0-c-0-iso8859-1
+-sazanami-gothic-bold-r-normal--0-0-0-0-p-0-iso8859-1 -sazanami-gothic-bold-r-normal--0-0-0-0-c-0-iso8859-1
diff --git a/japanese/sazanami-ttf/files/fonts.dir.sazanami b/japanese/sazanami-ttf/files/fonts.dir.sazanami
new file mode 100644
index 000000000000..26bd1750cd58
--- /dev/null
+++ b/japanese/sazanami-ttf/files/fonts.dir.sazanami
@@ -0,0 +1,61 @@
+60
+sazanami-mincho.ttf -sazanami-mincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:sazanami-mincho.ttf -sazanami-mincho-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.15:sazanami-mincho.ttf -sazanami-mincho-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.15:sazanami-mincho.ttf -sazanami-mincho-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.08:sazanami-mincho.ttf -sazanami-mincho-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.08:sazanami-mincho.ttf -sazanami-mincho-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+bw=0.5:sazanami-mincho.ttf -sazanami-mincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:sazanami-mincho.ttf -sazanami-mincho-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:sazanami-mincho.ttf -sazanami-mincho-medium-r-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-medium-i-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-medium-o-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-medium-ri-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-medium-ro-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:sazanami-mincho.ttf -sazanami-mincho-bold-r-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-bold-i-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.15:sazanami-mincho.ttf -sazanami-mincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.08:sazanami-mincho.ttf -sazanami-mincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
+sazanami-gothic.ttf -sazanami-gothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:sazanami-gothic.ttf -sazanami-gothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.15:sazanami-gothic.ttf -sazanami-gothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.15:sazanami-gothic.ttf -sazanami-gothic-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.08:sazanami-gothic.ttf -sazanami-gothic-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
+ai=0.08:sazanami-gothic.ttf -sazanami-gothic-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+ds=y:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
+bw=0.5:sazanami-gothic.ttf -sazanami-gothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:sazanami-gothic.ttf -sazanami-gothic-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:ds=y:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
+bw=0.5:sazanami-gothic.ttf -sazanami-gothic-medium-r-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-medium-i-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-medium-o-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-medium-ri-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-medium-ro-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:sazanami-gothic.ttf -sazanami-gothic-bold-r-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-bold-i-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.15:sazanami-gothic.ttf -sazanami-gothic-bold-o-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-bold-ri-normal--0-0-0-0-c-0-iso8859-1
+bw=0.5:ds=y:ai=0.08:sazanami-gothic.ttf -sazanami-gothic-bold-ro-normal--0-0-0-0-c-0-iso8859-1
diff --git a/japanese/sazanami-ttf/pkg-deinstall b/japanese/sazanami-ttf/pkg-deinstall
new file mode 100644
index 000000000000..2c3c37bd3dba
--- /dev/null
+++ b/japanese/sazanami-ttf/pkg-deinstall
@@ -0,0 +1,15 @@
+#!/bin/sh
+# $FreeBSD$
+
+if [ "$2" != "DEINSTALL" ]; then
+ exit 0
+fi
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
+cd ${FONTDIR}
+sed -e '/-sazanami-/d' fonts.dir > fonts.dir.tmp
+numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
+echo ${numfonts} > fonts.dir
+sed -e 1d fonts.dir.tmp >> fonts.dir
+sed -e '/^-sazanami-/d' fonts.alias > fonts.alias.tmp
+mv -f fonts.alias.tmp fonts.alias
+rm -f fonts.dir.tmp
diff --git a/japanese/sazanami-ttf/pkg-descr b/japanese/sazanami-ttf/pkg-descr
new file mode 100644
index 000000000000..aab3a06208b5
--- /dev/null
+++ b/japanese/sazanami-ttf/pkg-descr
@@ -0,0 +1,3 @@
+Free Japanese TrueType fonts named 'Sazanami Mincho' and 'Sazanami Gothic'.
+
+WWW: http://wiki.fdiary.net/font/?sazanami
diff --git a/japanese/sazanami-ttf/pkg-install b/japanese/sazanami-ttf/pkg-install
new file mode 100644
index 000000000000..2bb25fbce6a4
--- /dev/null
+++ b/japanese/sazanami-ttf/pkg-install
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD$
+
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
+if [ "$2" = "PRE-INSTALL" ]; then
+ echo "Please add ${FONTDIR} to your /etc/XF86Config file"
+ exit 0
+fi
+cd ${FONTDIR}
+touch fonts.dir
+sed -e '/-sazanami-/d' fonts.dir > fonts.dir.tmp
+numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.sazanami | wc -l) - 2 | bc)
+echo ${numfonts} > fonts.dir
+sed -e 1d fonts.dir.tmp >> fonts.dir
+sed -e 1d fonts.dir.sazanami >> fonts.dir
+touch fonts.alias
+sed -e '/^-sazanami-/d' fonts.alias > fonts.alias.tmp
+mv -f fonts.alias.tmp fonts.alias
+cat fonts.alias.sazanami >> fonts.alias
+rm -f fonts.dir.tmp fonts.alias.tmp
diff --git a/japanese/sazanami-ttf/pkg-plist b/japanese/sazanami-ttf/pkg-plist
new file mode 100644
index 000000000000..1d66c758fec0
--- /dev/null
+++ b/japanese/sazanami-ttf/pkg-plist
@@ -0,0 +1,25 @@
+@comment $FreeBSD$
+%%FONTSDIR%%/fonts.alias.sazanami
+%%FONTSDIR%%/fonts.dir.sazanami
+%%FONTSDIR%%/sazanami-mincho.ttf
+%%FONTSDIR%%/sazanami-gothic.ttf
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/oradano/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/misaki/misakib8.txt
+%%PORTDOCS%%%%DOCSDIR%%/mplus/LICENSE_J
+%%PORTDOCS%%%%DOCSDIR%%/shinonome/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/ayu/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/kappa/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/oradano
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/misaki
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/mplus
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/shinonome
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/ayu
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/kappa
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@exec mkdir -p %%LOCALFONTSDIR%%
+@exec ln -s -f %D/%%FONTSDIR%%/sazanami-mincho.ttf %%LOCALFONTSDIR%%/sazanami-mincho.ttf
+@exec ln -s -f %D/%%FONTSDIR%%/sazanami-gothic.ttf %%LOCALFONTSDIR%%/sazanami-gothic.ttf
+@unexec rm -f %%LOCALFONTSDIR%%/sazanami-mincho.ttf
+@unexec rm -f %%LOCALFONTSDIR%%/sazanami-gothic.ttf
+@unexec rmdir %%LOCALFONTSDIR%% 2> /dev/null || true