blob: d219fd790af28f6d25a0a4855f741ebc59089c38 (
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
|
# $NetBSD: options.mk,v 1.12 2012/11/01 08:54:46 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cairo
PKG_SUPPORTED_OPTIONS= x11 xcb
PKG_SUGGESTED_OPTIONS= x11 xcb
.include "../../mk/bsd.options.mk"
PLIST_VARS+= carbon x11 xcb
###
### X11 and XCB support (XCB implies X11)
###
.if !empty(PKG_OPTIONS:Mx11) || !empty(PKG_OPTIONS:Mxcb)
CONFIGURE_ARGS+= --enable-xlib
CONFIGURE_ARGS+= --enable-xlib-xrender
# does not build against NetBSD-5's MesaLib, and is according
# to upstream, only used by "toy applications"
CONFIGURE_ARGS+= --disable-gl
PLIST.x11= yes
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXrender/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXt?= build # only for configure
.include "../../x11/libXt/buildlink3.mk"
. if !empty(PKG_OPTIONS:Mxcb)
CONFIGURE_ARGS+= --enable-xcb
PLIST.xcb= yes
. include "../../x11/libxcb/buildlink3.mk"
. endif
.else
CONFIGURE_ARGS+= --disable-gl
CONFIGURE_ARGS+= --disable-xlib
CONFIGURE_ARGS+= --disable-xlib-xrender
.endif
|