ffmpeg*: Sync default options with ffmpeg4diff -r1.54 -r1.55 pkgsrc/multimedia/ffmpeg2/Makefile
(nia)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.54 2020/03/10 22:10:38 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.55 2020/04/23 10:29:19 nia Exp $ | |
2 | 2 | |||
3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | 3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | |
4 | PKGREVISION= 13 | 4 | PKGREVISION= 14 | |
5 | MAINTAINER= pkgsrc-users@NetBSD.org | 5 | MAINTAINER= pkgsrc-users@NetBSD.org | |
6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | 6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | |
7 | COMMENT= Decoding, encoding and streaming software (v2.x) | 7 | COMMENT= Decoding, encoding and streaming software (v2.x) | |
8 | 8 | |||
9 | CONFIGURE_ARGS+= --enable-avfilter | 9 | CONFIGURE_ARGS+= --enable-avfilter | |
10 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | 10 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | |
11 | CONFIGURE_ARGS+= --enable-postproc | 11 | CONFIGURE_ARGS+= --enable-postproc | |
12 | CONFIGURE_ARGS+= --disable-ffplay | 12 | CONFIGURE_ARGS+= --disable-ffplay | |
13 | 13 | |||
14 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 | 14 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 | |
15 | 15 | |||
16 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | 16 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | |
17 | ${PKG_SYSCONFDIR}/ffserver.conf | 17 | ${PKG_SYSCONFDIR}/ffserver.conf |
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | # $NetBSD: options.mk,v 1.16 2019/06/18 14:41:09 nia Exp $ | 1 | # $NetBSD: options.mk,v 1.17 2020/04/23 10:29:19 nia Exp $ | |
2 | 2 | |||
3 | # Global and legacy options | 3 | # Global and legacy options | |
4 | 4 | |||
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg2 | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg2 | |
6 | 6 | |||
7 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | 7 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | |
8 | PKG_OPTIONS_GROUP.ssl= gnutls openssl | 8 | PKG_OPTIONS_GROUP.ssl= gnutls openssl | |
9 | 9 | |||
10 | PKG_SUPPORTED_OPTIONS= ass doc faac fdk-aac fontconfig freetype lame \ | 10 | PKG_SUPPORTED_OPTIONS= ass bluray doc faac fdk-aac fontconfig freetype \ | |
11 | libvpx opencore-amr rtmp theora vorbis x11 x264 \ | 11 | lame libvpx opencore-amr opus pulseaudio rtmp \ | |
12 | x265 xvid | 12 | theora vorbis x11 x264 x265 xvid | |
13 | PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx \ | 13 | PKG_SUGGESTED_OPTIONS= lame ass bluray freetype fontconfig gnutls libvpx \ | |
14 | theora vorbis x11 x264 xvid | 14 | opus theora vorbis x11 x264 x265 xvid | |
15 | 15 | |||
16 | PKG_OPTIONS_LEGACY_OPTS+= xcb:x11 | 16 | PKG_OPTIONS_LEGACY_OPTS+= xcb:x11 | |
17 | 17 | |||
18 | PLIST_VARS+= doc | 18 | PLIST_VARS+= doc | |
19 | 19 | |||
20 | # Add VDPAU if it is available | 20 | # Add VDPAU if it is available | |
21 | .include "../../multimedia/libvdpau/available.mk" | 21 | .include "../../multimedia/libvdpau/available.mk" | |
22 | .if ${VDPAU_AVAILABLE} == "yes" | 22 | .if ${VDPAU_AVAILABLE} == "yes" | |
23 | PKG_SUPPORTED_OPTIONS+= vdpau | 23 | PKG_SUPPORTED_OPTIONS+= vdpau | |
24 | PKG_SUGGESTED_OPTIONS+= vdpau | 24 | PKG_SUGGESTED_OPTIONS+= vdpau | |
25 | .endif | 25 | .endif | |
26 | 26 | |||
27 | # Add VAAPI if it is available | 27 | # Add VAAPI if it is available | |
@@ -113,52 +113,67 @@ CONFIGURE_ARGS+= --enable-version3 | @@ -113,52 +113,67 @@ CONFIGURE_ARGS+= --enable-version3 | |||
113 | CONFIGURE_ARGS+= --disable-libopencore-amrnb | 113 | CONFIGURE_ARGS+= --disable-libopencore-amrnb | |
114 | CONFIGURE_ARGS+= --disable-libopencore-amrwb | 114 | CONFIGURE_ARGS+= --disable-libopencore-amrwb | |
115 | .endif | 115 | .endif | |
116 | 116 | |||
117 | # OpenSSL support | 117 | # OpenSSL support | |
118 | .if !empty(PKG_OPTIONS:Mopenssl) | 118 | .if !empty(PKG_OPTIONS:Mopenssl) | |
119 | CONFIGURE_ARGS+= --enable-nonfree | 119 | CONFIGURE_ARGS+= --enable-nonfree | |
120 | CONFIGURE_ARGS+= --enable-openssl | 120 | CONFIGURE_ARGS+= --enable-openssl | |
121 | .include "../../security/openssl/buildlink3.mk" | 121 | .include "../../security/openssl/buildlink3.mk" | |
122 | .else | 122 | .else | |
123 | CONFIGURE_ARGS+= --disable-openssl | 123 | CONFIGURE_ARGS+= --disable-openssl | |
124 | .endif | 124 | .endif | |
125 | 125 | |||
126 | ||||
127 | # pulseaudio option | |||
128 | .if !empty(PKG_OPTIONS:Mpulseaudio) | |||
129 | CONFIGURE_ARGS+= --enable-libpulse | |||
130 | .include "../../audio/pulseaudio/buildlink3.mk" | |||
131 | .else | |||
132 | CONFIGURE_ARGS+= --disable-libpulse | |||
133 | .endif | |||
134 | ||||
126 | # RTMP support via librtmp | 135 | # RTMP support via librtmp | |
127 | .if !empty(PKG_OPTIONS:Mrtmp) | 136 | .if !empty(PKG_OPTIONS:Mrtmp) | |
128 | CONFIGURE_ARGS+= --enable-librtmp | 137 | CONFIGURE_ARGS+= --enable-librtmp | |
129 | .include "../../net/rtmpdump/buildlink3.mk" | 138 | .include "../../net/rtmpdump/buildlink3.mk" | |
130 | .endif | 139 | .endif | |
131 | 140 | |||
132 | # OGG Theora support | 141 | # OGG Theora support | |
133 | .if !empty(PKG_OPTIONS:Mtheora) | 142 | .if !empty(PKG_OPTIONS:Mtheora) | |
134 | CONFIGURE_ARGS+= --enable-libtheora | 143 | CONFIGURE_ARGS+= --enable-libtheora | |
135 | .include "../../multimedia/libtheora/buildlink3.mk" | 144 | .include "../../multimedia/libtheora/buildlink3.mk" | |
136 | .endif | 145 | .endif | |
137 | 146 | |||
138 | # OGG Vorbis support | 147 | # OGG Vorbis support | |
139 | .if !empty(PKG_OPTIONS:Mvorbis) | 148 | .if !empty(PKG_OPTIONS:Mvorbis) | |
140 | CONFIGURE_ARGS+= --enable-libvorbis | 149 | CONFIGURE_ARGS+= --enable-libvorbis | |
141 | .include "../../audio/libvorbis/buildlink3.mk" | 150 | .include "../../audio/libvorbis/buildlink3.mk" | |
142 | .endif | 151 | .endif | |
143 | 152 | |||
144 | # LAME MP3 encoder | 153 | # LAME MP3 encoder | |
145 | .if !empty(PKG_OPTIONS:Mlame) | 154 | .if !empty(PKG_OPTIONS:Mlame) | |
146 | # "lame-3.98" isn't compatible with "ffmpeg" which breaks audio encoding. | 155 | # "lame-3.98" isn't compatible with "ffmpeg" which breaks audio encoding. | |
147 | BUILDLINK_ABI_DEPENDS.lame+= lame>=3.98.2nb1 | 156 | BUILDLINK_ABI_DEPENDS.lame+= lame>=3.98.2nb1 | |
148 | CONFIGURE_ARGS+= --enable-libmp3lame | 157 | CONFIGURE_ARGS+= --enable-libmp3lame | |
149 | .include "../../audio/lame/buildlink3.mk" | 158 | .include "../../audio/lame/buildlink3.mk" | |
150 | .endif | 159 | .endif | |
151 | 160 | |||
161 | # OPUS support | |||
162 | .if !empty(PKG_OPTIONS:Mopus) | |||
163 | CONFIGURE_ARGS+= --enable-libopus | |||
164 | .include "../../audio/libopus/buildlink3.mk" | |||
165 | .endif | |||
166 | ||||
152 | # XviD support | 167 | # XviD support | |
153 | .if !empty(PKG_OPTIONS:Mxvid) | 168 | .if !empty(PKG_OPTIONS:Mxvid) | |
154 | CONFIGURE_ARGS+= --enable-libxvid | 169 | CONFIGURE_ARGS+= --enable-libxvid | |
155 | .include "../../multimedia/xvidcore/buildlink3.mk" | 170 | .include "../../multimedia/xvidcore/buildlink3.mk" | |
156 | .endif | 171 | .endif | |
157 | 172 | |||
158 | # x264 support | 173 | # x264 support | |
159 | .if !empty(PKG_OPTIONS:Mx264) | 174 | .if !empty(PKG_OPTIONS:Mx264) | |
160 | # ABI change between 20090326 and 20100201 | 175 | # ABI change between 20090326 and 20100201 | |
161 | BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20111207 | 176 | BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20111207 | |
162 | CONFIGURE_ARGS+= --enable-libx264 | 177 | CONFIGURE_ARGS+= --enable-libx264 | |
163 | .include "../../multimedia/x264-devel/buildlink3.mk" | 178 | .include "../../multimedia/x264-devel/buildlink3.mk" | |
164 | .else | 179 | .else | |
@@ -197,13 +212,21 @@ CONFIGURE_ARGS+= --enable-libvpx | @@ -197,13 +212,21 @@ CONFIGURE_ARGS+= --enable-libvpx | |||
197 | CONFIGURE_ARGS+= --disable-libvpx | 212 | CONFIGURE_ARGS+= --disable-libvpx | |
198 | .endif | 213 | .endif | |
199 | 214 | |||
200 | # X11 screen capture support using libxcb | 215 | # X11 screen capture support using libxcb | |
201 | .if !empty(PKG_OPTIONS:Mx11) | 216 | .if !empty(PKG_OPTIONS:Mx11) | |
202 | CONFIGURE_ARGS+= --enable-libxcb | 217 | CONFIGURE_ARGS+= --enable-libxcb | |
203 | CONFIGURE_ARGS+= --enable-libxcb-shape | 218 | CONFIGURE_ARGS+= --enable-libxcb-shape | |
204 | CONFIGURE_ARGS+= --enable-libxcb-shm | 219 | CONFIGURE_ARGS+= --enable-libxcb-shm | |
205 | CONFIGURE_ARGS+= --enable-libxcb-xfixes | 220 | CONFIGURE_ARGS+= --enable-libxcb-xfixes | |
206 | .include "../../x11/libxcb/buildlink3.mk" | 221 | .include "../../x11/libxcb/buildlink3.mk" | |
207 | .else | 222 | .else | |
208 | CONFIGURE_ARGS+= --disable-libxcb | 223 | CONFIGURE_ARGS+= --disable-libxcb | |
209 | .endif | 224 | .endif | |
225 | ||||
226 | # Bluray support | |||
227 | .if !empty(PKG_OPTIONS:Mbluray) | |||
228 | CONFIGURE_ARGS+= --enable-libbluray | |||
229 | .include "../../multimedia/libbluray/buildlink3.mk" | |||
230 | .else | |||
231 | CONFIGURE_ARGS+= --disable-libbluray | |||
232 | .endif |
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.48 2020/03/10 22:10:38 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.49 2020/04/23 10:29:19 nia Exp $ | |
2 | 2 | |||
3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg3/} | 3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg3/} | |
4 | PKGREVISION= 3 | 4 | PKGREVISION= 4 | |
5 | MAINTAINER= pkgsrc-users@NetBSD.org | 5 | MAINTAINER= pkgsrc-users@NetBSD.org | |
6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | 6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | |
7 | COMMENT= Decoding, encoding and streaming software (v3.x) | 7 | COMMENT= Decoding, encoding and streaming software (v3.x) | |
8 | 8 | |||
9 | CONFIGURE_ARGS+= --enable-avfilter | 9 | CONFIGURE_ARGS+= --enable-avfilter | |
10 | CONFIGURE_ARGS+= --enable-avresample | 10 | CONFIGURE_ARGS+= --enable-avresample | |
11 | CONFIGURE_ARGS+= --enable-postproc | 11 | CONFIGURE_ARGS+= --enable-postproc | |
12 | CONFIGURE_ARGS+= --enable-rpath | 12 | CONFIGURE_ARGS+= --enable-rpath | |
13 | CONFIGURE_ARGS+= --disable-ffplay | 13 | CONFIGURE_ARGS+= --disable-ffplay | |
14 | 14 | |||
15 | INSTALLATION_DIRS= lib/ffmpeg3 share/doc/ffmpeg3 share/examples/ffmpeg3 | 15 | INSTALLATION_DIRS= lib/ffmpeg3 share/doc/ffmpeg3 share/examples/ffmpeg3 | |
16 | 16 | |||
17 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg3/ffserver.conf \ | 17 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg3/ffserver.conf \ |
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | # $NetBSD: options.mk,v 1.16 2019/06/18 14:41:09 nia Exp $ | 1 | # $NetBSD: options.mk,v 1.17 2020/04/23 10:29:19 nia 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 | 6 | |||
7 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | 7 | PKG_OPTIONS_OPTIONAL_GROUPS= ssl | |
8 | PKG_OPTIONS_GROUP.ssl= gnutls openssl | 8 | PKG_OPTIONS_GROUP.ssl= gnutls openssl | |
9 | 9 | |||
10 | PKG_SUPPORTED_OPTIONS= ass bluray doc fdk-aac fontconfig freetype \ | 10 | PKG_SUPPORTED_OPTIONS= ass bluray doc fdk-aac fontconfig freetype \ | |
11 | lame libvpx opencore-amr opus rpi rtmp \ | 11 | lame libvpx opencore-amr opus pulseaudio rpi \ | |
12 | tesseract theora vorbis x11 x264 x265 xvid | 12 | rtmp tesseract theora vorbis x11 x264 x265 xvid | |
13 | PKG_SUGGESTED_OPTIONS= lame ass bluray freetype fontconfig libvpx openssl \ | 13 | PKG_SUGGESTED_OPTIONS= lame ass bluray freetype fontconfig gnutls libvpx \ | |
14 | theora vorbis x11 x264 xvid | 14 | opus theora vorbis x11 x264 x265 xvid | |
15 | 15 | |||
16 | PKG_OPTIONS_LEGACY_OPTS+= xcb:x11 | 16 | PKG_OPTIONS_LEGACY_OPTS+= xcb:x11 | |
17 | 17 | |||
18 | PLIST_VARS+= doc | 18 | PLIST_VARS+= doc | |
19 | 19 | |||
20 | # Add VDPAU if it is available | 20 | # Add VDPAU if it is available | |
21 | .include "../../multimedia/libvdpau/available.mk" | 21 | .include "../../multimedia/libvdpau/available.mk" | |
22 | .if ${VDPAU_AVAILABLE} == "yes" | 22 | .if ${VDPAU_AVAILABLE} == "yes" | |
23 | PKG_SUPPORTED_OPTIONS+= vdpau | 23 | PKG_SUPPORTED_OPTIONS+= vdpau | |
24 | PKG_SUGGESTED_OPTIONS+= vdpau | 24 | PKG_SUGGESTED_OPTIONS+= vdpau | |
25 | .endif | 25 | .endif | |
26 | 26 | |||
27 | # Add VAAPI if it is available | 27 | # Add VAAPI if it is available | |
@@ -100,26 +100,34 @@ CONFIGURE_ARGS+= --enable-version3 | @@ -100,26 +100,34 @@ CONFIGURE_ARGS+= --enable-version3 | |||
100 | CONFIGURE_ARGS+= --disable-libopencore-amrnb | 100 | CONFIGURE_ARGS+= --disable-libopencore-amrnb | |
101 | CONFIGURE_ARGS+= --disable-libopencore-amrwb | 101 | CONFIGURE_ARGS+= --disable-libopencore-amrwb | |
102 | .endif | 102 | .endif | |
103 | 103 | |||
104 | # OpenSSL support | 104 | # OpenSSL support | |
105 | .if !empty(PKG_OPTIONS:Mopenssl) | 105 | .if !empty(PKG_OPTIONS:Mopenssl) | |
106 | CONFIGURE_ARGS+= --enable-nonfree | 106 | CONFIGURE_ARGS+= --enable-nonfree | |
107 | CONFIGURE_ARGS+= --enable-openssl | 107 | CONFIGURE_ARGS+= --enable-openssl | |
108 | .include "../../security/openssl/buildlink3.mk" | 108 | .include "../../security/openssl/buildlink3.mk" | |
109 | .else | 109 | .else | |
110 | CONFIGURE_ARGS+= --disable-openssl | 110 | CONFIGURE_ARGS+= --disable-openssl | |
111 | .endif | 111 | .endif | |
112 | 112 | |||
113 | # pulseaudio option | |||
114 | .if !empty(PKG_OPTIONS:Mpulseaudio) | |||
115 | CONFIGURE_ARGS+= --enable-libpulse | |||
116 | .include "../../audio/pulseaudio/buildlink3.mk" | |||
117 | .else | |||
118 | CONFIGURE_ARGS+= --disable-libpulse | |||
119 | .endif | |||
120 | ||||
113 | # RTMP support via librtmp | 121 | # RTMP support via librtmp | |
114 | .if !empty(PKG_OPTIONS:Mrtmp) | 122 | .if !empty(PKG_OPTIONS:Mrtmp) | |
115 | CONFIGURE_ARGS+= --enable-librtmp | 123 | CONFIGURE_ARGS+= --enable-librtmp | |
116 | .include "../../net/rtmpdump/buildlink3.mk" | 124 | .include "../../net/rtmpdump/buildlink3.mk" | |
117 | .endif | 125 | .endif | |
118 | 126 | |||
119 | # OCR filter using Tesseract | 127 | # OCR filter using Tesseract | |
120 | .if !empty(PKG_OPTIONS:Mtesseract) | 128 | .if !empty(PKG_OPTIONS:Mtesseract) | |
121 | CONFIGURE_ARGS+= --enable-libtesseract | 129 | CONFIGURE_ARGS+= --enable-libtesseract | |
122 | .include "../../graphics/tesseract/buildlink3.mk" | 130 | .include "../../graphics/tesseract/buildlink3.mk" | |
123 | .else | 131 | .else | |
124 | CONFIGURE_ARGS+= --disable-libtesseract | 132 | CONFIGURE_ARGS+= --disable-libtesseract | |
125 | .endif | 133 | .endif |
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | # $NetBSD: options.mk,v 1.11 2020/04/19 18:25:07 nia Exp $ | 1 | # $NetBSD: options.mk,v 1.12 2020/04/23 10:29:19 nia 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 \ | 9 | PKG_SUPPORTED_OPTIONS= ass av1 bluray doc fdk-aac fontconfig freetype \ | |
10 | gnutls lame libvpx opencore-amr opus pulseaudio rpi \ | 10 | lame libvpx opencore-amr opus pulseaudio rpi \ | |
11 | rtmp tesseract theora vorbis x11 x264 x265 xvid | 11 | rtmp tesseract theora vorbis x11 x264 x265 xvid | |
12 | PKG_SUGGESTED_OPTIONS= lame ass av1 bluray freetype fontconfig gnutls \ | 12 | PKG_SUGGESTED_OPTIONS= lame ass av1 bluray freetype fontconfig gnutls \ | |
13 | libvpx opus theora vorbis x11 x264 x265 xvid | 13 | libvpx opus theora vorbis x11 x264 x265 xvid | |
14 | 14 | |||
15 | PKG_OPTIONS_LEGACY_OPTS+= xcb:x11 | 15 | PKG_OPTIONS_LEGACY_OPTS+= xcb:x11 | |
16 | 16 | |||
17 | PLIST_VARS+= doc | 17 | PLIST_VARS+= doc | |
18 | 18 | |||
19 | # Add VDPAU if it is available | 19 | # Add VDPAU if it is available | |
20 | .include "../../multimedia/libvdpau/available.mk" | 20 | .include "../../multimedia/libvdpau/available.mk" | |
21 | .if ${VDPAU_AVAILABLE} == "yes" | 21 | .if ${VDPAU_AVAILABLE} == "yes" | |
22 | PKG_SUPPORTED_OPTIONS+= vdpau | 22 | PKG_SUPPORTED_OPTIONS+= vdpau | |
23 | PKG_SUGGESTED_OPTIONS+= vdpau | 23 | PKG_SUGGESTED_OPTIONS+= vdpau |