summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/frei0r-plugins/frei0r-plugins-1.8.0.ebuild')
-rw-r--r--media-plugins/frei0r-plugins/frei0r-plugins-1.8.0.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/media-plugins/frei0r-plugins/frei0r-plugins-1.8.0.ebuild b/media-plugins/frei0r-plugins/frei0r-plugins-1.8.0.ebuild
new file mode 100644
index 000000000000..9630fdd9fb68
--- /dev/null
+++ b/media-plugins/frei0r-plugins/frei0r-plugins-1.8.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 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://files.dyne.org/frei0r/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
+IUSE="doc +facedetect +scale0tilt"
+
+RDEPEND="x11-libs/cairo[${MULTILIB_USEDEP}]
+ facedetect? ( >=media-libs/opencv-2.3.0:=[contribdnn,features2d,${MULTILIB_USEDEP}] )
+ scale0tilt? ( >=media-libs/gavl-1.2.0[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS.txt ChangeLog.txt README.txt )
+
+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() {
+ local mycmakeargs=(
+ -DWITHOUT_OPENCV=$(usex !facedetect)
+ -DWITHOUT_GAVL=$(usex !scale0tilt)
+ )
+ cmake-multilib_src_configure
+}
+
+src_compile() {
+ cmake-multilib_src_compile
+ use doc && docs_compile
+}