| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.13 2018/09/25 09:46:09 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.14 2018/09/29 14:28:24 tnn 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 rtmp \ | | 7 | lame libvpx opencore-amr openssl opus rpi rtmp \ |
8 | tesseract 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 |
| @@ -19,45 +19,42 @@ PKG_SUGGESTED_OPTIONS+= vdpau | | | @@ -19,45 +19,42 @@ PKG_SUGGESTED_OPTIONS+= vdpau |
19 | .endif | | 19 | .endif |
20 | | | 20 | |
21 | # Add VAAPI if it is available | | 21 | # Add VAAPI if it is available |
22 | .include "../../multimedia/libva/available.mk" | | 22 | .include "../../multimedia/libva/available.mk" |
23 | .if ${VAAPI_AVAILABLE} == "yes" | | 23 | .if ${VAAPI_AVAILABLE} == "yes" |
24 | PKG_SUPPORTED_OPTIONS+= vaapi | | 24 | PKG_SUPPORTED_OPTIONS+= vaapi |
25 | PKG_SUGGESTED_OPTIONS+= vaapi | | 25 | PKG_SUGGESTED_OPTIONS+= vaapi |
26 | .endif | | 26 | .endif |
27 | | | 27 | |
28 | .include "../../mk/bsd.options.mk" | | 28 | .include "../../mk/bsd.options.mk" |
29 | | | 29 | |
30 | # Fontconfig | | 30 | # Fontconfig |
31 | .if !empty(PKG_OPTIONS:Mfontconfig) | | 31 | .if !empty(PKG_OPTIONS:Mfontconfig) |
32 | USE_TOOLS+= pkg-config | | | |
33 | CONFIGURE_ARGS+= --enable-fontconfig | | 32 | CONFIGURE_ARGS+= --enable-fontconfig |
34 | .include "../../fonts/fontconfig/buildlink3.mk" | | 33 | .include "../../fonts/fontconfig/buildlink3.mk" |
35 | .else | | 34 | .else |
36 | CONFIGURE_ARGS+= --disable-fontconfig | | 35 | CONFIGURE_ARGS+= --disable-fontconfig |
37 | .endif | | 36 | .endif |
38 | | | 37 | |
39 | # freetype option | | 38 | # freetype option |
40 | .if !empty(PKG_OPTIONS:Mfreetype) | | 39 | .if !empty(PKG_OPTIONS:Mfreetype) |
41 | USE_TOOLS+= pkg-config | | | |
42 | CONFIGURE_ARGS+= --enable-libfreetype | | 40 | CONFIGURE_ARGS+= --enable-libfreetype |
43 | .include "../../graphics/freetype2/buildlink3.mk" | | 41 | .include "../../graphics/freetype2/buildlink3.mk" |
44 | .else | | 42 | .else |
45 | CONFIGURE_ARGS+= --disable-libfreetype | | 43 | CONFIGURE_ARGS+= --disable-libfreetype |
46 | .endif | | 44 | .endif |
47 | | | 45 | |
48 | # ass option | | 46 | # ass option |
49 | .if !empty(PKG_OPTIONS:Mass) | | 47 | .if !empty(PKG_OPTIONS:Mass) |
50 | USE_TOOLS+= pkg-config | | | |
51 | CONFIGURE_ARGS+= --enable-libass | | 48 | CONFIGURE_ARGS+= --enable-libass |
52 | .include "../../multimedia/libass/buildlink3.mk" | | 49 | .include "../../multimedia/libass/buildlink3.mk" |
53 | .else | | 50 | .else |
54 | CONFIGURE_ARGS+= --disable-libass | | 51 | CONFIGURE_ARGS+= --disable-libass |
55 | .endif | | 52 | .endif |
56 | | | 53 | |
57 | # doc option | | 54 | # doc option |
58 | .if !empty(PKG_OPTIONS:Mdoc) | | 55 | .if !empty(PKG_OPTIONS:Mdoc) |
59 | PLIST.doc= yes | | 56 | PLIST.doc= yes |
60 | USE_TOOLS+= texi2html | | 57 | USE_TOOLS+= texi2html |
61 | CONFIGURE_ARGS+= --enable-htmlpages | | 58 | CONFIGURE_ARGS+= --enable-htmlpages |
62 | .else | | 59 | .else |
63 | CONFIGURE_ARGS+= --disable-htmlpages | | 60 | CONFIGURE_ARGS+= --disable-htmlpages |
| @@ -99,27 +96,26 @@ CONFIGURE_ARGS+= --disable-libopencore-a | | | @@ -99,27 +96,26 @@ CONFIGURE_ARGS+= --disable-libopencore-a |
99 | .endif | | 96 | .endif |
100 | | | 97 | |
101 | # OpenSSL support | | 98 | # OpenSSL support |
102 | .if !empty(PKG_OPTIONS:Mopenssl) | | 99 | .if !empty(PKG_OPTIONS:Mopenssl) |
103 | CONFIGURE_ARGS+= --enable-nonfree | | 100 | CONFIGURE_ARGS+= --enable-nonfree |
104 | CONFIGURE_ARGS+= --enable-openssl | | 101 | CONFIGURE_ARGS+= --enable-openssl |
105 | .include "../../security/openssl/buildlink3.mk" | | 102 | .include "../../security/openssl/buildlink3.mk" |
106 | .else | | 103 | .else |
107 | CONFIGURE_ARGS+= --disable-openssl | | 104 | CONFIGURE_ARGS+= --disable-openssl |
108 | .endif | | 105 | .endif |
109 | | | 106 | |
110 | # RTMP support via librtmp | | 107 | # RTMP support via librtmp |
111 | .if !empty(PKG_OPTIONS:Mrtmp) | | 108 | .if !empty(PKG_OPTIONS:Mrtmp) |
112 | USE_TOOLS+= pkg-config | | | |
113 | CONFIGURE_ARGS+= --enable-librtmp | | 109 | CONFIGURE_ARGS+= --enable-librtmp |
114 | .include "../../net/rtmpdump/buildlink3.mk" | | 110 | .include "../../net/rtmpdump/buildlink3.mk" |
115 | .endif | | 111 | .endif |
116 | | | 112 | |
117 | # OCR filter using Tesseract | | 113 | # OCR filter using Tesseract |
118 | .if !empty(PKG_OPTIONS:Mtesseract) | | 114 | .if !empty(PKG_OPTIONS:Mtesseract) |
119 | CONFIGURE_ARGS+= --enable-libtesseract | | 115 | CONFIGURE_ARGS+= --enable-libtesseract |
120 | .include "../../graphics/tesseract/buildlink3.mk" | | 116 | .include "../../graphics/tesseract/buildlink3.mk" |
121 | .else | | 117 | .else |
122 | CONFIGURE_ARGS+= --disable-libtesseract | | 118 | CONFIGURE_ARGS+= --disable-libtesseract |
123 | .endif | | 119 | .endif |
124 | | | 120 | |
125 | # OGG Theora support | | 121 | # OGG Theora support |