diff options
Diffstat (limited to 'graphics/gmic/gmic.SlackBuild')
-rw-r--r-- | graphics/gmic/gmic.SlackBuild | 27 |
1 files changed, 23 insertions, 4 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 |