From 3c1c6ee37354d19a87335c8c055fd76f820b8de2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 22 Nov 2015 07:25:03 -0500 Subject: graphics/fbv: Fix compile issue. --- graphics/fbv/fbv.SlackBuild | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'graphics/fbv/fbv.SlackBuild') diff --git a/graphics/fbv/fbv.SlackBuild b/graphics/fbv/fbv.SlackBuild index 0bde96e9a095b..90252b9f355e5 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 -- cgit v1.2.3