| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.17 2021/05/17 12:19:07 nia Exp $ | | 1 | # $NetBSD: options.mk,v 1.18 2022/09/27 20:57:54 wiz Exp $ |
2 | | | 2 | |
3 | # Global and legacy options | | 3 | # Global and legacy options |
4 | | | 4 | |
5 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | | 5 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl |
6 | PKG_OPTIONS_GROUP.ssl= gnutls mbedtls openssl | | 6 | PKG_OPTIONS_GROUP.ssl= gnutls mbedtls openssl |
7 | | | 7 | |
8 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg4 | | 8 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg4 |
9 | PKG_SUPPORTED_OPTIONS= ass av1 bluray doc fdk-aac fontconfig freetype jack \ | | 9 | PKG_SUPPORTED_OPTIONS= ass av1 bluray doc fdk-aac fontconfig freetype jack \ |
10 | lame libvpx libwebp opencore-amr opus pulseaudio rpi rtmp \ | | 10 | lame libvpx libwebp opencore-amr opus pulseaudio rpi rtmp \ |
11 | speex tesseract theora vorbis x11 x264 x265 xvid | | 11 | speex tesseract theora vorbis x11 x264 x265 xvid |
12 | PKG_SUGGESTED_OPTIONS= ass av1 bluray freetype fontconfig gnutls lame \ | | 12 | PKG_SUGGESTED_OPTIONS= ass av1 bluray freetype fontconfig gnutls lame \ |
13 | libvpx libwebp opus speex theora vorbis x11 x264 x265 xvid | | 13 | libvpx libwebp opus speex theora vorbis x11 x264 x265 xvid |
14 | | | 14 | |
| @@ -163,27 +163,27 @@ CONFIGURE_ARGS+= --disable-libtesseract | | | @@ -163,27 +163,27 @@ CONFIGURE_ARGS+= --disable-libtesseract |
163 | CONFIGURE_ARGS+= --enable-libtheora | | 163 | CONFIGURE_ARGS+= --enable-libtheora |
164 | .include "../../multimedia/libtheora/buildlink3.mk" | | 164 | .include "../../multimedia/libtheora/buildlink3.mk" |
165 | .endif | | 165 | .endif |
166 | | | 166 | |
167 | # OGG Vorbis support | | 167 | # OGG Vorbis support |
168 | .if !empty(PKG_OPTIONS:Mvorbis) | | 168 | .if !empty(PKG_OPTIONS:Mvorbis) |
169 | CONFIGURE_ARGS+= --enable-libvorbis | | 169 | CONFIGURE_ARGS+= --enable-libvorbis |
170 | .include "../../audio/libvorbis/buildlink3.mk" | | 170 | .include "../../audio/libvorbis/buildlink3.mk" |
171 | .endif | | 171 | .endif |
172 | | | 172 | |
173 | # LAME MP3 encoder | | 173 | # LAME MP3 encoder |
174 | .if !empty(PKG_OPTIONS:Mlame) | | 174 | .if !empty(PKG_OPTIONS:Mlame) |
175 | # "lame-3.98" isn't compatible with "ffmpeg" which breaks audio encoding. | | 175 | # "lame-3.98" isn't compatible with "ffmpeg" which breaks audio encoding. |
176 | BUILDLINK_ABI_DEPENDS.lame+= lame>=3.98.2nb1 | | 176 | BUILDLINK_API_DEPENDS.lame+= lame>=3.98.2nb1 |
177 | CONFIGURE_ARGS+= --enable-libmp3lame | | 177 | CONFIGURE_ARGS+= --enable-libmp3lame |
178 | .include "../../audio/lame/buildlink3.mk" | | 178 | .include "../../audio/lame/buildlink3.mk" |
179 | .endif | | 179 | .endif |
180 | | | 180 | |
181 | # OPUS support | | 181 | # OPUS support |
182 | .if !empty(PKG_OPTIONS:Mopus) | | 182 | .if !empty(PKG_OPTIONS:Mopus) |
183 | CONFIGURE_ARGS+= --enable-libopus | | 183 | CONFIGURE_ARGS+= --enable-libopus |
184 | .include "../../audio/libopus/buildlink3.mk" | | 184 | .include "../../audio/libopus/buildlink3.mk" |
185 | .endif | | 185 | .endif |
186 | | | 186 | |
187 | # Speex support | | 187 | # Speex support |
188 | .if !empty(PKG_OPTIONS:Mspeex) | | 188 | .if !empty(PKG_OPTIONS:Mspeex) |
189 | CONFIGURE_ARGS+= --enable-libspeex | | 189 | CONFIGURE_ARGS+= --enable-libspeex |
| @@ -202,30 +202,28 @@ SUBST_FILES.vc= configure | | | @@ -202,30 +202,28 @@ SUBST_FILES.vc= configure |
202 | SUBST_SED.vc+= -e 's;-isystem/opt/vc;-I${PREFIX};g' | | 202 | SUBST_SED.vc+= -e 's;-isystem/opt/vc;-I${PREFIX};g' |
203 | SUBST_SED.vc+= -e 's;/opt/vc;${PREFIX};g' | | 203 | SUBST_SED.vc+= -e 's;/opt/vc;${PREFIX};g' |
204 | .include "../../misc/raspberrypi-userland/buildlink3.mk" | | 204 | .include "../../misc/raspberrypi-userland/buildlink3.mk" |
205 | .endif | | 205 | .endif |
206 | | | 206 | |
207 | # XviD support | | 207 | # XviD support |
208 | .if !empty(PKG_OPTIONS:Mxvid) | | 208 | .if !empty(PKG_OPTIONS:Mxvid) |
209 | CONFIGURE_ARGS+= --enable-libxvid | | 209 | CONFIGURE_ARGS+= --enable-libxvid |
210 | .include "../../multimedia/xvidcore/buildlink3.mk" | | 210 | .include "../../multimedia/xvidcore/buildlink3.mk" |
211 | .endif | | 211 | .endif |
212 | | | 212 | |
213 | # x264 support | | 213 | # x264 support |
214 | .if !empty(PKG_OPTIONS:Mx264) | | 214 | .if !empty(PKG_OPTIONS:Mx264) |
215 | # ABI change between 20090326 and 20100201 | | | |
216 | BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20111207 | | | |
217 | CONFIGURE_ARGS+= --enable-libx264 | | 215 | CONFIGURE_ARGS+= --enable-libx264 |
218 | .include "../../multimedia/x264-devel/buildlink3.mk" | | 216 | .include "../../multimedia/x264/buildlink3.mk" |
219 | .else | | 217 | .else |
220 | CONFIGURE_ARGS+= --disable-libx264 | | 218 | CONFIGURE_ARGS+= --disable-libx264 |
221 | .endif | | 219 | .endif |
222 | | | 220 | |
223 | # x265 support | | 221 | # x265 support |
224 | .if !empty(PKG_OPTIONS:Mx265) | | 222 | .if !empty(PKG_OPTIONS:Mx265) |
225 | CONFIGURE_ARGS+= --enable-libx265 | | 223 | CONFIGURE_ARGS+= --enable-libx265 |
226 | .include "../../multimedia/x265/buildlink3.mk" | | 224 | .include "../../multimedia/x265/buildlink3.mk" |
227 | .else | | 225 | .else |
228 | CONFIGURE_ARGS+= --disable-libx265 | | 226 | CONFIGURE_ARGS+= --disable-libx265 |
229 | .endif | | 227 | .endif |
230 | | | 228 | |
231 | # VDPAU support | | 229 | # VDPAU support |