summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2024-10-21 13:31:33 +0200
committerSam James <sam@gentoo.org>2024-11-05 02:02:44 +0000
commit22b6bc516c11b0c879002fbc0571294e4062e34a (patch)
treef057aeb517a55ad6fc067693b5fe3ac28cc0640e /media-libs/opencv
parentmedia-libs/opencv: add USE=avif (diff)
downloadgentoo-22b6bc516c11b0c879002fbc0571294e4062e34a.tar.gz
gentoo-22b6bc516c11b0c879002fbc0571294e4062e34a.tar.bz2
gentoo-22b6bc516c11b0c879002fbc0571294e4062e34a.zip
media-libs/opencv: add USE=truetype
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/opencv')
-rw-r--r--media-libs/opencv/metadata.xml1
-rw-r--r--media-libs/opencv/opencv-4.10.0.ebuild4
2 files changed, 4 insertions, 1 deletions
diff --git a/media-libs/opencv/metadata.xml b/media-libs/opencv/metadata.xml
index 5979caa25015..2ff04570cd89 100644
--- a/media-libs/opencv/metadata.xml
+++ b/media-libs/opencv/metadata.xml
@@ -42,6 +42,7 @@
<flag name="tbb">Enable multithreading with the Intel Threads Building Block (<pkg>dev-cpp/tbb</pkg>)</flag>
<flag name="tesseract">Use Google's OCR Engine</flag>
<flag name="testprograms">Build and install programs for testing OpenCV (performance)</flag>
+ <flag name="truetype">Enable <pkg>media-libs/freetype</pkg> support for gapi module</flag>
<flag name="video_cards_intel">Enable Video Acceleration API for hardware decoding for Intel cards</flag>
<flag name="vtk">Build new 3D visualization module viz based on <pkg>sci-libs/vtk</pkg></flag>
</use>
diff --git a/media-libs/opencv/opencv-4.10.0.ebuild b/media-libs/opencv/opencv-4.10.0.ebuild
index 3d31e8b0cc01..332c5c9f7e8a 100644
--- a/media-libs/opencv/opencv-4.10.0.ebuild
+++ b/media-libs/opencv/opencv-4.10.0.ebuild
@@ -77,7 +77,7 @@ IUSE+=" +ffmpeg gstreamer xine vaapi v4l gphoto2 ieee1394"
# image
IUSE+=" avif gdal jasper jpeg jpeg2k openexr png quirc tesseract tiff webp"
# gui
-IUSE+=" gtk3 qt6 opengl vtk"
+IUSE+=" gtk3 qt6 opengl truetype vtk"
# parallel
IUSE+=" openmp tbb"
# lapack options
@@ -195,6 +195,7 @@ COMMON_DEPEND="
)
contribovis? ( >=dev-games/ogre-1.12:= )
ffmpeg? ( media-video/ffmpeg:0=[${MULTILIB_USEDEP}] )
+ truetype? ( media-libs/freetype:2[${MULTILIB_USEDEP}] )
gdal? ( sci-libs/gdal:= )
gflags? ( dev-cpp/gflags:=[${MULTILIB_USEDEP}] )
glog? ( dev-cpp/glog:=[${MULTILIB_USEDEP}] )
@@ -610,6 +611,7 @@ multilib_src_configure() {
-DWITH_ITT="no" # 3dparty libs itt_notify
-DWITH_AVIF="$(usex avif)"
+ -DWITH_FREETYPE="$(usex truetype)"
# ===================================================
# CUDA build components: nvidia-cuda-toolkit
# ===================================================