diff options
Diffstat (limited to 'graphics/photoqt/photoqt.SlackBuild')
-rw-r--r-- | graphics/photoqt/photoqt.SlackBuild | 13 |
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 |