blob: 141f753d928ac66fcac122991497cdc417651f0e (
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
|
# $NetBSD: options.mk,v 1.2 2020/01/11 16:24:11 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.imv
PKG_SUPPORTED_OPTIONS= svg
PKG_OPTIONS_NONEMPTY_SETS= display
PKG_OPTIONS_SET.display= wayland x11
.include "../../devel/wayland/platform.mk"
.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
PKG_SUGGESTED_OPTIONS= svg wayland x11
.else
PKG_SUGGESTED_OPTIONS= svg x11
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Msvg)
. include "../../graphics/librsvg/buildlink3.mk"
MAKE_FLAGS+= BACKEND_LIBRSVG="yes"
.else
MAKE_FLAGS+= BACKEND_LIBRSVG="no"
.endif
PLIST_VARS+= all
.if !empty(PKG_OPTIONS:Mwayland) && !empty(PKG_OPTIONS:Mx11)
PLIST.all= yes
MAKE_FLAGS+= WINDOWS="all"
.elif !empty(PKG_OPTIONS:Mwayland)
MAKE_FLAGS+= WINDOWS="wayland"
.elif !empty(PKG_OPTIONS:Mx11)
MAKE_FLAGS+= WINDOWS="x11"
.endif
.if !empty(PKG_OPTIONS:Mwayland)
. include "../../devel/wayland/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mx11)
. include "../../graphics/glu/buildlink3.mk"
. include "../../x11/libxcb/buildlink3.mk"
. include "../../x11/libX11/buildlink3.mk"
.endif
|