diff options
author | Christoph Willing <chris.willing@linux.com> | 2019-02-25 14:33:01 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-03-02 07:40:22 +0700 |
commit | d3709ab7b76024d8cc98bae734e4c1d2ea447803 (patch) | |
tree | d50a690787de26b4503a1886689c4b14914193f0 /libraries | |
parent | ea0a1e40bf40b66b0917b089767827d6b4edcdc6 (diff) | |
download | slackbuilds-d3709ab7b76024d8cc98bae734e4c1d2ea447803.tar.gz |
libraries/opencv: Better location of site-packages directories
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/opencv/opencv.SlackBuild | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libraries/opencv/opencv.SlackBuild b/libraries/opencv/opencv.SlackBuild index ed38916595..33c1226ce7 100644 --- a/libraries/opencv/opencv.SlackBuild +++ b/libraries/opencv/opencv.SlackBuild @@ -27,13 +27,9 @@ PRGNAM=opencv PRGNAM2=opencv_contrib VERSION=${VERSION:-4.0.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} -PY2VERSION=${PY2VERSION:-2.7} -PY3VERSION=${PY3VERSION:-3.6} - - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -100,8 +96,8 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DOPENCV_GENERATE_PKGCONFIG=ON \ - -DPYTHON2_PACKAGES_PATH=/usr/lib${LIBDIRSUFFIX}/python${PY2VERSION}/site-packages \ - -DPYTHON3_PACKAGES_PATH=/usr/lib${LIBDIRSUFFIX}/python${PY3VERSION}/site-packages \ + -DPYTHON2_PACKAGES_PATH=$(python2 -c "import site; print(site.getsitepackages()[0])") \ + -DPYTHON3_PACKAGES_PATH=$(python3 -c "import site; print(site.getsitepackages()[0])") \ -DENABLE_PRECOMPILED_HEADERS=OFF \ -DWITH_IPP=OFF \ -DWITH_QT=ON \ |