freebsd-ports/japanese/mplusfonts/Makefile
Edwin Groothuis 22c4550a1f Update: japanese/mplusfonts
Update for M+ Bitmap Fonts 1.2.0a.
This version includes latin fonts and install script that 1.0.4 don't includes.
This port build for nothing in 'do-build' target, and it run install script that
includes fonts build in 'do-install' target.

PR:		ports/50344
Submitted by:	"H.Miyamoto" <Ys@PixyGarden.net>
2003-03-29 01:50:56 +00:00

56 lines
1.3 KiB
Makefile

# New ports collection makefile for: M+ Fonts
# Date created: July 17 2002
# Whom: The 244th namelessness at 2ch.net
#
# $FreeBSD$
#
PORTNAME= mplusfonts
PORTVERSION= 1.2.0a
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://downloads.sourceforge.jp/mplus-fonts/2464/ \
http://wids.net/archive/mplusfonts/distfiles/
DISTNAME= mplus_bitmap_fonts-${PORTVERSION}
MAINTAINER= Ys@PixyGarden.net
COMMENT= 12x13 dots X11 kanji fonts with simple and readable design
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
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
DOCS= INSTALL_E LICENSE_E README_E \
INSTALL_J LICENSE_J README_J
FONTSDIR= ${PREFIX}/lib/X11/fonts/local
PLIST_SUB= FONTSDIR=${FONTSDIR:S/${PREFIX}\///}
do-build:
pre-install:
@${MKDIR} ${DOCSDIR}
.for i in e j
@${INSTALL_DATA} ${WRKSRC}/fonts_${i}/fonts.alias \
${DOCSDIR}/fonts.alias.${i}
.endfor
@${INSTALL_DATA} ${WRKSRC}/fonts_e/euro/fonts.alias \
${DOCSDIR}/fonts.alias.euro
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGREQ} ${PKGNAME} INSTALL
do-install:
cd ${WRKSRC} && \
${WRKSRC}/install_mplus_fonts ${FONTSDIR}
.if !defined(NOPORTDOCS)
.for i in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>