Skip to contentSkip to conversation

package/opencv4: add support for opencv4_contrib repository for extra modules

Buildroot Yann E. MORIN 1 participant 1 message Nov 20, 2022

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=4f4f2877fcd76ec3b1b3ad56d235ad3bd375e071
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

This adds a separate opencv4_contrib package to manage downloading/unpacking that repository. These extra modules are useful for a lot of applications, but not necessary for minimal installs, so they are all given dedicated Kconfig options

It's important to note that the opencv4-contrib package downloads extra source that is compiled as a part of the opencv4 package. This is why it is a dependency of opencv4, and not the other way around

---
 package/Config.in                            |   1 +
 package/opencv4-contrib/Config.in            | 313 +++++++++++++++++++++++++++
 package/opencv4-contrib/opencv4-contrib.hash |   3 +
 package/opencv4-contrib/opencv4-contrib.mk   |  16 ++
 package/opencv4/opencv4.mk                   |  62 +++++-
 5 files changed, 390 insertions(+), 5 deletions(-)
package/Config.in +1 -0
index 52004de075..c448e8bd97 100644
@@ -1593,6 +1593,7 @@ menu "Graphics"
 	source "package/opencl-clhpp/Config.in"
 	source "package/opencv3/Config.in"
 	source "package/opencv4/Config.in"
+	source "package/opencv4-contrib/Config.in"
 	source "package/opengl/Config.in"
 	source "package/openjpeg/Config.in"
 	source "package/pango/Config.in"
package/opencv4-contrib/Config.in new file +313 -0

313 lines not on this page · raw message

package/opencv4-contrib/opencv4-contrib.hash new file +3 -0
new file mode 100644
index 0000000000..4f15162e50
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  1777d5fd2b59029cf537e5fd6f8aa68d707075822f90bde683fcde086f85f7a7  opencv4-contrib-4.6.0.tar.gz
+sha256  cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  LICENSE
package/opencv4-contrib/opencv4-contrib.mk new file +16 -0
new file mode 100644
index 0000000000..81c45c6e02
@@ -0,0 +1,16 @@
+################################################################################
+#
+# opencv4-contrib
+#
+################################################################################
+
+OPENCV4_CONTRIB_VERSION = 4.6.0
+OPENCV4_CONTRIB_SITE = $(call github,opencv,opencv_contrib,$(OPENCV4_CONTRIB_VERSION))
+OPENCV4_CONTRIB_INSTALL_TARGET = FALSE
+OPENCV4_CONTRIB_LICENSE = Apache-2.0
+OPENCV4_CONTRIB_LICENSE_FILES = LICENSE
+
+# Modules provided by opencv4-contrib are built as part of the opencv4 package,
+# so opencv4-contrib only serves for downloading the source code.
+
+$(eval $(generic-package))
package/opencv4/opencv4.mk +57 -5

74 lines not on this page · raw message

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot