diff options
author | Alexis Ballier <aballier@gentoo.org> | 2020-08-31 09:15:50 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2020-08-31 11:10:20 +0200 |
commit | 84818a29a8675b1162f5f74070ede3e9d33e093c (patch) | |
tree | c314e8b6dd86e1064d552ae7c61f475a5281568f /media-libs | |
parent | media-libs/zimg: bump to 3.0.1 (diff) | |
download | gentoo-84818a29a8675b1162f5f74070ede3e9d33e093c.tar.gz gentoo-84818a29a8675b1162f5f74070ede3e9d33e093c.tar.bz2 gentoo-84818a29a8675b1162f5f74070ede3e9d33e093c.zip |
media-libs/libyami: bump to 1.3.2
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libyami/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libyami/libyami-1.3.2.ebuild | 95 | ||||
-rw-r--r-- | media-libs/libyami/libyami-9999.ebuild | 10 |
3 files changed, 102 insertions, 4 deletions
diff --git a/media-libs/libyami/Manifest b/media-libs/libyami/Manifest index 9bb6b1276c08..653ad2644683 100644 --- a/media-libs/libyami/Manifest +++ b/media-libs/libyami/Manifest @@ -2,3 +2,4 @@ DIST libyami-1.0.1.tar.gz 480656 BLAKE2B 245c26dcfd396000eaf60d25bf437aad8dcd525 DIST libyami-1.1.0.tar.gz 491537 BLAKE2B fc3b948954ceda10894ff29f5f540a5817a962e2da6d549f0d0b4d89602577437778a244bcaff5fee4f3760d98472d8cd1c0ac07146e3b6ad34618c9f937eeec SHA512 04ef34a994d23f8f5182c17975d6a28048a311c8090393d8cd54dd1fc74ec8b76af4028e1d5506568fb698e15f14833a01d4eaeb4ccd2484801f806a05cc86fa DIST libyami-1.2.0.tar.gz 508386 BLAKE2B ed4892dddd66d03a5f37c4d28a449c18c722bd1a09aae6261d3b3a210fc4912f728f629a216efd7176c8a37de768a6fa2d1272ca223a387e5cfb8cb4e7cb284d SHA512 1d253d67e3aab7ff2a1add50f7a5ebd284518d12fa689e6160a2dadb3fd1c2a5ab1a1c5f66dfd3801d46d9666c73dabcd5302ca495b069f60671337c0d0bc539 DIST libyami-1.3.0.tar.gz 820807 BLAKE2B 3764e591269f3c38e7b5f6f5c3dbfb59fe4cdb198cd80858a2c0150274be073c1b064b8c8482b87ba770a6ee3534430b00155b34fa70f6bab7ed537a85ba1ed1 SHA512 8858c7f8d0fa7ce4547f762484e4b82477e49a8cb893cde29d7a26ba0f39dfcabc530659722ee5b84dc6f95e65c3373057ef470c78b9c1d790907e7bd6c6fd75 +DIST libyami-1.3.2.tar.gz 820517 BLAKE2B 189ef95bcd504422550f6df38433d042a45e2a1c36b30b1b5445ce69076c95f4d1b60e12e09ff4b11245e3fcdc70a4fa5e0879e3976c4891ca98fa00d79360c1 SHA512 25300d589119b5f5211b5a2445b408dbb35aea83bf18bc3d3b42d6b29151495f5118cf0f32bcc8c3756ac58fccb16932e78c8b6e7b29daffcc9ee08a3e0b5b54 diff --git a/media-libs/libyami/libyami-1.3.2.ebuild b/media-libs/libyami/libyami-1.3.2.ebuild new file mode 100644 index 000000000000..6cd57db8c9f2 --- /dev/null +++ b/media-libs/libyami/libyami-1.3.2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +SCM="" +if [ "${PV#9999}" != "${PV}" ] ; then + SCM=git-r3 + EGIT_REPO_URI="https://github.com/01org/libyami" +fi + +inherit ${SCM} autotools multilib-minimal flag-o-matic + +DESCRIPTION="Yet Another Media Infrastructure: Media codec with hardware acceleration" +HOMEPAGE="https://github.com/01org/libyami" + +if [ "${PV#9999}" != "${PV}" ] ; then + KEYWORDS="" + SRC_URI="" +else + KEYWORDS="~amd64" + SRC_URI="https://github.com/01org/libyami/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="debug egl dmabuf doc md5 v4l X test wayland" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=x11-libs/libva-1.7.2:=[drm,X?,wayland?,${MULTILIB_USEDEP}] + v4l? ( + >=virtual/opengl-7[${MULTILIB_USEDEP}] + >=media-libs/libv4l-1.6.2[${MULTILIB_USEDEP}] + >=media-libs/mesa-10[egl,gles2,${MULTILIB_USEDEP}] + ) + X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] ) + md5? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) + dmabuf? ( x11-libs/libdrm[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( >=dev-cpp/gtest-1.7 ) +" + +src_prepare() { + sed -i -e 's/-Werror//' configure.ac || die + sed -e 's#$(top_srcdir)/gtestsrc/libgtest.la#-lgtest#' -i */Makefile.unittest || die + sed -e 's#-I$(top_srcdir)/gtestsrc/gtest/include##' -i */Makefile.unittest || die + sed -e 's/gtestsrc//' -i Makefile.am || die + eautoreconf +} + +multilib_src_configure() { + append-cppflags -I"${S}/" -I"${BUILD_DIR}/interface" + ECONF_SOURCE="${S}" econf \ + $(use_enable debug) \ + $(use_enable egl) \ + $(use_enable v4l v4l2) \ + $(use_enable v4l v4l2-ops) \ + $(use_enable X x11) \ + $(use_enable dmabuf) \ + $(use_enable md5) \ + $(use_enable wayland) \ + $(use_enable test tests) \ + $(multilib_native_use_enable doc docs) \ + --enable-h265dec \ + --enable-vc1dec \ + --enable-h264dec \ + --enable-jpegdec \ + --enable-mpeg2dec \ + --enable-vp8dec \ + --enable-vp9dec \ + --enable-h265enc \ + --enable-h264enc \ + --enable-jpegenc \ + --enable-vp8enc \ + --enable-vp9enc +} + +multilib_src_compile() { + emake + multilib_is_native_abi && use doc && emake -C doc +} + +multilib_src_install() { + emake DESTDIR="${D}" install + multilib_is_native_abi && use doc && dohtml -r doc/html/* +} + +src_install() { + multilib-minimal_src_install + find "${ED}" -name '*.la' -delete +} diff --git a/media-libs/libyami/libyami-9999.ebuild b/media-libs/libyami/libyami-9999.ebuild index be54eaa446bf..6cd57db8c9f2 100644 --- a/media-libs/libyami/libyami-9999.ebuild +++ b/media-libs/libyami/libyami-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -19,8 +19,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then SRC_URI="" else KEYWORDS="~amd64" - SRC_URI="https://github.com/01org/libyami/archive/${P}.tar.gz" - S="${WORKDIR}/${PN}-${P}" + SRC_URI="https://github.com/01org/libyami/archive/${PV}.tar.gz -> ${P}.tar.gz" fi LICENSE="Apache-2.0" @@ -47,6 +46,9 @@ DEPEND="${RDEPEND} src_prepare() { sed -i -e 's/-Werror//' configure.ac || die + sed -e 's#$(top_srcdir)/gtestsrc/libgtest.la#-lgtest#' -i */Makefile.unittest || die + sed -e 's#-I$(top_srcdir)/gtestsrc/gtest/include##' -i */Makefile.unittest || die + sed -e 's/gtestsrc//' -i Makefile.am || die eautoreconf } @@ -61,7 +63,7 @@ multilib_src_configure() { $(use_enable dmabuf) \ $(use_enable md5) \ $(use_enable wayland) \ - $(use_enable test gtest) \ + $(use_enable test tests) \ $(multilib_native_use_enable doc docs) \ --enable-h265dec \ --enable-vc1dec \ |