[Buildroot] [git commit] package/opencv3: add webp support
Yann E. MORIN
yann.morin.1998 at free.fr
Sun Oct 18 19:44:08 UTC 2020
commit: https://git.buildroot.net/buildroot/commit/?id=1705e2aee810fe6ada2fc114320725a00263c061
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
webp support is available since version 3.0.0 and
https://github.com/opencv/opencv/commit/500b7318beee639d8c341e9ea63ac7610ca225f4
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
package/opencv3/Config.in | 8 ++++++++
package/opencv3/opencv3.mk | 8 +++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/package/opencv3/Config.in b/package/opencv3/Config.in
index 22dcb67f3a..1fda3cf089 100644
--- a/package/opencv3/Config.in
+++ b/package/opencv3/Config.in
@@ -313,6 +313,14 @@ config BR2_PACKAGE_OPENCV3_WITH_V4L
If the package libv4l is enabled, its support is
automatically enabled.
+config BR2_PACKAGE_OPENCV3_WITH_WEBP
+ bool "webp support"
+ select BR2_PACKAGE_WEBP
+ help
+ Enable WebP support.
+
+ Use shared libwebp from the target system.
+
comment "Install options"
config BR2_PACKAGE_OPENCV3_INSTALL_DATA
diff --git a/package/opencv3/opencv3.mk b/package/opencv3/opencv3.mk
index 648cc66af3..12d2e3c00c 100644
--- a/package/opencv3/opencv3.mk
+++ b/package/opencv3/opencv3.mk
@@ -223,7 +223,6 @@ OPENCV3_CONF_OPTS += \
-DWITH_VA=OFF \
-DWITH_VA_INTEL=OFF \
-DWITH_VTK=OFF \
- -DWITH_WEBP=OFF \
-DWITH_XINE=OFF
OPENCV3_DEPENDENCIES += host-pkgconf zlib
@@ -318,6 +317,13 @@ else
OPENCV3_CONF_OPTS += -DWITH_V4L=OFF -DWITH_LIBV4L=OFF
endif
+ifeq ($(BR2_PACKAGE_OPENCV3_WITH_WEBP),y)
+OPENCV3_CONF_OPTS += -DWITH_WEBP=ON
+OPENCV3_DEPENDENCIES += webp
+else
+OPENCV3_CONF_OPTS += -DWITH_WEBP=OFF
+endif
+
ifeq ($(BR2_PACKAGE_OPENCV3_LIB_PYTHON),y)
OPENCV3_CONF_OPTS += \
-DBUILD_opencv_python2=OFF \
More information about the buildroot
mailing list