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 ''}"