diff options
Diffstat (limited to 'libraries/frei0r/frei0r.SlackBuild')
-rw-r--r-- | libraries/frei0r/frei0r.SlackBuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/frei0r/frei0r.SlackBuild b/libraries/frei0r/frei0r.SlackBuild index ce64a47e50215..a78fc62f3f517 100644 --- a/libraries/frei0r/frei0r.SlackBuild +++ b/libraries/frei0r/frei0r.SlackBuild @@ -41,10 +41,12 @@ # *Updated for 1.6.1 # Jan 1st, 2020 # *Updated for 1.7.0 +# Jan 20th, 2020 +# *Disabled opencv support PRGNAM=frei0r VERSION=${VERSION:-1.7.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -89,9 +91,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Apply upstream patches -for i in $CWD/patches/* ; do patch -p1 < $i ; done +# Apply upstream patches if present +if [ -d $CWD/patches ]; then + for i in $CWD/patches/* ; do patch -p1 < $i ; done +fi +# Disable opencv support, not compatible with 4.2.x mkdir -p build cd build cmake \ @@ -99,6 +104,7 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib$LIBDIRSUFFIX \ + -DWITHOUT_OPENCV=1 \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG |