diff options
author | Christoph Willing <chris.willing@linux.com> | 2018-05-01 15:29:41 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-05-05 06:46:32 +0700 |
commit | 91c73d79f57e84787cef719f78645b8055b66286 (patch) | |
tree | 74b630b2ccba48d4d6a0602ef5aa71a864c58786 /libraries/opencv/opencv.SlackBuild | |
parent | c0ade404cdc60b762c6dd2acb7f9914f83b86163 (diff) | |
download | slackbuilds-91c73d79f57e84787cef719f78645b8055b66286.tar.gz |
libraries/opencv: Patched to suit ffmpeg
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Diffstat (limited to 'libraries/opencv/opencv.SlackBuild')
-rw-r--r-- | libraries/opencv/opencv.SlackBuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libraries/opencv/opencv.SlackBuild b/libraries/opencv/opencv.SlackBuild index dc4bc9b6dc..63cb0c17b8 100644 --- a/libraries/opencv/opencv.SlackBuild +++ b/libraries/opencv/opencv.SlackBuild @@ -27,12 +27,12 @@ PRGNAM=opencv PRGNAM2=opencv_contrib VERSION=${VERSION:-3.4.1} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -43,8 +43,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -76,6 +76,7 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION tar xf $CWD/$PRGNAM2-$VERSION.tar.gz patch -p0 < $CWD/patch_fsh-${VERSION}.diff +patch -p1 < $CWD/patch_cvdef_h.diff chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |