sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (23ee203b9fd3cbc5643ff347c24febef9ae5a8a0)
- From: Treeve Jelbert <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (23ee203b9fd3cbc5643ff347c24febef9ae5a8a0)
- Date: Mon, 31 Aug 2026 12:52:42 +0000
GIT changes to master grimoire by Treeve Jelbert <treeve AT sourcemage.org>:
ChangeLog | 3 ++
graphics-libs/opencv5/BUILD | 27 ++++++++++++++++++++++++
graphics-libs/opencv5/CONFIGURE | 1
graphics-libs/opencv5/CONFLICTS | 3 ++
graphics-libs/opencv5/DEPENDS | 37
++++++++++++++++++++++++++++++++++
graphics-libs/opencv5/DETAILS | 30 +++++++++++++++++++++++++++
graphics-libs/opencv5/HISTORY | 3 ++
graphics-libs/opencv5/INSTALL | 1
graphics-libs/opencv5/PREPARE | 28 +++++++++++++++++++++++++
graphics-libs/opencv5/PRE_BUILD | 16 ++++++++++++++
graphics-libs/opencv5/PRE_SUB_DEPENDS | 9 ++++++++
graphics-libs/opencv5/PROVIDES | 1
graphics-libs/opencv5/SUB_DEPENDS | 9 ++++++++
13 files changed, 168 insertions(+)
New commits:
commit 23ee203b9fd3cbc5643ff347c24febef9ae5a8a0
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>
add opencv5-5.0.0
diff --git a/ChangeLog b/ChangeLog
index 6f27c9b..6871eb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2026-08-31 Treeve Jelbert <treeve AT sourcemage.org>
+ * opencv5: added
+
2026-08-22 Ismael Luceno <ismael AT sourcemage.org>
* devel/glab: new spell, GitLab CLI tool
* kernels/mkinitcpio: new spell, modular initramfs image creation
diff --git a/graphics-libs/opencv5/BUILD b/graphics-libs/opencv5/BUILD
new file mode 100755
index 0000000..8dd40b8
--- /dev/null
+++ b/graphics-libs/opencv5/BUILD
@@ -0,0 +1,27 @@
+CXXFLAGS=-D__STDC_CONSTANT_MACROS &&
+OPTS+=" -DENABLE_CCACHE=OFF" &&
+OPTS+=" -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCS=0 -DBUILD_PERF_TESTS=0 \
+ -DBUILD_TESTS=0 -Wno-dev" &&
+OPTS+=' -DOPENCV_FORCE_3RDPARTY_BUILD=0' &&
+CONTRIB=''
+
+if [[ $CV_CONTRIB_A_N != none ]];then
+ CONTRIB+="$CV_CONTRIB_A_N"
+fi &&
+if [[ $CV_CONTRIB_O_Z != none ]];then
+ CONTRIB+=" $CV_CONTRIB_O_Z"
+fi
+if [[ $CV_CONTRIB_CUDA != none ]];then
+ CONTRIB+=" $CV_CONTRIB_CUDA"
+fi
+
+
+if [[ $CONTRIB != none ]];then
+ OPTS+=" -DOPENCV_EXTRA_MODULES_PATH=$SOURCE_DIRECTORY/contrib"
+fi &&
+
+OPTS+=" -DIPPROOT=$SOURCE_DIRECTORY/ippicv_lnx" &&
+
+# PCH fails, at least with, with GCC 6.2
+#OPTS+=" -DENABLE_PRECOMPILED_HEADERS=0" &&
+cmake_build
diff --git a/graphics-libs/opencv5/CONFIGURE b/graphics-libs/opencv5/CONFIGURE
new file mode 100755
index 0000000..b2f02c3
--- /dev/null
+++ b/graphics-libs/opencv5/CONFIGURE
@@ -0,0 +1 @@
+source $GRIMOIRE/CMAKE_CONFIGURE
diff --git a/graphics-libs/opencv5/CONFLICTS b/graphics-libs/opencv5/CONFLICTS
new file mode 100755
index 0000000..70f7519
--- /dev/null
+++ b/graphics-libs/opencv5/CONFLICTS
@@ -0,0 +1,3 @@
+conflicts opencv n
+conflicts opencv3 n
+conflicts opencv4 n
diff --git a/graphics-libs/opencv5/DEPENDS b/graphics-libs/opencv5/DEPENDS
new file mode 100755
index 0000000..839d5b9
--- /dev/null
+++ b/graphics-libs/opencv5/DEPENDS
@@ -0,0 +1,37 @@
+source $GRIMOIRE/CMAKE_DEPENDS &&
+depends -sub CXX gcc &&
+depends PKG-CONFIG &&
+depends bzip2 &&
+depends zlib &&
+optional_depends gstreamer-1.0 '-DWITH_GSTREAMER=1' '-DWITH_GSTREAMER=0'
'GStreamer support'
+optional_depends LIBAVCODEC '-DWITH_FFMPEG=1' '-DWITH_FFMPEG=0' 'FFMgeg
suport'
+optional_depends v4l-utils '-DWITH_V4L=1' '-DWITH_V4L=0' 'V4L
support' &&
+optional_depends JPEG '-DWITH_JPEG=1' '-DWITH_JPEG=0' 'JPEG
support' &&
+optional_depends openjpeg \
+ -DWITH_OPENJPEG=1 \
+ -DWITH_OPENJPEG=0 \
+ 'JPEG-2000 support' &&
+optional_depends jasper '-DWITH_JASPER=1' '-DWITH_JASPER=0' 'JPEG-2000
support' &&
+optional_depends tiff '-DWITH_TIFF=1' '-DWITH_TIFF=1' 'TIFF
support' &&
+optional_depends libpng '-DWITH_PNG=1' '-DWITH_PNG=0' 'PNG support'
+optional_depends numpy '' '' 'Numerical python support' &&
+if is_depends_enabled $SPELL numpy;then
+ depends python3
+fi &&
+#optional_depends tbb '-DWITH_TBB=1' '-DWITH_TBB=0' 'parallel
processing support' &&
+optional_depends protobuf \
+ -DWITH_PROTOBUF=1 \
+ -DWITH_PROTOBUF=0 \
+ 'use system protobuf' &&
+optional_depends xine-lib '-DWITH_XINE=1' '-DWITH_XINE=0' 'Xine
support' &&
+optional_depends libucil '-DWITH_UNICAP=1' '-DWITH_UNICAP=0' 'video
capture support' &&
+optional_depends libraw1394 '-DWITH_1394=1' '-DWITH_1394=0' 'Firewire
support' &&
+optional_depends gtk+3 '-DWITH_GTK=1' '-DWITH_GTK=0' 'Gtk gui
support' &&
+optional_depends qt6base '-DWITH_QT=6' '-DWITH_QT=0' 'Qt6 gui
support' &&
+optional_depends EIGEN '-DWITH_EIGEN=1' '-DWITH_EIGEN=0' 'Eigen2/3
matrix support' &&
+optional_depends openexr '-DWITH_OPENEXR=1' '-DWITH_OPENEXR=0' 'ILM
support' &&
+optional_depends libwebp '-DWITH_WEBP=1' '-DWITH_WEBP=0' 'WebP
support' &&
+optional_depends vtk '-DWITH_VTK=1' '-DWITH_VTK=0' 'Visual
Toolkit support'
+
+
+# libavif
diff --git a/graphics-libs/opencv5/DETAILS b/graphics-libs/opencv5/DETAILS
new file mode 100755
index 0000000..7877bad
--- /dev/null
+++ b/graphics-libs/opencv5/DETAILS
@@ -0,0 +1,30 @@
+# Watch: https://github.com/opencv/opencv/tags /refs/tags/([0-9.]+)[.]tar
+source $GRIMOIRE/CMAKE_FUNCTIONS
+ SPELL=opencv5
+ VERSION=5.0.0
+
SOURCE_HASH=sha512:37143de2ba76a9af351d6901358635b42b671b5fbe3ccc75d4d27133b0a6c6a0400564e6eaf228fc1705e25a2af09c8e2638039ca9af0ce9428da253dd31d3e0
+ IPPV=ippicv_2020_lnx_intel64_20191018_general.tgz
+ GIT=a56b6ac6f030c312b2dce17430eef13aed9af274
+ SOURCE=${SPELL}-$VERSION.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/${SPELL%?}-${VERSION}
+ URL=https://github.com/opencv
+ SOURCE_URL[0]=$URL/opencv/archive/$VERSION.tar.gz
+if ! list_find "$CV_CONTRIB" none ;then
+
SOURCE2_HASH=sha512:09841f4637f6a51a5e12a5516710e61a3cedd2622455366004cd9e35484a6d03cc9c12de52edae4072dc37af104d7fd9099201effee82c52dd40b8a58c51fdc5
+ SOURCE2=opencv_contrib-$VERSION.tar.gz
+ SOURCE2_URL[0]=$URL/opencv_contrib/archive/$VERSION.tar.gz
+fi
+ SOURCE3=${IPPV}
+
SOURCE3_HASH=sha512:de6d80695cd6deef359376476edc4ff85fdddcf94972b936e0017f8a48aaa5d18f55c4253ae37deb83bff2f71410f68408063c88b5f3bf4df3c416aa93ceca87
+
SOURCE3_URL[0]=https://raw.githubusercontent.com/opencv/opencv_3rdparty/$GIT/ippicv/$SOURCE3
+
+ TMPFS=off
+ WEB_SITE=https://opencv.org
+ LICENSE[0]=BSD
+ ENTERED=20260805
+ KEYWORDS="graphics"
+ SHORT="real time computer vision"
+cat << EOF
+The Open Computer Vision Library has > 2500 algorithms, documentation and
+sample code for real time computer vision.
+EOF
diff --git a/graphics-libs/opencv5/HISTORY b/graphics-libs/opencv5/HISTORY
new file mode 100644
index 0000000..f2314e4
--- /dev/null
+++ b/graphics-libs/opencv5/HISTORY
@@ -0,0 +1,3 @@
+2026-08-05 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 5.0.0
+ spell created, based on opencv4
diff --git a/graphics-libs/opencv5/INSTALL b/graphics-libs/opencv5/INSTALL
new file mode 100755
index 0000000..157bcdc
--- /dev/null
+++ b/graphics-libs/opencv5/INSTALL
@@ -0,0 +1 @@
+cmake_install
diff --git a/graphics-libs/opencv5/PREPARE b/graphics-libs/opencv5/PREPARE
new file mode 100755
index 0000000..2d3447d
--- /dev/null
+++ b/graphics-libs/opencv5/PREPARE
@@ -0,0 +1,28 @@
+source $GRIMOIRE/config_query_multi.function
+config_query_multi CV_CONTRIB_A_N "Which contributed modules A..N" none \
+ alphamat bgsegm bioinspired cannops ccalib cnn_3dobj cudev cvv datasets
dnn_objdetect dnn_superres \
+ dnns_easily_fooled dpm face fastcv freetype fuzzy gapi hdf hfs img_hash
intensity_transform julia \
+ line_descriptor matlab ml &&
+
+config_query_multi CV_CONTRIB_O_Z "Which contributed modules O..Z" none \
+ optflow ovis phase_unwrapping plot quality rapid reg rgbd saliency sfm
shape signal structured_light \
+ superres surface_matching text tracking videostab viz wechat_qrcode
xfeatures2d ximgproc xobjdetect \
+ xphoto &&
+
+config_query_multi CV_CONTRIB_CUDA "Which contributed modules CUDA" none \
+ cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc
cudalegacy cudaobjdetect \
+ cudaoptflow cudastereo cudawarping &&
+
+# now combine them
+persistent_remove CV_CONTRIB &&
+persistent_add CV_CONTRIB &&
+if [[ $CV_CONTRIB_A_N != none ]];then
+ CV_CONTRIB+="$CV_CONTRIB_A_N"
+fi &&
+if [[ $CV_CONTRIB_O_Z != none ]];then
+ CV_CONTRIB+=" $CV_CONTRIB_O_Z"
+fi
+if [[ $CV_CONTRIB_CUDA != none ]];then
+ CV_CONTRIB+=" $CV_CONTRIB_CUDA"
+fi
+
diff --git a/graphics-libs/opencv5/PRE_BUILD b/graphics-libs/opencv5/PRE_BUILD
new file mode 100755
index 0000000..c1c7b74
--- /dev/null
+++ b/graphics-libs/opencv5/PRE_BUILD
@@ -0,0 +1,16 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+apply_patch_dir patches &&
+unpack_file 3 &&
+ln -s ippiw_lnx/src iw &&
+#if ! list_find "$CV_CONTRIB" none ;then
+if [[ -n "$CV_CONTRIB" ]] ;then
+ cd $BUILD_DIRECTORY &&
+ unpack_file 2 &&
+ cd $SOURCE_DIRECTORY &&
+ mkdir contrib &&
+ cd contrib &&
+ for FF in $CV_CONTRIB;do
+ ln -sf $BUILD_DIRECTORY/opencv_contrib-$VERSION/modules/$FF
+ done
+fi
diff --git a/graphics-libs/opencv5/PRE_SUB_DEPENDS
b/graphics-libs/opencv5/PRE_SUB_DEPENDS
new file mode 100755
index 0000000..6def019
--- /dev/null
+++ b/graphics-libs/opencv5/PRE_SUB_DEPENDS
@@ -0,0 +1,9 @@
+case $THIS_SUB_DEPENDS in
+ FACE) list_find "$CV_CONTRIB" "face" &&
+ list_find "$CV_CONTRIB" "plot" &&
+ list_find "$CV_CONTRIB" "tracking" &&
+ list_find "$CV_CONTRIB" "xobjdetect" &&
+ return 0;;
+ *) echo "Eek, unknown subdependency requested!"; return 1;;
+esac
+return 1
diff --git a/graphics-libs/opencv5/PROVIDES b/graphics-libs/opencv5/PROVIDES
new file mode 100644
index 0000000..da42bf1
--- /dev/null
+++ b/graphics-libs/opencv5/PROVIDES
@@ -0,0 +1 @@
+OPENCV
diff --git a/graphics-libs/opencv5/SUB_DEPENDS
b/graphics-libs/opencv5/SUB_DEPENDS
new file mode 100755
index 0000000..15c6757
--- /dev/null
+++ b/graphics-libs/opencv5/SUB_DEPENDS
@@ -0,0 +1,9 @@
+case $THIS_SUB_DEPENDS in
+ FACE) echo "facial recognition requested - forcing it" &&
+ list_add CV_CONTRIB "face" &&
+ list_add CV_CONTRIB "plot" &&
+ list_add CV_CONTRIB "tracking" &&
+ list_add CV_CONTRIB "xobjdetect"
+ ;;
+ *) echo unknown sub-depends!!! ; return 1 ;;
+esac
- [[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (23ee203b9fd3cbc5643ff347c24febef9ae5a8a0), Treeve Jelbert, 08/31/2026
Archive powered by MHonArc 2.6.24.