summaryrefslogtreecommitdiff
path: root/graphics/fbv/fbv.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-11-22 07:25:03 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-28 07:26:17 +0700
commit3c1c6ee37354d19a87335c8c055fd76f820b8de2 (patch)
treeb795b7a3a7f7370c5e90c2f4ec53ecd4447abb0b /graphics/fbv/fbv.SlackBuild
parent6b480b2a6cb1b16cd4bfafa5f415758c6746e2f7 (diff)
downloadslackbuilds-3c1c6ee37354d19a87335c8c055fd76f820b8de2.tar.gz
graphics/fbv: Fix compile issue.
Diffstat (limited to 'graphics/fbv/fbv.SlackBuild')
-rw-r--r--graphics/fbv/fbv.SlackBuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/fbv/fbv.SlackBuild b/graphics/fbv/fbv.SlackBuild
index 0bde96e9a0..90252b9f35 100644
--- a/graphics/fbv/fbv.SlackBuild
+++ b/graphics/fbv/fbv.SlackBuild
@@ -57,6 +57,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Check for new giflib API, apply patch only if needed. This changed
+# between Slack 14.1 and 14.2.
+grep -q DGifOpenFileName.*Error /usr/include/gif_lib.h && \
+ patch -p1 < $CWD/giflib5_api.diff
+
+# Patch is needed for linpng-1.6, and does no harm on 1.4.
+patch -p1 < $CWD/png16_api.diff
+
# Man page is missing a few options, and --help output is wrong.
# Also next/prev/quit options weren't documented in either place.
patch -p1 < $CWD/manhelp.diff