aboutsummaryrefslogtreecommitdiff
path: root/libraries/opencv/opencv.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2016-12-02 22:33:37 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-03 07:21:18 +0700
commitcf6566dd6460166719c15e4126bb7469a6eccb57 (patch)
tree7537ccb9df402a237757eb51ad8ee917f6b1f3ce /libraries/opencv/opencv.SlackBuild
parentd566692c1fa3d36128ac17fe6d55dfff23b35081 (diff)
libraries/opencv: Include samples only if CVDOS is set
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/opencv/opencv.SlackBuild')
-rw-r--r--libraries/opencv/opencv.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/libraries/opencv/opencv.SlackBuild b/libraries/opencv/opencv.SlackBuild
index c1e8c716f7539..8aef68edb519a 100644
--- a/libraries/opencv/opencv.SlackBuild
+++ b/libraries/opencv/opencv.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=opencv
PRGNAM2=opencv_contrib
VERSION=${VERSION:-3.1.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -118,8 +118,10 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-cp -a samples/java* samples/opencl* samples/opengl* $PKG/usr/share/opencv/samples
-chmod -R 0755 $PKG/usr/share/opencv/samples/{python*,opencl*,opengl*}
+[ "${CVDOCS:-yes}" = "yes" ] && {
+ cp -a samples/java* samples/opencl* samples/opengl* $PKG/usr/share/opencv/samples
+ chmod -R 0755 $PKG/usr/share/opencv/samples
+}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION