| @@ -1,182 +1,182 @@ | | | @@ -1,182 +1,182 @@ |
1 | # $NetBSD: options.mk,v 1.36 2020/05/19 08:45:36 tnn Exp $ | | 1 | # $NetBSD: options.mk,v 1.37 2020/06/23 15:59:17 nia Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.vlc | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.vlc |
4 | PKG_SUPPORTED_OPTIONS= alsa avahi dbus debug dts jack pulseaudio | | 4 | PKG_SUPPORTED_OPTIONS= alsa avahi dbus debug dts jack pulseaudio |
5 | PKG_SUPPORTED_OPTIONS+= vlc-skins qt5 x11 | | 5 | PKG_SUPPORTED_OPTIONS+= vlc-skins qt5 x11 |
6 | PKG_SUGGESTED_OPTIONS= dbus qt5 | | 6 | PKG_SUGGESTED_OPTIONS= dbus qt5 |
7 | PKG_SUGGESTED_OPTIONS.Linux+= alsa | | 7 | PKG_SUGGESTED_OPTIONS.Linux+= alsa |
8 | | | 8 | |
9 | .include "../../mk/bsd.fast.prefs.mk" | | 9 | .include "../../mk/bsd.fast.prefs.mk" |
10 | | | 10 | |
11 | .if ${OPSYS} != "Darwin" | | 11 | .if ${OPSYS} != "Darwin" |
12 | PKG_SUGGESTED_OPTIONS+= x11 | | 12 | PKG_SUGGESTED_OPTIONS+= x11 |
13 | .endif | | 13 | .endif |
14 | | | 14 | |
15 | ### Add VAAPI if it is available | | 15 | ### Add VAAPI if it is available |
16 | .include "../../multimedia/libva/available.mk" | | 16 | .include "../../multimedia/libva/available.mk" |
17 | .if ${VAAPI_AVAILABLE} == "yes" | | 17 | .if ${VAAPI_AVAILABLE} == "yes" |
18 | PKG_SUPPORTED_OPTIONS+= vaapi | | 18 | PKG_SUPPORTED_OPTIONS+= vaapi |
19 | PKG_SUGGESTED_OPTIONS+= vaapi | | 19 | PKG_SUGGESTED_OPTIONS+= vaapi |
20 | .endif | | 20 | .endif |
21 | | | 21 | |
22 | ### Add VDPAU if it is available | | 22 | ### Add VDPAU if it is available |
23 | .include "../../multimedia/libvdpau/available.mk" | | 23 | .include "../../multimedia/libvdpau/available.mk" |
24 | .if ${VAAPI_AVAILABLE} == "yes" | | 24 | .if ${VAAPI_AVAILABLE} == "yes" |
25 | PKG_SUPPORTED_OPTIONS+= vdpau | | 25 | PKG_SUPPORTED_OPTIONS+= vdpau |
26 | PKG_SUGGESTED_OPTIONS+= vdpau | | 26 | PKG_SUGGESTED_OPTIONS+= vdpau |
27 | .endif | | 27 | .endif |
28 | | | 28 | |
29 | ### Add LIRC if it is available | | 29 | ### Add LIRC if it is available |
30 | .include "../../comms/lirc/available.mk" | | 30 | .include "../../comms/lirc/available.mk" |
31 | .if ${LIRC_AVAILABLE} == "yes" | | 31 | .if ${LIRC_AVAILABLE} == "yes" |
32 | PKG_SUPPORTED_OPTIONS+= lirc | | 32 | PKG_SUPPORTED_OPTIONS+= lirc |
33 | PKG_SUGGESTED_OPTIONS+= lirc | | 33 | PKG_SUGGESTED_OPTIONS+= lirc |
34 | .endif | | 34 | .endif |
35 | | | 35 | |
36 | ### | | 36 | ### |
37 | .include "../../mk/bsd.options.mk" | | 37 | .include "../../mk/bsd.options.mk" |
38 | | | 38 | |
39 | ## ALSA support | | 39 | ## ALSA support |
40 | | | 40 | |
41 | PLIST_VARS+= alsa | | 41 | PLIST_VARS+= alsa |
42 | .if !empty(PKG_OPTIONS:Malsa) | | 42 | .if !empty(PKG_OPTIONS:Malsa) |
43 | CONFIGURE_ARGS+= --enable-alsa | | 43 | CONFIGURE_ARGS+= --enable-alsa |
44 | .include "../../audio/alsa-lib/buildlink3.mk" | | 44 | .include "../../audio/alsa-lib/buildlink3.mk" |
45 | PLIST.alsa= yes | | 45 | PLIST.alsa= yes |
46 | .else | | 46 | .else |
47 | CONFIGURE_ARGS+= --disable-alsa | | 47 | CONFIGURE_ARGS+= --disable-alsa |
48 | .endif | | 48 | .endif |
49 | | | 49 | |
50 | ## Avahi support | | 50 | ## Avahi support |
51 | | | 51 | |
52 | PLIST_VARS+= avahi | | 52 | PLIST_VARS+= avahi |
53 | .if !empty(PKG_OPTIONS:Mavahi) | | 53 | .if !empty(PKG_OPTIONS:Mavahi) |
54 | CONFIGURE_ARGS+= --enable-avahi | | 54 | CONFIGURE_ARGS+= --enable-avahi |
55 | .include "../../net/avahi/buildlink3.mk" | | 55 | .include "../../net/avahi/buildlink3.mk" |
56 | PLIST.avahi= yes | | 56 | PLIST.avahi= yes |
57 | .else | | 57 | .else |
58 | CONFIGURE_ARGS+= --disable-avahi | | 58 | CONFIGURE_ARGS+= --disable-avahi |
59 | .endif | | 59 | .endif |
60 | | | 60 | |
61 | ## PulseAudio support | | 61 | ## PulseAudio support |
62 | | | 62 | |
63 | PLIST_VARS+= pulseaudio | | 63 | PLIST_VARS+= pulseaudio |
64 | .if !empty(PKG_OPTIONS:Mpulseaudio) | | 64 | .if !empty(PKG_OPTIONS:Mpulseaudio) |
65 | CONFIGURE_ARGS+= --enable-pulse | | 65 | CONFIGURE_ARGS+= --enable-pulse |
66 | .include "../../audio/pulseaudio/buildlink3.mk" | | 66 | .include "../../audio/pulseaudio/buildlink3.mk" |
67 | PLIST.pulseaudio= yes | | 67 | PLIST.pulseaudio= yes |
68 | .else | | 68 | .else |
69 | CONFIGURE_ARGS+= --disable-pulse | | 69 | CONFIGURE_ARGS+= --disable-pulse |
70 | .endif | | 70 | .endif |
71 | | | 71 | |
72 | ## Jack Audio Connection Kit support | | 72 | ## Jack Audio Connection Kit support |
73 | | | 73 | |
74 | PLIST_VARS+= jack | | 74 | PLIST_VARS+= jack |
75 | .if !empty(PKG_OPTIONS:Mjack) | | 75 | .if !empty(PKG_OPTIONS:Mjack) |
76 | CONFIGURE_ARGS+= --enable-jack | | 76 | CONFIGURE_ARGS+= --enable-jack |
77 | .include "../../audio/jack/buildlink3.mk" | | 77 | .include "../../audio/jack/buildlink3.mk" |
78 | PLIST.jack= yes | | 78 | PLIST.jack= yes |
79 | .else | | 79 | .else |
80 | CONFIGURE_ARGS+= --disable-jack | | 80 | CONFIGURE_ARGS+= --disable-jack |
81 | .endif | | 81 | .endif |
82 | | | 82 | |
83 | ## DBUS message bus support | | 83 | ## DBUS message bus support |
84 | | | 84 | |
85 | PLIST_VARS+= dbus | | 85 | PLIST_VARS+= dbus |
86 | .if !empty(PKG_OPTIONS:Mdbus) | | 86 | .if !empty(PKG_OPTIONS:Mdbus) |
87 | CONFIGURE_ARGS+= --enable-dbus | | 87 | CONFIGURE_ARGS+= --enable-dbus |
88 | .include "../../sysutils/dbus/buildlink3.mk" | | 88 | .include "../../sysutils/dbus/buildlink3.mk" |
89 | PLIST.dbus= yes | | 89 | PLIST.dbus= yes |
90 | .else | | 90 | .else |
91 | CONFIGURE_ARGS+= --disable-dbus | | 91 | CONFIGURE_ARGS+= --disable-dbus |
92 | .endif | | 92 | .endif |
93 | | | 93 | |
94 | ## DEBUG build or release build | | 94 | ## DEBUG build or release build |
95 | | | 95 | |
96 | .if !empty(PKG_OPTIONS:Mdebug) | | 96 | .if !empty(PKG_OPTIONS:Mdebug) |
97 | CONFIGURE_ARGS+= --enable-debug | | 97 | CONFIGURE_ARGS+= --enable-debug |
98 | CONFIGURE_ARGS+= --disable-optimizations | | 98 | CONFIGURE_ARGS+= --disable-optimizations |
99 | .endif | | 99 | .endif |
100 | | | 100 | |
101 | ## SKINS frontend | | 101 | ## SKINS frontend |
102 | | | 102 | |
103 | PLIST_VARS+= vlc-skins | | 103 | PLIST_VARS+= vlc-skins |
104 | .if !empty(PKG_OPTIONS:Mvlc-skins) | | 104 | .if !empty(PKG_OPTIONS:Mvlc-skins) |
105 | CONFIGURE_ARGS+= --enable-skins2 | | 105 | CONFIGURE_ARGS+= --enable-skins2 |
106 | PLIST.vlc-skins= yes | | 106 | PLIST.vlc-skins= yes |
107 | INSTALLATION_DIRS+= share/vlc/skins2 | | 107 | INSTALLATION_DIRS+= share/vlc/skins2 |
108 | .else | | 108 | .else |
109 | CONFIGURE_ARGS+= --disable-skins2 | | 109 | CONFIGURE_ARGS+= --disable-skins2 |
110 | .endif | | 110 | .endif |
111 | | | 111 | |
112 | ## QT5 frontend | | 112 | ## QT5 frontend |
113 | | | 113 | |
114 | PLIST_VARS+= qt5 | | 114 | PLIST_VARS+= qt5 |
115 | .if !empty(PKG_OPTIONS:Mqt5) | | 115 | .if !empty(PKG_OPTIONS:Mqt5) |
116 | .include "../../x11/qt5-qtbase/buildlink3.mk" | | 116 | .include "../../x11/qt5-qtbase/buildlink3.mk" |
117 | .include "../../x11/qt5-qtsvg/buildlink3.mk" | | 117 | .include "../../x11/qt5-qtsvg/buildlink3.mk" |
118 | PLIST.qt5= yes | | 118 | PLIST.qt5= yes |
119 | CONFIGURE_ARGS+= --enable-qt | | 119 | CONFIGURE_ARGS+= --enable-qt |
120 | .else | | 120 | .else |
121 | CONFIGURE_ARGS+= --disable-qt | | 121 | CONFIGURE_ARGS+= --disable-qt |
122 | .endif | | 122 | .endif |
123 | | | 123 | |
124 | ## X11 video output | | 124 | ## X11 video output |
125 | | | 125 | |
126 | PLIST_VARS+= x11 | | 126 | PLIST_VARS+= x11 |
127 | .if !empty(PKG_OPTIONS:Mx11) | | 127 | .if !empty(PKG_OPTIONS:Mx11) |
128 | .include "../../graphics/MesaLib/buildlink3.mk" | | 128 | .include "../../graphics/MesaLib/buildlink3.mk" |
129 | .include "../../x11/libX11/buildlink3.mk" | | 129 | .include "../../x11/libX11/buildlink3.mk" |
130 | .include "../../x11/libxcb/buildlink3.mk" | | 130 | .include "../../x11/libxcb/buildlink3.mk" |
131 | PLIST.x11= yes | | 131 | PLIST.x11= yes |
132 | CONFIGURE_ARGS+= --enable-xcb | | 132 | CONFIGURE_ARGS+= --enable-xcb |
133 | CONFIGURE_ARGS+= --enable-xvideo | | 133 | CONFIGURE_ARGS+= --enable-xvideo |
134 | .else | | 134 | .else |
135 | CONFIGURE_ARGS+= --disable-xcb | | 135 | CONFIGURE_ARGS+= --disable-xcb |
136 | CONFIGURE_ARGS+= --disable-xvideo | | 136 | CONFIGURE_ARGS+= --disable-xvideo |
137 | .endif | | 137 | .endif |
138 | | | 138 | |
139 | .if !empty(PKG_OPTIONS:Mx11) && !empty(PKG_OPTIONS:Mqt5) | | 139 | .if !empty(PKG_OPTIONS:Mx11) && !empty(PKG_OPTIONS:Mqt5) |
140 | .include "../../x11/qt5-qtx11extras/buildlink3.mk" | | 140 | .include "../../x11/qt5-qtx11extras/buildlink3.mk" |
141 | .endif | | 141 | .endif |
142 | | | 142 | |
143 | ## DTS support (libdca is non-redistributable) | | 143 | ## DTS support (libdca is non-redistributable) |
144 | | | 144 | |
145 | PLIST_VARS+= dts | | 145 | PLIST_VARS+= dts |
146 | .if !empty(PKG_OPTIONS:Mdts) | | 146 | .if !empty(PKG_OPTIONS:Mdts) |
147 | CONFIGURE_ARGS+= --enable-dca | | 147 | CONFIGURE_ARGS+= --enable-dca |
148 | PLIST.dts= yes | | 148 | PLIST.dts= yes |
149 | . include "../../audio/libdca/buildlink3.mk" | | 149 | . include "../../audio/libdca/buildlink3.mk" |
150 | .else | | 150 | .else |
151 | CONFIGURE_ARGS+= --enable-dca=no | | 151 | CONFIGURE_ARGS+= --enable-dca=no |
152 | .endif | | 152 | .endif |
153 | | | 153 | |
154 | ## VAAPI support | | 154 | ## VAAPI support |
155 | PLIST_VARS+= vaapi | | 155 | PLIST_VARS+= vaapi |
156 | .if !empty(PKG_OPTIONS:Mvaapi) | | 156 | .if !empty(PKG_OPTIONS:Mvaapi) |
157 | CONFIGURE_ARGS+= --enable-libva | | 157 | CONFIGURE_ARGS+= --enable-libva |
158 | PLIST.vaapi= yes | | 158 | PLIST.vaapi= yes |
159 | .include "../../multimedia/libva/buildlink3.mk" | | 159 | .include "../../multimedia/libva/buildlink3.mk" |
160 | .else | | 160 | .else |
161 | CONFIGURE_ARGS+= --disable-libva | | 161 | CONFIGURE_ARGS+= --disable-libva |
162 | .endif | | 162 | .endif |
163 | | | 163 | |
164 | ## VDPAU support | | 164 | ## VDPAU support |
165 | PLIST_VARS+= vdpau | | 165 | PLIST_VARS+= vdpau |
166 | .if !empty(PKG_OPTIONS:Mvaapi) | | 166 | .if !empty(PKG_OPTIONS:Mvdpau) |
167 | CONFIGURE_ARGS+= --enable-vdpau | | 167 | CONFIGURE_ARGS+= --enable-vdpau |
168 | PLIST.vdpau= yes | | 168 | PLIST.vdpau= yes |
169 | .include "../../multimedia/libvdpau/buildlink3.mk" | | 169 | .include "../../multimedia/libvdpau/buildlink3.mk" |
170 | .else | | 170 | .else |
171 | CONFIGURE_ARGS+= --disable-vdpau | | 171 | CONFIGURE_ARGS+= --disable-vdpau |
172 | .endif | | 172 | .endif |
173 | | | 173 | |
174 | ## LIRC support | | 174 | ## LIRC support |
175 | PLIST_VARS+= lirc | | 175 | PLIST_VARS+= lirc |
176 | .if !empty(PKG_OPTIONS:Mlirc) | | 176 | .if !empty(PKG_OPTIONS:Mlirc) |
177 | CONFIGURE_ARGS+= --enable-lirc | | 177 | CONFIGURE_ARGS+= --enable-lirc |
178 | PLIST.lirc= yes | | 178 | PLIST.lirc= yes |
179 | .include "../../comms/lirc/buildlink3.mk" | | 179 | .include "../../comms/lirc/buildlink3.mk" |
180 | .else | | 180 | .else |
181 | CONFIGURE_ARGS+= --disable-lirc | | 181 | CONFIGURE_ARGS+= --disable-lirc |
182 | .endif | | 182 | .endif |