summaryrefslogtreecommitdiff
path: root/fonts/XFree86-fontsScalable/Makefile
blob: 07f233d3db707f66b4d017a19b174f7179f472b6 (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
51
52
53
54
# $NetBSD: Makefile,v 1.12 2005/07/19 10:18:31 grant Exp $

DISTNAME=	${DISTFILES}
PKGNAME=	XFree86-fontsScalable-${XF_VER}
CATEGORIES=	fonts x11
MASTER_SITES=	${MASTER_SITE_XFREE}
DISTFILES=	XFree86-${XF_VER}-src-4.tgz XFree86-${XF_VER}-src-5.tgz

MAINTAINER=	xtraeme@NetBSD.org
HOMEPAGE=	http://www.xfree86.org/
COMMENT=	XFree86 scalable fonts

DEPENDS+=	XFree86-fontsEncodings>=${XF_VER}:../../fonts/XFree86-fontsEncodings

NO_BUILD=		yes
USE_LANGUAGES=		# empty
NO_XFREE86_TARGETS=	# defined

FONT_TYPES=		Speedo TTF Type1

do-install:
.for fnt in ${FONT_TYPES}
	${INSTALL_DATA_DIR} ${X11ROOT}/lib/X11/fonts/${fnt}
.endfor
.undef fnt
	${INSTALL_DATA} ${WRKDIR}/xc/fonts/scaled/Speedo/font0*.spd \
		${X11ROOT}/lib/X11/fonts/Speedo
	${INSTALL_DATA} ${WRKDIR}/xc/fonts/scaled/Speedo/COPYRIGHT \
		${X11ROOT}/lib/X11/fonts/Speedo/
	${INSTALL_DATA} ${WRKDIR}/xc/fonts/scaled/TTF/luxi*.ttf \
		${X11ROOT}/lib/X11/fonts/TTF/
	${INSTALL_DATA} ${WRKDIR}/xc/fonts/scaled/TTF/COPYRIGHT.BH \
		${X11ROOT}/lib/X11/fonts/TTF/Luxi-COPYRIGHT.BH
.for f in afm pfa pfb
	${INSTALL_DATA} ${WRKDIR}/xc/fonts/scaled/Type1/*.${f} \
		${X11ROOT}/lib/X11/fonts/Type1
.endfor
.undef f
# because fonts.mk does not do this yet
.for fnt in ${FONT_TYPES}
	${X11ROOT}/bin/mkfontscale ${X11ROOT}/lib/X11/fonts/${fnt}
	${X11ROOT}/bin/mkfontdir ${X11ROOT}/lib/X11/fonts/${fnt}
.endfor
.undef fnt
	${X11ROOT}/bin/mkfontdir -e ${X11ROOT}/lib/X11/fonts/encodings \
		-e ${X11ROOT}/lib/X11/fonts/encodings/large \
		${X11ROOT}/lib/X11/fonts/Speedo \
		${X11ROOT}/lib/X11/fonts/TTF \
		${X11ROOT}/lib/X11/fonts/Type1
	${LOCALBASE}/bin/fc-cache ${X11ROOT}/lib/X11/fonts/TTF
	${LOCALBASE}/bin/fc-cache ${X11ROOT}/lib/X11/fonts/Type1

.include "../../meta-pkgs/XFree86/Makefile.common"
.include "../../mk/bsd.pkg.mk"