summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/libva-utils/libva-utils-2.11.1.ebuild')
-rw-r--r--media-video/libva-utils/libva-utils-2.11.1.ebuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/media-video/libva-utils/libva-utils-2.11.1.ebuild b/media-video/libva-utils/libva-utils-2.11.1.ebuild
index 86b1d9f1d1b4..69e7ac319061 100644
--- a/media-video/libva-utils/libva-utils-2.11.1.ebuild
+++ b/media-video/libva-utils/libva-utils-2.11.1.ebuild
@@ -45,21 +45,24 @@ RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${PN}-2.10.0_test_in_sandbox.patch" )
-# CONTRIBUTING.md and README.md are avaialbe only in .tar.gz tarballs and in git
+# CONTRIBUTING.md and README.md are available only in .tar.gz tarballs and in git
DOCS=( NEWS CONTRIBUTING.md README.md )
src_prepare() {
default
+
sed -e 's/-Werror//' -i test/Makefile.am || die
if ! use examples ; then
- sed -E -e '/^SUBDIRS \+?=/s!( decode\>| encode\>| videoprocess\>| vendor/intel\>| vendor/intel/sfcsample\>)!!g' -i Makefile.am
+ sed -E -e '/^SUBDIRS \+?=/s!( decode\>| encode\>| videoprocess\>| vendor/intel\>| vendor/intel/sfcsample\>)!!g' -i Makefile.am || die
fi
+
if ! use putsurface ; then
- sed -E -e '/^SUBDIRS \+?=/s! putsurface\>!!g' -i Makefile.am
+ sed -E -e '/^SUBDIRS \+?=/s! putsurface\>!!g' -i Makefile.am || die
fi
+
if ! use vainfo ; then
- sed -E -e '/^SUBDIRS \+?=/s! vainfo\>!!g' -i Makefile.am
+ sed -E -e '/^SUBDIRS \+?=/s! vainfo\>!!g' -i Makefile.am || die
fi
eautoreconf
@@ -72,18 +75,20 @@ src_configure() {
$(use_enable wayland)
$(use_enable X x11)
)
+
if use test || use test_va_api ; then
myeconfargs+=( --enable-tests )
else
myeconfargs+=( --disable-tests )
fi
+
econf "${myeconfargs[@]}"
}
src_install() {
default
if ! use test_va_api ; then
- if [ -e "${ED}"/usr/bin/test_va_api ] ; then
+ if [[ -e "${ED}"/usr/bin/test_va_api ]] ; then
rm -f "${ED}"/usr/bin/test_va_api || die
fi
fi