blob: e4dc9f6bf4d94dca6839540338e77fe9b758d8cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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>
|