|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2011 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2011,2013 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,9 +27,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-OpenCV} |
|
|
|
|
VERSION=${VERSION:-2.3.1} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-${VERSION}a.tar.bz2} |
|
|
|
|
WGET=${WGET:-http://downloads.sourceforge.net/opencvlibrary/$ARCHIVE} |
|
|
|
|
VERSION=${VERSION:-2.4.7} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-${VERSION}.tar.gz} |
|
|
|
|
WGET=${WGET:-https://github.com/Itseez/opencv/archive/$VERSION.tar.gz} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-opencv} |
|
|
|
@ -99,10 +99,6 @@ make install DESTDIR=$PKG
|
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
|
xargs strip --strip-unneeded 2> /dev/null |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc |
|
|
|
|
mv $PKG/usr/share/OpenCV/doc $PKG/usr/doc/$NAME |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
|
|