From 6a2cf772fe71c3aa2c3124cc9fbfeb9feec93936 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 6 Jun 2018 20:04:00 +0200 Subject: graphics/photoqt: Updated for version 1.7.1. Signed-off-by: Matteo Bernardini --- graphics/photoqt/README | 6 ++---- graphics/photoqt/photoqt.SlackBuild | 13 ++++++++++--- graphics/photoqt/photoqt.info | 8 ++++---- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/graphics/photoqt/README b/graphics/photoqt/README index b6c5aaaa5f..3f45ef2b39 100644 --- a/graphics/photoqt/README +++ b/graphics/photoqt/README @@ -1,7 +1,5 @@ Photoqt is a fast, simple, good looking, yet powerful and highly configurable image viewer. -Support for external software is configured by default with the -following switches: -EXIV2=ON (needs exiv2, by default in Slackware) -GM=OFF (needs GraphicsMagick, optional dependency) +optional autodetected dependencies are DevIL, FreeImage, +GraphicsMagick and poppler-qt5. 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 diff --git a/graphics/photoqt/photoqt.info b/graphics/photoqt/photoqt.info index 48968d1090..e133538d8e 100644 --- a/graphics/photoqt/photoqt.info +++ b/graphics/photoqt/photoqt.info @@ -1,10 +1,10 @@ PRGNAM="photoqt" -VERSION="1.6" +VERSION="1.7.1" HOMEPAGE="https://photoqt.org" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/photoqt-1.6.tar.gz" -MD5SUM="a93a3f7eba55dcf3ccce7f56a8288bcd" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/photoqt-1.7.1.tar.gz" +MD5SUM="656fee6f9923499992f069496a0aaa5d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="qt5" +REQUIRES="extra-cmake-modules qt5" MAINTAINER="Matteo Bernardini" EMAIL="ponce@slackbuilds.org" -- cgit v1.2.3