All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH v3 1/4] opencv: Only enable 'libav' support if commercial license is whitelisted
@ 2015-07-22 19:47 Otavio Salvador
  2015-07-22 19:47 ` [meta-oe][PATCH v3 2/4] opencv: Add 'libv4l' PACKAGECONFIG Otavio Salvador
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Otavio Salvador @ 2015-07-22 19:47 UTC (permalink / raw)
  To: Meta-OpenEmbedded Mailing listing; +Cc: Otavio Salvador

The libav support requires the commercial license to be
whitelist. This makes opencv to work in non-commercial setups without
needing to change the PACKAGECONFIG settings manually.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta-oe/recipes-support/opencv/opencv_2.4.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-support/opencv/opencv_2.4.bb b/meta-oe/recipes-support/opencv/opencv_2.4.bb
index 2754616..f8946f4 100644
--- a/meta-oe/recipes-support/opencv/opencv_2.4.bb
+++ b/meta-oe/recipes-support/opencv/opencv_2.4.bb
@@ -30,8 +30,9 @@ EXTRA_OECMAKE = "-DPYTHON_NUMPY_INCLUDE_DIR:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}
                  ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
 "
 
-PACKAGECONFIG ??= "eigen jpeg libav png tiff v4l \
-                   ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)}"
+PACKAGECONFIG ??= "eigen jpeg png tiff v4l \
+                   ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
+                   ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "libav", "", d)}"
 PACKAGECONFIG[eigen] = "-DWITH_EIGEN=ON,-DWITH_EIGEN=OFF,libeigen,"
 PACKAGECONFIG[gtk] = "-DWITH_GTK=ON,-DWITH_GTK=OFF,gtk+,"
 PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON,-DWITH_JPEG=OFF,jpeg,"
-- 
2.4.6



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-07-23 12:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 19:47 [meta-oe][PATCH v3 1/4] opencv: Only enable 'libav' support if commercial license is whitelisted Otavio Salvador
2015-07-22 19:47 ` [meta-oe][PATCH v3 2/4] opencv: Add 'libv4l' PACKAGECONFIG Otavio Salvador
2015-07-23 11:23   ` Gary Thomas
2015-07-23 12:42     ` Otavio Salvador
2015-07-22 19:47 ` [meta-oe][PATCH v3 3/4] glmark2: Convert recipe to fetch from Git Otavio Salvador
2015-07-22 19:47 ` [meta-oe][PATCH v3 4/4] glmark2: Remove X11 exclusiveness Otavio Salvador
2015-07-22 19:52 ` [meta-oe][PATCH v3 1/4] opencv: Only enable 'libav' support if commercial license is whitelisted Andreas Müller
2015-07-22 20:09   ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.