| @@ -1,21 +1,21 @@ | | | @@ -1,21 +1,21 @@ |
1 | # $NetBSD: options.mk,v 1.11 2018/03/05 21:17:07 rjs Exp $ | | 1 | # $NetBSD: options.mk,v 1.12 2018/04/30 09:00:45 adam Exp $ |
2 | | | 2 | |
3 | # Global and legacy options | | 3 | # Global and legacy options |
4 | | | 4 | |
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3 | | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3 |
6 | PKG_SUPPORTED_OPTIONS= ass bluray doc fdk-aac fontconfig freetype gnutls \ | | 6 | PKG_SUPPORTED_OPTIONS= ass bluray doc fdk-aac fontconfig freetype gnutls \ |
7 | lame libvpx opencore-amr openssl opus rpi \ | | 7 | lame libvpx opencore-amr openssl opus rpi rtmp \ |
8 | rtmp theora vorbis x11 x264 x265 xcb xvid | | 8 | tesseract theora vorbis x11 x264 x265 xcb xvid |
9 | PKG_SUGGESTED_OPTIONS= lame ass bluray freetype fontconfig libvpx openssl \ | | 9 | PKG_SUGGESTED_OPTIONS= lame ass bluray freetype fontconfig libvpx openssl \ |
10 | theora vorbis x11 x264 xvid | | 10 | theora vorbis x11 x264 xvid |
11 | | | 11 | |
12 | PLIST_VARS+= doc | | 12 | PLIST_VARS+= doc |
13 | | | 13 | |
14 | # Add VDPAU if it is available | | 14 | # Add VDPAU if it is available |
15 | .include "../../multimedia/libvdpau/available.mk" | | 15 | .include "../../multimedia/libvdpau/available.mk" |
16 | .if ${VDPAU_AVAILABLE} == "yes" | | 16 | .if ${VDPAU_AVAILABLE} == "yes" |
17 | PKG_SUPPORTED_OPTIONS+= vdpau | | 17 | PKG_SUPPORTED_OPTIONS+= vdpau |
18 | PKG_SUGGESTED_OPTIONS+= vdpau | | 18 | PKG_SUGGESTED_OPTIONS+= vdpau |
19 | .endif | | 19 | .endif |
20 | | | 20 | |
21 | # Add VAAPI if it is available | | 21 | # Add VAAPI if it is available |
| @@ -103,26 +103,34 @@ CONFIGURE_ARGS+= --disable-libopencore-a | | | @@ -103,26 +103,34 @@ CONFIGURE_ARGS+= --disable-libopencore-a |
103 | CONFIGURE_ARGS+= --enable-nonfree | | 103 | CONFIGURE_ARGS+= --enable-nonfree |
104 | CONFIGURE_ARGS+= --enable-openssl | | 104 | CONFIGURE_ARGS+= --enable-openssl |
105 | .include "../../security/openssl/buildlink3.mk" | | 105 | .include "../../security/openssl/buildlink3.mk" |
106 | .else | | 106 | .else |
107 | CONFIGURE_ARGS+= --disable-openssl | | 107 | CONFIGURE_ARGS+= --disable-openssl |
108 | .endif | | 108 | .endif |
109 | | | 109 | |
110 | # RTMP support via librtmp | | 110 | # RTMP support via librtmp |
111 | .if !empty(PKG_OPTIONS:Mrtmp) | | 111 | .if !empty(PKG_OPTIONS:Mrtmp) |
112 | CONFIGURE_ARGS+= --enable-librtmp | | 112 | CONFIGURE_ARGS+= --enable-librtmp |
113 | .include "../../net/rtmpdump/buildlink3.mk" | | 113 | .include "../../net/rtmpdump/buildlink3.mk" |
114 | .endif | | 114 | .endif |
115 | | | 115 | |
| | | 116 | # OCR filter using Tesseract |
| | | 117 | .if !empty(PKG_OPTIONS:Mtesseract) |
| | | 118 | CONFIGURE_ARGS+= --enable-libtesseract |
| | | 119 | .include "../../graphics/tesseract/buildlink3.mk" |
| | | 120 | .else |
| | | 121 | CONFIGURE_ARGS+= --disable-libtesseract |
| | | 122 | .endif |
| | | 123 | |
116 | # OGG Theora support | | 124 | # OGG Theora support |
117 | .if !empty(PKG_OPTIONS:Mtheora) | | 125 | .if !empty(PKG_OPTIONS:Mtheora) |
118 | CONFIGURE_ARGS+= --enable-libtheora | | 126 | CONFIGURE_ARGS+= --enable-libtheora |
119 | .include "../../multimedia/libtheora/buildlink3.mk" | | 127 | .include "../../multimedia/libtheora/buildlink3.mk" |
120 | .endif | | 128 | .endif |
121 | | | 129 | |
122 | # OGG Vorbis support | | 130 | # OGG Vorbis support |
123 | .if !empty(PKG_OPTIONS:Mvorbis) | | 131 | .if !empty(PKG_OPTIONS:Mvorbis) |
124 | CONFIGURE_ARGS+= --enable-libvorbis | | 132 | CONFIGURE_ARGS+= --enable-libvorbis |
125 | .include "../../audio/libvorbis/buildlink3.mk" | | 133 | .include "../../audio/libvorbis/buildlink3.mk" |
126 | .endif | | 134 | .endif |
127 | | | 135 | |
128 | # LAME MP3 encoder | | 136 | # LAME MP3 encoder |
| @@ -209,14 +217,13 @@ CONFIGURE_ARGS+= --enable-libxcb-shm | | | @@ -209,14 +217,13 @@ CONFIGURE_ARGS+= --enable-libxcb-shm |
209 | CONFIGURE_ARGS+= --enable-libxcb-xfixes | | 217 | CONFIGURE_ARGS+= --enable-libxcb-xfixes |
210 | .include "../../x11/libxcb/buildlink3.mk" | | 218 | .include "../../x11/libxcb/buildlink3.mk" |
211 | .else | | 219 | .else |
212 | CONFIGURE_ARGS+= --disable-libxcb | | 220 | CONFIGURE_ARGS+= --disable-libxcb |
213 | .endif | | 221 | .endif |
214 | | | 222 | |
215 | # Bluray support | | 223 | # Bluray support |
216 | .if !empty(PKG_OPTIONS:Mbluray) | | 224 | .if !empty(PKG_OPTIONS:Mbluray) |
217 | CONFIGURE_ARGS+= --enable-libbluray | | 225 | CONFIGURE_ARGS+= --enable-libbluray |
218 | .include "../../multimedia/libbluray/buildlink3.mk" | | 226 | .include "../../multimedia/libbluray/buildlink3.mk" |
219 | .else | | 227 | .else |
220 | CONFIGURE_ARGS+= --disable-libbluray | | 228 | CONFIGURE_ARGS+= --disable-libbluray |
221 | .endif | | 229 | .endif |
222 | | | | |