summaryrefslogtreecommitdiff
path: root/graphics/photoqt/photoqt.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2018-06-06 20:04:00 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-09 07:15:33 +0700
commit6a2cf772fe71c3aa2c3124cc9fbfeb9feec93936 (patch)
tree2eaca9206683d1a59f16552cc87d4fd12aa004cc /graphics/photoqt/photoqt.SlackBuild
parentad447e515cc1b5dbb269e3465510afaa432bf7e6 (diff)
downloadslackbuilds-6a2cf772fe71c3aa2c3124cc9fbfeb9feec93936.tar.gz
graphics/photoqt: Updated for version 1.7.1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/photoqt/photoqt.SlackBuild')
-rw-r--r--graphics/photoqt/photoqt.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/graphics/photoqt/photoqt.SlackBuild b/graphics/photoqt/photoqt.SlackBuild
index dd7f1a3a85..359e53cbad 100644
--- a/graphics/photoqt/photoqt.SlackBuild
+++ b/graphics/photoqt/photoqt.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=photoqt
-VERSION=${VERSION:-1.6}
+VERSION=${VERSION:-1.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,8 +54,12 @@ else
LIBDIRSUFFIX=""
fi
-EXIV2=${EXIV2:-ON}
-GM=${GM:-OFF}
+if pkg-config --exists exiv2; then EXIV2=ON; else EXIV2=OFF; fi
+if pkg-config --exists GraphicsMagick; then GM=ON; else GM=OFF; fi
+if pkg-config --exists libraw; then RAW=ON; else RAW=OFF; fi
+if pkg-config --exists IL; then DEVIL=ON; else DEVIL=OFF; fi
+if pkg-config --exists poppler-qt5; then POPPLER=ON; else POPPLER=OFF; fi
+if [ -f /usr/include/FreeImage.h ]; then FREEIMAGE=ON; else FREEIMAGE=OFF; fi
set -e
@@ -81,6 +85,9 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DEXIV2=$EXIV2 \
-DGM=$GM \
+ -DRAW=$RAW \
+ -DDEVIL=$DEVIL \
+ -DPOPPLER=$POPPLER \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG