summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiorgio Peron <giorgio.peron@gmail.com>2019-10-27 00:34:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-10-27 00:34:50 +0700
commit696f107bb5b02166c2cc95cad33975cb2dd8d687 (patch)
treea5173a0c6ee32835c872274580166bd0bbb38355
parent13cb1a4e0e5d3798f7f2aaa6f1092e23834f545d (diff)
downloadslackbuilds-696f107bb5b02166c2cc95cad33975cb2dd8d687.tar.gz
graphics/gmic: Updated for version 2.7.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--graphics/gmic/gmic.SlackBuild27
-rw-r--r--graphics/gmic/gmic.info12
2 files changed, 29 insertions, 10 deletions
diff --git a/graphics/gmic/gmic.SlackBuild b/graphics/gmic/gmic.SlackBuild
index 0184332d47..c72fbde487 100644
--- a/graphics/gmic/gmic.SlackBuild
+++ b/graphics/gmic/gmic.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2018 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy
+# Copyright 2019 Giorgio Peron <giorgio.peron@gmail.com>, Belluno, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,8 +21,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gmic
-VERSION=${VERSION:-2.4.2}
-COMMUNITYVERSION=${COMMUNITYVERSION:-b43000765fee484a9156d180e891d7a0e1bf8d0b}
+VERSION=${VERSION:-2.7.5}
+COMMUNITYVERSION=${COMMUNITYVERSION:-5a9aefc05e9585c1198c1d68f4b47ee32ff68ae2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -76,12 +76,31 @@ find -L . \
sed -i -e "s|LIB = lib|LIB = lib$LIBDIRSUFFIX|g" \
-e "s|/share/man/|/man/|g" \
-e "s|/etc/bash_completion.d|/usr/share/bash-completion/completions|g" \
+ -e "s|pkg-config opencv|pkg-config opencv4|" \
-e "s|qmake|qmake-qt5|g" \
src/Makefile
sed -i -e "s|-Ofast|-O2 -fno-fast-math --std=c++11|g" \
gmic-qt/gmic_qt.pro
-make -C src LIB=lib$LIBDIRSUFFIX OPT_CFLAGS="$SLKCFLAGS" all WGET=/bin/true
+# fix build with openCV 4.x
+cd zart
+patch -p1 -i $CWD/zart-opencv4.patch
+cd -
+
+make -C src cli lib libc WGET=/bin/true LIBS=${LDFLAGS} -j1
+
+cd gmic-qt
+qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=on HOST=none
+make
+qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=on HOST=gimp
+make
+qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=on HOST=krita
+make
+
+cd ../zart
+qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=off QMAKE_CXXFLAGS+=" -DOPENCV2_HEADERS"
+make
+cd ..
make -C src install LIB=lib$LIBDIRSUFFIX DESTDIR="$PKG" USR="/usr"
rmdir $PKG/usr/share || true
diff --git a/graphics/gmic/gmic.info b/graphics/gmic/gmic.info
index a62c7ee496..3d609c7b98 100644
--- a/graphics/gmic/gmic.info
+++ b/graphics/gmic/gmic.info
@@ -1,12 +1,12 @@
PRGNAM="gmic"
-VERSION="2.4.2"
+VERSION="2.7.5"
HOMEPAGE="https://gmic.eu"
-DOWNLOAD="https://gmic.eu/files/source/gmic_2.4.2.tar.gz \
- https://github.com/dtschump/gmic-community/archive/b43000765fee484a9156d180e891d7a0e1bf8d0b.zip"
-MD5SUM="a43389984672136ab04e0a170ed233b7 \
- 313abfe891858395626a0bbd7c33d786"
+DOWNLOAD="https://gmic.eu/files/source/gmic_2.7.5.tar.gz \
+ https://github.com/dtschump/gmic-community/archive/5a9aefc05e9585c1198c1d68f4b47ee32ff68ae2.zip"
+MD5SUM="d1c9baba2726b8ce8421804c91406a34 \
+ a54fa39b205e6dd712f42a2f3c1f45ae"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="qt5 opencv-legacy"
+REQUIRES="qt5 opencv"
MAINTAINER="Giorgio Peron"
EMAIL="giorgio.peron@gmail.com"