aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/font-mplus/Makefile
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2003-01-13 22:50:12 +0800
committernobutaka <nobutaka@FreeBSD.org>2003-01-13 22:50:12 +0800
commit92f33cd8202850ff71e4d555e6977d179be3ca36 (patch)
tree09fdc290e25014fcdfd250c317342f02aeefc819 /japanese/font-mplus/Makefile
parent671585c648cd9c52b30f7242dc646c84ff707f30 (diff)
downloadfreebsd-ports-gnome-92f33cd8202850ff71e4d555e6977d179be3ca36.tar.gz
freebsd-ports-gnome-92f33cd8202850ff71e4d555e6977d179be3ca36.tar.zst
freebsd-ports-gnome-92f33cd8202850ff71e4d555e6977d179be3ca36.zip
Add mplusfonts. 12x13 dots X11 kanji fonts with simple and high readable design.
PR: ports/43358 Submitted by: Yuukis <Ys@PixyGarden.net>
Diffstat (limited to 'japanese/font-mplus/Makefile')
-rw-r--r--japanese/font-mplus/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/japanese/font-mplus/Makefile b/japanese/font-mplus/Makefile
new file mode 100644
index 000000000000..e4dc9f6bf4d9
--- /dev/null
+++ b/japanese/font-mplus/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: M+ Fonts_J
+# Date created: July 17 2002
+# Whom: The 244th namelessness at 2ch.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= mplusfonts
+PORTVERSION= 1.0.4
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= http://downloads.sourceforge.jp/mplus-fonts/2050/ \
+ http://wids.net/archive/mplusfonts/distfiles/
+DISTNAME= mplus_fonts_J-${PORTVERSION}
+
+MAINTAINER= Ys@PixyGarden.net
+
+USE_X_PREFIX= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${XFREE86_VERSION} == 4
+BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11/XFree86-4-clients
+RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
+.endif
+
+FONTNAME= mplus_j12b mplus_j12b_iso8859 mplus_j12b_jisx0201 \
+ mplus_j12r mplus_j12r_iso8859 mplus_j12r_jisx0201
+DOCS= LICENSE README_J
+
+FONTSDIR= ${PREFIX}/lib/X11/fonts/local
+PLIST_SUB= FONTSDIR=${FONTSDIR:S/${PREFIX}\///}
+
+do-build:
+.for file in ${FONTNAME}
+ cd ${WRKSRC} && \
+ bdftopcf ${file}.bdf | ${GZIP_CMD} > ${file}.pcf.gz
+.endfor
+
+pre-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGREQ} ${PKGNAME} INSTALL
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${FONTSDIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for i in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
+
+post-install:
+ @(cd ${FONTSDIR} ; mkfontdir)
+
+.include <bsd.port.post.mk>