aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-17 17:42:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-17 17:42:18 +0700
commit126d8cb7dcfbb179001e43a5f893344a92af4f09 (patch)
tree0d6f94a66f9a60f1958312ff197390e03d4983d3 /graphics
parente9fbb2a4ffb6326bf6f0e87ca02205dc05b78338 (diff)
graphics/digikam: Fix build with latest libpgf.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/digikam/digikam.SlackBuild6
-rw-r--r--graphics/digikam/libpgf.patch33
2 files changed, 37 insertions, 2 deletions
diff --git a/graphics/digikam/digikam.SlackBuild b/graphics/digikam/digikam.SlackBuild
index 93c6d760f632..dd492bcb2850 100644
--- a/graphics/digikam/digikam.SlackBuild
+++ b/graphics/digikam/digikam.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for digiKam
# Copyright 2007-2011 Frank Caraballo <fecaraballo{at}gmail{dot}com>
-# Copyright 2013-2015 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2013-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=digikam
VERSION=${VERSION:-4.14.0}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -74,6 +74,8 @@ patch -p1 < $CWD/lensfun-0.3.2.patch
sed -e '/fno-tree-pre/d' -i CMakeLists.txt
cd ..
+patch -p0 < $CWD/libpgf.patch
+
mkdir -p build
cd build
cmake \
diff --git a/graphics/digikam/libpgf.patch b/graphics/digikam/libpgf.patch
new file mode 100644
index 000000000000..5d2e7498bbe8
--- /dev/null
+++ b/graphics/digikam/libpgf.patch
@@ -0,0 +1,33 @@
+--- core/libs/dimg/loaders/pgfloader.cpp.orig 2019-03-17 16:52:40.102888509 +0700
++++ core/libs/dimg/loaders/pgfloader.cpp 2019-03-17 16:52:51.404020146 +0700
+@@ -442,14 +442,6 @@
+ }
+ }
+
+-#ifdef PGFCodecVersionID
+-# if PGFCodecVersionID < 0x061142
+- header.background.rgbtBlue = 0;
+- header.background.rgbtGreen = 0;
+- header.background.rgbtRed = 0;
+-# endif
+-#endif
+-
+ pgf.SetHeader(header);
+
+ // NOTE: see bug #273765 : Loading PGF thumbs with OpenMP support through a separated thread do not work properlly with libppgf 6.11.24
+--- core/libs/threadimageio/pgfutils.cpp.orig 2019-03-17 17:07:35.586244318 +0700
++++ core/libs/threadimageio/pgfutils.cpp 2019-03-17 17:07:47.110376670 +0700
+@@ -262,13 +262,6 @@
+ header.mode = ImageModeRGBA;
+ header.usedBitsPerChannel = 0; // Auto
+
+-#ifdef PGFCodecVersionID
+-# if PGFCodecVersionID < 0x061142
+- header.background.rgbtBlue = 0;
+- header.background.rgbtGreen = 0;
+- header.background.rgbtRed = 0;
+-# endif
+-#endif
+ pgfImg.SetHeader(header);
+
+ // NOTE: see bug #273765 : Loading PGF thumbs with OpenMP support through a separated thread do not work properlly with libppgf 6.11.24