summaryrefslogtreecommitdiff
path: root/fonts/jisx0213fonts/Makefile
blob: fe1939ac2cfae862e61a276f57f95e4169de37d2 (plain)
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
# $NetBSD: Makefile,v 1.5 2001/02/25 04:17:48 hubertf Exp $
#

DISTNAME=	jisx0213fonts-0.0
CATEGORIES=	fonts x11 japanese
MASTER_SITES=	ftp://ftp.m17n.org/pub/character/fonts/imamura/jisx0213/
DISTFILES=	${BDF:C/bdf$/bdf.gz/}

MAINTAINER=	itojun@itojun.org
HOMEPAGE=	ftp://ftp.m17n.org/pub/character/fonts/imamura/jisx0213/
COMMENT=	X11 fonts for JIS X0213 standard

USE_X11BASE=	yes

BDF=	K14-1.bdf K14-2.bdf jiskan16-2000-1.bdf jiskan16-2000-2.bdf
PCF=	${BDF:C/bdf$/pcf/}
PCFGZ=	${BDF:C/bdf$/pcf.gz/}
FONTDIR=${PREFIX}/lib/X11/fonts/local

do-extract:
	${MKDIR} ${WRKSRC}
	for i in ${BDF}; do \
		${CP} ${DISTDIR}/$$i.gz ${WRKSRC}; \
		${GUNZIP_CMD} ${WRKSRC}/$$i.gz; \
	done

do-build:
	(cd ${WRKSRC}; for i in ${BDF}; do \
		bdftopcf -o `echo $$i | ${SED} -e 's/bdf$$/pcf/'` $$i; \
		${GZIP_CMD} `echo $$i | ${SED} -e 's/bdf$$/pcf/'`; \
	done)

do-install:
	${INSTALL_DATA_DIR} ${FONTDIR}
	for i in ${PCFGZ}; do \
		${INSTALL_DATA} ${WRKSRC}/$$i ${FONTDIR}; \
	done
	(cd ${FONTDIR}; mkfontdir)

.include "../../mk/bsd.pkg.mk"