diff --git a/srcpkgs/ffmpeg/template b/srcpkgs/ffmpeg/template index 276b52c07e6..eb28ca549bf 100644 --- a/srcpkgs/ffmpeg/template +++ b/srcpkgs/ffmpeg/template @@ -1,13 +1,13 @@ # Template file for 'ffmpeg' pkgname=ffmpeg -version=2.1.3 +version=2.1.4 revision=1 short_desc="Decoding, encoding and streaming software" maintainer="Juan RP " license="GPL-3" homepage="http://www.ffmpeg.org" distfiles="${homepage}/releases/ffmpeg-${version}.tar.bz2" -checksum=1d332e7fd35f87e1ffb6c9b0405cbfda085ef712ede0133a213793a4e66d13a3 +checksum=7fb46cbd686830db192968e2f117744b1e9cd23f2fcf5ee63e6cbeaa089a8101 hostmakedepends="pkg-config perl yasm" makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel @@ -16,14 +16,14 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve libvpx-devel librtmp-devel freetype-devel libmodplug-devel speex-devel celt-devel harfbuzz-devel libass-devel opus-devel pulseaudio-devel" -if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then - makedepends+=" libva-devel libvdpau-devel " -fi +case "$XBPS_TARGET_MACHINE" in + i686*|x86_64*) makedepends+=" libva-devel libvdpau-devel";; +esac do_configure() { - if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then - _args="--enable-vdpau --enable-vaapi" - fi + case "$XBPS_TARGET_MACHINE" in + i686*|x86_64*) _args="--enable-vdpau --enable-vaapi";; + esac if [ "$CROSS_BUILD" ]; then case "$XBPS_TARGET_MACHINE" in arm*) _arch="arm";;