summaryrefslogtreecommitdiff
path: root/fonts/jisx0212fonts/Makefile
blob: 7bf7e9560a1bb94db445d98287b1613c8e526cb6 (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
41
42
43
44
# $NetBSD: Makefile,v 1.23 2017/01/19 18:52:09 agc Exp $

DISTNAME=	jisx0212fonts-0.0
PKGREVISION=	3
CATEGORIES=	fonts x11 japanese
MASTER_SITES=	ftp://ftp.jp.NetBSD.org/pub/NetBSD-jp/tut-jp/fonts/
MASTER_SITES+=	http://www.freebsd.org/~itojun/distfiles/
DISTFILES=	jisksp14.bdf.gz jisksp16-1990.bdf.Z min-1-24.bdf.gz \
		jisksp40.bdf.Z

MAINTAINER=	uebayasi@NetBSD.org
COMMENT=	X11 bitmap fonts for JIS X 0212

WRKSRC=		${WRKDIR}
EXTRACT_ONLY=	${DISTFILES}

FONTS=		${DISTFILES:C/\.bdf.*$//}
FONTDIR=	${PREFIX}/share/fonts/X11/local
FONTS_DIRS.x11=	${FONTDIR}

USE_TOOLS+=	gzip gunzip bdftopcf

# XXX Can we assume that ${GUNZIP_CMD} can extract .Z files?
do-extract:
	for f in ${DISTFILES}; do \
		gunzip -c ${DISTDIR}/$${f} >${WRKSRC}/$${f%.*}; \
	done

do-build:
	set -e; \
	cd ${WRKSRC}; \
	for f in ${FONTS}; do \
		bdftopcf $${f}.bdf | \
		gzip -c >$${f}.pcf.gz; \
	done

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${FONTDIR}
	set -e; \
	for f in ${FONTS}; do \
		${INSTALL_DATA} ${WRKSRC}/$${f}.pcf.gz ${DESTDIR}${FONTDIR}; \
	done

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