From b52841910e320805bfc4d37573cec01f0941e45e Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Wed, 29 May 2019 10:21:59 -0700 Subject: [PATCH] DRAFT opencv_3.%.bbappend: Configure with Python being used --- recipes-support/opencv/opencv_3.%.bbappend | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 recipes-support/opencv/opencv_3.%.bbappend diff --git a/recipes-support/opencv/opencv_3.%.bbappend b/recipes-support/opencv/opencv_3.%.bbappend new file mode 100644 index 0000000..646f444 --- /dev/null +++ b/recipes-support/opencv/opencv_3.%.bbappend @@ -0,0 +1,6 @@ +# Copyright (c) 2019 LG Electronics, Inc. + +# Fix up PACKAGECONFIG if Python 2 is being used. +PACKAGECONFIG_prepend = "${@'python2 ' if d.getVar('ROS_PYTHON_VERSION', True) == '2' else ''}" +# _remove happens after _prepend. +PACKAGECONFIG_remove = "${@'python3' if d.getVar('ROS_PYTHON_VERSION', True) == '2' else ''}"