| @@ -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 | |
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3 | | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg3 |
6 | PKG_SUPPORTED_OPTIONS= ass doc ebur128 fdk-aac fontconfig freetype \ | | 6 | PKG_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 |
9 | PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx openssl \ | | 9 | PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx openssl \ |
10 | theora vorbis x264 xvid | | 10 | theora vorbis 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 |
| @@ -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) |
126 | CONFIGURE_ARGS+= --enable-libvorbis | | 126 | CONFIGURE_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. |
133 | BUILDLINK_ABI_DEPENDS.lame+= lame>=3.98.2nb1 | | 133 | BUILDLINK_ABI_DEPENDS.lame+= lame>=3.98.2nb1 |
134 | CONFIGURE_ARGS+= --enable-libmp3lame | | 134 | CONFIGURE_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) |
| | | 140 | CONFIGURE_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) |
140 | CONFIGURE_ARGS+= --enable-libxvid | | 146 | CONFIGURE_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 |
147 | BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20111207 | | 153 | BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20111207 |
148 | CONFIGURE_ARGS+= --enable-libx264 | | 154 | CONFIGURE_ARGS+= --enable-libx264 |
149 | .include "../../multimedia/x264-devel/buildlink3.mk" | | 155 | .include "../../multimedia/x264-devel/buildlink3.mk" |
150 | .else | | 156 | .else |