summaryrefslogtreecommitdiff
path: root/fonts/unscii/Makefile
blob: 41a6a2745d2e8f33bab0bf8ea1af1f40dbbd1650 (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
# $NetBSD: Makefile,v 1.4 2020/08/31 18:09:33 wiz Exp $

DISTNAME=	unscii-1.1-src
PKGNAME=	${DISTNAME:S/-src//}
PKGREVISION=	1
CATEGORIES=	fonts
MASTER_SITES=	http://pelulamu.net/unscii/

MAINTAINER=	nikita@NetBSD.org
HOMEPAGE=	http://pelulamu.net/unscii/
COMMENT=	Bitmapped character-art friendly Unicode fonts
LICENSE=	gnu-gpl-v2

UNLIMIT_RESOURCES=	datasize virtualsize

USE_TOOLS+=	perl:build
BUILD_DEPENDS+=	bdftopcf-[0-9]*:../../fonts/bdftopcf
BUILD_DEPENDS+=	fontforge-[0-9]*:../../fonts/fontforge
BUILD_DEPENDS+=	p5-Text-CharWidth-[0-9]*:../../textproc/p5-Text-CharWidth
BUILD_DEPENDS+=	p5-Getopt-Long-[0-9]*:../../devel/p5-Getopt-Long

REPLACE_PERL+=	*.pl

INSTALLATION_DIRS=	share/fonts/X11/TTF share/fonts/X11/OTF
INSTALLATION_DIRS+=	share/fonts/X11/svg share/fonts/X11/web

FONTDIR=	${PREFIX}/share/fonts/X11
FONTS_DIR.ttf=	${FONTDIR}/TTF
FONTS_DIR.otf=	${FONTDIR}/OTF
FONTS_DIR.svg=	${FONTDIR}/svg
FONTS_DIR.web=	${FONTDIR}/web

do-install:
	cd ${WRKSRC} && for i in *.hex; do \
		${INSTALL_DATA} $$i ${DESTDIR}${FONTDIR} ; done
	cd ${WRKSRC} && for i in *.pcf; do \
		${INSTALL_DATA} $$i ${DESTDIR}${FONTDIR} ; done
	cd ${WRKSRC} && for i in *.ttf; do \
		${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.ttf} ; done
	cd ${WRKSRC} && for i in *.otf; do \
		${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.otf} ; done
	cd ${WRKSRC} && for i in *.svg; do \
		${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.svg} ; done
	cd ${WRKSRC} && for i in *.woff; do \
		${INSTALL_DATA} $$i ${DESTDIR}${FONTS_DIR.web} ; done

.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"