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>
This commit is contained in:
Christoph Willing 2016-12-02 22:33:37 +10:00 committed by Willy Sudiarto Raharjo
parent d566692c1f
commit cf6566dd64
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -3,10 +3,10 @@ VERSION="3.1.0"
HOMEPAGE="http://opencv.org/"
DOWNLOAD="https://github.com/Itseez/opencv/archive/3.1.0/opencv-3.1.0.tar.gz \
https://github.com/Itseez/opencv_contrib/archive/3.1.0/opencv_contrib-3.1.0.zip \
http://sourceforge.net/projects/plantuml/files/plantuml.jar"
http://sourceforge.net/projects/plantuml/files/plantuml.8051.jar"
MD5SUM="70e1dd07f0aa06606f1bc0e3fa15abd3 \
0d0bfeabe539542791b465ec1c7c90e6 \
cf7cf91a910eeee1a0a9bbff9ca00e22"
6ee8103fed6ad731fff2323cb28da848"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""