diff options
author | Alexis Ballier <aballier@gentoo.org> | 2020-10-22 18:42:03 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2020-10-22 19:02:25 +0200 |
commit | 4ffeaa17f9e4e4507ac3b216acf436eddebe8ea7 (patch) | |
tree | b0364cd45cabad796f73998f37d098ab8830b5ad /media-plugins/frei0r-plugins/frei0r-plugins-1.7.0.ebuild | |
parent | media-libs/xvid: bump to 1.3.7 (diff) | |
download | gentoo-4ffeaa17f9e4e4507ac3b216acf436eddebe8ea7.tar.gz gentoo-4ffeaa17f9e4e4507ac3b216acf436eddebe8ea7.tar.bz2 gentoo-4ffeaa17f9e4e4507ac3b216acf436eddebe8ea7.zip |
media-plugins/frei0r-plugins: bump to 1.7.0
fix buidl with ocv4
add multilib
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'media-plugins/frei0r-plugins/frei0r-plugins-1.7.0.ebuild')
-rw-r--r-- | media-plugins/frei0r-plugins/frei0r-plugins-1.7.0.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/media-plugins/frei0r-plugins/frei0r-plugins-1.7.0.ebuild b/media-plugins/frei0r-plugins/frei0r-plugins-1.7.0.ebuild new file mode 100644 index 000000000000..0e6381b47c79 --- /dev/null +++ b/media-plugins/frei0r-plugins/frei0r-plugins-1.7.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +inherit cmake-multilib + +DESCRIPTION="A minimalistic plugin API for video effects" +HOMEPAGE="https://www.dyne.org/software/frei0r/" +SRC_URI="https://files.dyne.org/frei0r/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="doc +facedetect +scale0tilt" + +RDEPEND="x11-libs/cairo[${MULTILIB_USEDEP}] + facedetect? ( >=media-libs/opencv-2.3.0:=[${MULTILIB_USEDEP}] ) + scale0tilt? ( >=media-libs/gavl-1.2.0[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +DOCS=( AUTHORS.txt ChangeLog.txt README.txt TODO.txt ) +PATCHES=( "${FILESDIR}/ocv4.patch" ) + +src_prepare() { + cmake_src_prepare + + local f=CMakeLists.txt + + sed -i \ + -e '/set(CMAKE_C_FLAGS/d' \ + -e "/LIBDIR.*frei0r-1/s:lib:$(get_libdir):" \ + ${f} || die + + # https://bugs.gentoo.org/418243 + sed -i \ + -e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \ + src/filter/*/${f} || die +} + +src_configure() { + cmake-multilib_src_configure \ + "-DWITHOUT_OPENCV=$(usex !facedetect)" \ + "-DWITHOUT_GAVL=$(usex !scale0tilt)" +} + +src_compile() { + cmake-multilib_src_compile + + if use doc; then + pushd doc + doxygen || die + popd + fi +} + +multilib_src_install_all() { + use doc && dodoc -r doc/html +} |