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