ffmpeg: make pulseaudio optional build option

closes #8835
This commit is contained in:
Owen Rafferty 2019-02-17 04:56:42 -06:00 committed by maxice8
parent c5e2eb7f2e
commit 0fa4a8b431
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 4 additions and 4 deletions

View File

@ -16,15 +16,15 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
libXext-devel libXvMC-devel libxcb-devel faad2-devel lame-devel libtheora-devel
gnutls-devel libvorbis-devel x264-devel xvidcore-devel jack-devel SDL2-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 $(vopt_if pulseaudio pulseaudio-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
libvidstab-devel $(vopt_if faac faac-devel) $(vopt_if fdk_aac fdk-aac-devel)
$(vopt_if vpx libvpx-devel) $(vopt_if aom libaom-devel)
$(vopt_if nvenc nv-codec-headers) $(vopt_if sndio sndio-devel)"
build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio"
build_options_default="x265 v4l2 vpx sndio"
build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio"
build_options_default="x265 v4l2 vpx sndio pulseaudio"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc";;
@ -63,7 +63,7 @@ do_configure() {
--enable-libmp3lame --enable-libvorbis --enable-libxvid \
--enable-libx264 $(vopt_enable vpx libvpx) --enable-libtheora \
--enable-shared --enable-static --enable-libxcb \
--enable-libpulse --enable-libfreetype --enable-libmodplug \
$(vopt_enable pulseaudio libpulse) --enable-libfreetype --enable-libmodplug \
--enable-libspeex --enable-libcelt --enable-libass \
--enable-libopus --enable-librtmp $(vopt_enable nvenc) \
$(vopt_if faac '--enable-nonfree --enable-libfaac') \