diff options
Diffstat (limited to 'graphics/rawtherapee/rawtherapee.SlackBuild')
-rw-r--r-- | graphics/rawtherapee/rawtherapee.SlackBuild | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/graphics/rawtherapee/rawtherapee.SlackBuild b/graphics/rawtherapee/rawtherapee.SlackBuild index 20ebb1e2e40e9..d7687a86c1a7d 100644 --- a/graphics/rawtherapee/rawtherapee.SlackBuild +++ b/graphics/rawtherapee/rawtherapee.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for rawtherapee -# Copyright 2014-2016 Panagiotis Nikolaou, Karlovasi Samos, Gr +# Copyright 2014-2017 Panagiotis Nikolaou, Culver City, CA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -13,7 +13,7 @@ # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; @@ -23,13 +23,19 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=rawtherapee -VERSION=${VERSION:-4.2} -BUILD=${BUILD:-2} +VER=${VER:-5.0.r1} +if [ "${GTK2:-no}" == "yes" ]; then + OPT1=gtk2 +else + OPT2=gtk3 +fi +VERSION=$VER.$OPT1$OPT2 +BUILD=${BUILD:-1} 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 @@ -40,8 +46,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" @@ -73,9 +79,10 @@ mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DPROC_TARGET_NUMBER="2" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -Wno-dev \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG |