summaryrefslogtreecommitdiff
path: root/graphics/magicpoint/options.mk
blob: 0f8ee97ee07af98d0723ab28843bbd702c294975 (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
# $NetBSD: options.mk,v 1.1 2008/09/10 13:32:47 taca Exp $

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

PKG_OPTIONS_VAR=	PKG_OPTIONS.magicpoint
PKG_SUPPORTED_OPTIONS=	freetype vflib xft2
PKG_SUGGESTED_OPTIONS=	xft2

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mfreetype)
CONFIGURE_ARGS+=	--enable-freetype
MGP_TFONT=	% %
MGP_VFONT=	# empty
.include "../../graphics/freetype-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-freetype
.endif

.if !empty(PKG_OPTIONS:Mvflib)
CONFIGURE_ARGS+=	--enable-vflib
MGP_TFONT=	# empty
MGP_VFONT=	% %
.include "../../print/ja-vflib-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-vflib
.endif

.if !empty(PKG_OPTIONS:Mxft2)
CONFIGURE_ARGS+=	--enable-xft2
MGP_XFONT=	# empty
MGP_TFONT=	% %
MGP_VFONT=	% %

.include "../../x11/libXft/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-xft2
.endif

.include "../../graphics/imlib/buildlink3.mk"


#
# fall back defaults
#
MGP_VFONT?=	% %
MGP_TFONT?=	% %
MGP_XFONT?=	% %