ffmpeg: add vpx build_option

libvpx removed support for armv6, this build_option allows building
ffmpeg for armv6 without it.
This commit is contained in:
Duncaen 2017-01-23 15:39:53 +01:00
parent a4659837e8
commit ae88eb1a36
2 changed files with 8 additions and 5 deletions

View file

@ -79,6 +79,7 @@ desc_option_v4l2="Enable support for V4L2 (Video 4 Linux 2)"
desc_option_vaapi="Enable support for VA-API" desc_option_vaapi="Enable support for VA-API"
desc_option_vapoursynth="Enable support for VapourSynth" desc_option_vapoursynth="Enable support for VapourSynth"
desc_option_vdpau="Enable support for VDPAU" desc_option_vdpau="Enable support for VDPAU"
desc_option_vpx="Enable support for VP8/VP9 codecs"
desc_option_wavpack="Enable support for the Wavpack audio format" desc_option_wavpack="Enable support for the Wavpack audio format"
desc_option_wayland="Enable support for the Wayland backend" desc_option_wayland="Enable support for the Wayland backend"
desc_option_x11="Enable support for X11" desc_option_x11="Enable support for X11"

View file

@ -13,17 +13,19 @@ hostmakedepends="pkg-config perl yasm"
makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
libXext-devel libXvMC-devel faad2-devel lame-devel libtheora-devel libXext-devel libXvMC-devel faad2-devel lame-devel libtheora-devel
gnutls-devel libvorbis-devel x264-devel xvidcore-devel jack-devel SDL2-devel gnutls-devel libvorbis-devel x264-devel xvidcore-devel jack-devel SDL2-devel
libcdio-paranoia-devel libvpx-devel librtmp-devel freetype-devel libmodplug-devel libcdio-paranoia-devel librtmp-devel freetype-devel libmodplug-devel
speex-devel celt-devel harfbuzz-devel libass-devel opus-devel pulseaudio-devel speex-devel celt-devel harfbuzz-devel libass-devel opus-devel pulseaudio-devel
ocl-icd-devel $(vopt_if x265 x265-devel) $(vopt_if vaapi libva-devel) ocl-icd-devel $(vopt_if x265 x265-devel) $(vopt_if vaapi libva-devel)
$(vopt_if vdpau libvdpau-devel) $(vopt_if v4l2 v4l-utils-devel) libbs2b-devel $(vopt_if vdpau libvdpau-devel) $(vopt_if v4l2 v4l-utils-devel) libbs2b-devel
libvidstab-devel $(vopt_if faac faac-devel) $(vopt_if fdk_aac fdk-aac-devel)" libvidstab-devel $(vopt_if faac faac-devel) $(vopt_if fdk_aac fdk-aac-devel)
$(vopt_if vpx libvpx-devel)"
build_options="x265 v4l2 vaapi vdpau faac fdk_aac" build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac"
build_options_default="v4l2" build_options_default="v4l2"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) build_options_default+=" x265 vaapi vdpau";; i686*|x86_64*) build_options_default+=" x265 vaapi vdpau vpx";;
armv7*|aarch64*) build_options_default+=" vpx"
esac esac
do_configure() { do_configure() {
@ -48,7 +50,7 @@ do_configure() {
./configure --prefix=/usr --disable-debug --enable-gpl --enable-gnutls \ ./configure --prefix=/usr --disable-debug --enable-gpl --enable-gnutls \
--enable-libcdio --enable-version3 --enable-runtime-cpudetect \ --enable-libcdio --enable-version3 --enable-runtime-cpudetect \
--enable-libmp3lame --enable-libvorbis --enable-libxvid \ --enable-libmp3lame --enable-libvorbis --enable-libxvid \
--enable-libx264 --enable-libvpx --enable-libtheora \ --enable-libx264 $(vopt_if vpx --enable-libvpx) --enable-libtheora \
--enable-shared --enable-static --enable-x11grab \ --enable-shared --enable-static --enable-x11grab \
--enable-libpulse --enable-libfreetype --enable-libmodplug \ --enable-libpulse --enable-libfreetype --enable-libmodplug \
--enable-libspeex --enable-libcelt --enable-libass \ --enable-libspeex --enable-libcelt --enable-libass \