Sun Jan 1 22:36:34 2017 UTC ()
Add support for the "opus" option (disabled by default, so no PKGREVISION bump)

Patch provided by Adrien Fernandes via #NetBSD


(leot)
diff -r1.4 -r1.5 pkgsrc/multimedia/ffmpeg3/options.mk

cvs diff -r1.4 -r1.5 pkgsrc/multimedia/ffmpeg3/options.mk (expand / switch to unified diff)

--- pkgsrc/multimedia/ffmpeg3/options.mk 2016/11/03 21:25:55 1.4
+++ pkgsrc/multimedia/ffmpeg3/options.mk 2017/01/01 22:36:34 1.5
@@ -1,21 +1,21 @@ @@ -1,21 +1,21 @@
1# $NetBSD: options.mk,v 1.4 2016/11/03 21:25:55 wiz Exp $ 1# $NetBSD: options.mk,v 1.5 2017/01/01 22:36:34 leot Exp $
2 2
3# Global and legacy options 3# Global and legacy options
4 4
5PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3 5PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3
6PKG_SUPPORTED_OPTIONS= ass doc ebur128 fdk-aac fontconfig freetype \ 6PKG_SUPPORTED_OPTIONS= ass doc ebur128 fdk-aac fontconfig freetype \
7 gnutls lame libvpx opencore-amr openssl theora vorbis \ 7 gnutls lame libvpx opencore-amr openssl opus theora \
8 x264 x265 xcb xvid 8 vorbis x264 x265 xcb xvid
9PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx openssl \ 9PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx openssl \
10 theora vorbis x264 xvid 10 theora vorbis x264 xvid
11 11
12PLIST_VARS+= doc 12PLIST_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"
17PKG_SUPPORTED_OPTIONS+= vdpau 17PKG_SUPPORTED_OPTIONS+= vdpau
18PKG_SUGGESTED_OPTIONS+= vdpau 18PKG_SUGGESTED_OPTIONS+= vdpau
19.endif 19.endif
20 20
21# Add VAAPI if it is available 21# Add VAAPI if it is available
@@ -125,26 +125,32 @@ CONFIGURE_ARGS+= --enable-libtheora @@ -125,26 +125,32 @@ CONFIGURE_ARGS+= --enable-libtheora
125.if !empty(PKG_OPTIONS:Mvorbis) 125.if !empty(PKG_OPTIONS:Mvorbis)
126CONFIGURE_ARGS+= --enable-libvorbis 126CONFIGURE_ARGS+= --enable-libvorbis
127.include "../../audio/libvorbis/buildlink3.mk" 127.include "../../audio/libvorbis/buildlink3.mk"
128.endif 128.endif
129 129
130# LAME MP3 encoder 130# LAME MP3 encoder
131.if !empty(PKG_OPTIONS:Mlame) 131.if !empty(PKG_OPTIONS:Mlame)
132# "lame-3.98" isn't compatible with "ffmpeg" which breaks audio encoding. 132# "lame-3.98" isn't compatible with "ffmpeg" which breaks audio encoding.
133BUILDLINK_ABI_DEPENDS.lame+= lame>=3.98.2nb1 133BUILDLINK_ABI_DEPENDS.lame+= lame>=3.98.2nb1
134CONFIGURE_ARGS+= --enable-libmp3lame 134CONFIGURE_ARGS+= --enable-libmp3lame
135.include "../../audio/lame/buildlink3.mk" 135.include "../../audio/lame/buildlink3.mk"
136.endif 136.endif
137 137
 138# OPUS support
 139.if !empty(PKG_OPTIONS:Mopus)
 140CONFIGURE_ARGS+= --enable-libopus
 141.include "../../audio/libopus/buildlink3.mk"
 142.endif
 143
138# XviD support 144# XviD support
139.if !empty(PKG_OPTIONS:Mxvid) 145.if !empty(PKG_OPTIONS:Mxvid)
140CONFIGURE_ARGS+= --enable-libxvid 146CONFIGURE_ARGS+= --enable-libxvid
141.include "../../multimedia/xvidcore/buildlink3.mk" 147.include "../../multimedia/xvidcore/buildlink3.mk"
142.endif 148.endif
143 149
144# x264 support 150# x264 support
145.if !empty(PKG_OPTIONS:Mx264) 151.if !empty(PKG_OPTIONS:Mx264)
146# ABI change between 20090326 and 20100201 152# ABI change between 20090326 and 20100201
147BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20111207 153BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20111207
148CONFIGURE_ARGS+= --enable-libx264 154CONFIGURE_ARGS+= --enable-libx264
149.include "../../multimedia/x264-devel/buildlink3.mk" 155.include "../../multimedia/x264-devel/buildlink3.mk"
150.else 156.else