1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 inherit cmake-multilib docs
10 DESCRIPTION="A minimalistic plugin API for video effects"
11 HOMEPAGE="https://www.dyne.org/software/frei0r/"
12 SRC_URI="https://files.dyne.org/frei0r/releases/${P}.tar.gz"
16 KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ~ppc64 ~riscv x86"
17 IUSE="doc +facedetect +scale0tilt"
19 RDEPEND="x11-libs/cairo[${MULTILIB_USEDEP}]
20 facedetect? ( >=media-libs/opencv-2.3.0:=[contribdnn,features2d,${MULTILIB_USEDEP}] )
21 scale0tilt? ( >=media-libs/gavl-1.2.0[${MULTILIB_USEDEP}] )"
24 DOCS=( AUTHORS.txt ChangeLog.txt README.txt )
29 local f=CMakeLists.txt
32 -e '/set(CMAKE_C_FLAGS/d' \
33 -e "/LIBDIR.*frei0r-1/s:lib:$(get_libdir):" \
36 # https://bugs.gentoo.org/418243
38 -e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \
39 src/filter/*/${f} || die
44 -DWITHOUT_OPENCV=$(usex !facedetect)
45 -DWITHOUT_GAVL=$(usex !scale0tilt)
47 cmake-multilib_src_configure
51 cmake-multilib_src_compile
52 use doc && docs_compile