1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 if [ "${PV#9999}" != "${PV}" ] ; then
9 EGIT_REPO_URI="https://github.com/01org/libyami"
12 inherit ${SCM} autotools multilib-minimal flag-o-matic
14 DESCRIPTION="Yet Another Media Infrastructure: Media codec with hardware acceleration"
15 HOMEPAGE="https://github.com/01org/libyami"
17 if [ "${PV#9999}" != "${PV}" ] ; then
22 SRC_URI="https://github.com/01org/libyami/archive/${PV}.tar.gz -> ${P}.tar.gz"
27 IUSE="debug egl dmabuf doc md5 v4l X test wayland"
28 RESTRICT="!test? ( test )"
31 >=x11-libs/libva-1.7.2[drm,X?,wayland?,${MULTILIB_USEDEP}]
33 >=virtual/opengl-7[${MULTILIB_USEDEP}]
34 >=media-libs/libv4l-1.6.2[${MULTILIB_USEDEP}]
35 >=media-libs/mesa-10[egl,gles2,${MULTILIB_USEDEP}]
37 X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] )
38 md5? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
39 dmabuf? ( x11-libs/libdrm[${MULTILIB_USEDEP}] )
43 doc? ( app-doc/doxygen )
44 test? ( >=dev-cpp/gtest-1.7 )
48 sed -i -e 's/-Werror//' configure.ac || die
52 multilib_src_configure() {
53 append-cppflags -I"${S}/"
54 ECONF_SOURCE="${S}" econf \
57 $(use_enable v4l v4l2) \
58 $(use_enable v4l v4l2-ops) \
60 $(use_enable dmabuf) \
62 $(use_enable wayland) \
63 $(use_enable test gtest) \
64 $(multilib_native_use_enable doc docs) \
79 multilib_src_compile() {
81 multilib_is_native_abi && use doc && emake -C doc
84 multilib_src_install() {
85 emake DESTDIR="${D}" install
86 multilib_is_native_abi && use doc && dohtml -r doc/html/*
90 multilib-minimal_src_install
91 find "${ED}" -name '*.la' -delete