summaryrefslogtreecommitdiff
path: root/fonts/intlfonts/Makefile
blob: a3af19b9800098143c3b79093b8a2a741f7ffbc1 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# $NetBSD: Makefile,v 1.24 2006/10/09 07:02:56 joerg Exp $

DISTNAME=	intlfonts-1.2.1
PKGREVISION=	5
CATEGORIES=	fonts x11
MASTER_SITES=	${MASTER_SITE_GNU:=intlfonts/intlfonts-1.2.1-split/}
DISTFILES=	${FONT_SETS:S/$/${EXTRACT_SUFX}/} ${MISC_FILES}

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Free X11 fonts (BDF format) for all characters that Emacs can handle

FONT_SETS=	Asian		\
		Chinese		\
		Ethiopic	\
		European	\
		Japanese	\
		Misc

USE_TOOLS+=	bdftopcf

# Use the X font set for Korean, as there isn't anything better
FONT_SETS+=	Korean.X

# These are extra files that not many folks will likely need or want
# They are all bigger than 24 dots -- you'll only want them if you
# want to display text in really big fonts.
#
EXTRA_FONTS=	Chinese.BIG	\
		European.BIG	\
		Japanese.BIG

# Type1/TrueType fonts for Latin1, Thai and Vietnamese
# XXX need "fonts.scale" for them
#
EXTRA_FONTS+=	Type1		\
		TrueType
CONFIGURE_ARGS+=	--with-type1 --with-truetype

MISC_FILES=	README.split

DIST_SUBDIR=	${PKGNAME_NOREV}
EXTRACT_ONLY=	${FONT_SETS:S/$/${EXTRACT_SUFX}/}

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-fontdir=${PREFIX}/lib/X11/fonts/intlfonts \
		--enable-compress=gzip

FONTS_DIRS.x11+=	${PREFIX}/lib/X11/fonts/intlfonts
FONTS_DIRS.x11+=	${PREFIX}/lib/X11/fonts/intlfonts/bdf
FONTS_DIRS.type1+=	${PREFIX}/lib/X11/fonts/intlfonts/Type1
FONTS_DIRS.ttf+=	${PREFIX}/lib/X11/fonts/intlfonts/TrueType
REQD_DIRS+=		${PREFIX}/lib/X11/fonts/intlfonts
REQD_DIRS+=		${PREFIX}/lib/X11/fonts/intlfonts/bdf
REQD_DIRS+=		${PREFIX}/lib/X11/fonts/intlfonts/Type1
REQD_DIRS+=		${PREFIX}/lib/X11/fonts/intlfonts/TrueType

.include "../../mk/bsd.prefs.mk"

.if !defined(NO_EXTRA_FONTS)
FONT_SETS+=	${EXTRA_FONTS}
PLIST_SRC=	PLIST PLIST.extrafonts
.include "../../mk/x11.buildlink3.mk"
.endif

post-extract:
.for FILE in ${MISC_FILES}
	${CP} ${_DISTDIR}/${FILE} ${WRKSRC}
.endfor

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