summaryrefslogtreecommitdiff
path: root/fonts/ja-elisau/Makefile
blob: de05b78d90dfb29991a86114c436c094450d97d8 (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
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.13 2006/07/27 18:48:02 jlam Exp $

DISTNAME=		elisau10
PKGNAME=		ja-elisau-1.0
PKGREVISION=		1
CATEGORIES=		fonts x11 japanese
MASTER_SITES=		http://www.wheel.gr.jp/~dai/software/ \
			ftp://ftp.jp.NetBSD.org/pub/NetBSD-jp/tut-jp/fonts/
EXTRACT_SUFX=		.tgz
DISTFILES=		${DISTNAME}${EXTRACT_SUFX} clR5x8.bdf

MAINTAINER=		tech-pkg-ja@jp.NetBSD.org
HOMEPAGE=		http://www.wheel.gr.jp/~dai/software/#elisau10
COMMENT=		10x8 dots X11 bitmap font for JIS X 0208

EXTRACT_ONLY=		${DISTNAME}${EXTRACT_SUFX}
SITES.elisau10${EXTRACT_SUFX}=	\
			http://hp.vector.co.jp/authors/VA004814/freesoft/
SITES.clR5x8.bdf=	ftp://ftp.jp.NetBSD.org/pub/NetBSD-jp/tut-jp/fonts/

WRKSRC=			${WRKDIR}
USE_TOOLS+=		bdftopcf gzip patch
USE_X11BASE=		YES
DOCDIR=			${PREFIX}/share/doc/elisau
FONTDIR=		${PREFIX}/lib/X11/fonts/local
FONTS_DIRS.x11=		${FONTDIR}
DISTPATCH=		${WRKSRC}/clR5x8-s5x8.diff

LICENSE=		no-commercial-use

post-extract:
	${CP} ${DISTDIR}/clR5x8.bdf ${WRKDIR}; \
	cd ${WRKSRC}; \
	${PATCH} -s < ${DISTPATCH}

do-build:
	cd ${WRKSRC}; \
	for i in *.bdf; do \
		p=`basename $$i .bdf`.pcf; \
		bdftopcf -o $$p $$i; \
		${GZIP_CMD} -c $$p > $$p.gz; \
	done

do-install:
	${INSTALL_DATA_DIR} ${DOCDIR}; \
	${INSTALL_DATA} ${WRKSRC}/*.doc ${WRKSRC}/*.txt ${DOCDIR}; \
	${INSTALL_DATA_DIR} ${FONTDIR}; \
	${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${FONTDIR}

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