Files
gentoo/media-plugins/frei0r-plugins/frei0r-plugins-2.4.1-r1.ebuild
Kostadin Shishmanov 2d45fc4097 media-plugins/frei0r-plugins: add ffmpeg to opencv USE deps
Fixes the following build failure:
`
frei0r-2.4.1/src/filter/facebl0r/facebl0r.cpp: In member function ‘cv::RotatedRect TrackedObj::camshift_track_face()’:
frei0r-2.4.1/src/filter/facebl0r/facebl0r.cpp:248:30: error: ‘CamShift’ was not declared in this scope
  248 |   cv::RotatedRect curr_box = CamShift(prob, prev_rect,
      |                              ^~~~~~~~
`

Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44923
Closes: https://github.com/gentoo/gentoo/pull/44923
Signed-off-by: Sam James <sam@gentoo.org>
2025-12-17 14:52:16 +00:00

52 lines
1.2 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOCS_BUILDER="doxygen"
DOCS_DIR="doc"
inherit cmake-multilib docs
DESCRIPTION="A minimalistic plugin API for video effects"
HOMEPAGE="https://www.dyne.org/software/frei0r/"
SRC_URI="https://github.com/dyne/frei0r/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/frei0r-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc ~ppc64 ~riscv x86"
IUSE="doc +facedetect +scale0tilt"
RDEPEND="x11-libs/cairo[${MULTILIB_USEDEP}]
facedetect? ( >=media-libs/opencv-2.3.0:=[contrib,contribdnn,features2d,ffmpeg,${MULTILIB_USEDEP}] )
scale0tilt? ( >=media-libs/gavl-1.2.0[${MULTILIB_USEDEP}] )"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
doc? ( app-text/doxygen[dot] )
"
DOCS=( AUTHORS.md README.md )
src_prepare() {
cmake_src_prepare
# https://bugs.gentoo.org/418243
sed -i \
-e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \
src/filter/*/CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-DWITHOUT_OPENCV=$(usex !facedetect)
-DWITHOUT_GAVL=$(usex !scale0tilt)
)
cmake-multilib_src_configure
}
src_compile() {
cmake-multilib_src_compile
use doc && docs_compile
}