libraries/opencv: Fix condition to apply patch

Signed-off-by: Christoph Willing <chris.willing@linux.com>
This commit is contained in:
Christoph Willing 2018-12-16 07:08:32 +10:00 committed by Willy Sudiarto Raharjo
parent 38493406d9
commit ac9d2dfd34
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -27,7 +27,7 @@
PRGNAM=opencv
PRGNAM2=opencv_contrib
VERSION=${VERSION:-4.0.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PY2VERSION=${PY2VERSION:-2.7}
@ -84,7 +84,7 @@ echo "Unpacking $CWD/$PRGNAM2-$VERSION.tar.gz ..."
tar xf $CWD/$PRGNAM2-$VERSION.tar.gz
# Only needed if qt5 has been configured
if [ -d /usr/etc/qt5 ]; then
if [ -d /usr/include/qt5 ]; then
patch -p0 < $CWD/patch_filter_scharr.diff
fi