From 78ed2440fdf229ef6e48c44efc197a65939c2b60 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Thu, 17 Sep 2015 23:17:57 +0100 Subject: graphics/mtpaint: Fixed build with giflib-5.1. Signed-off-by: David Spencer Signed-off-by: Willy Sudiarto Raharjo --- graphics/mtpaint/mtpaint.SlackBuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'graphics/mtpaint') diff --git a/graphics/mtpaint/mtpaint.SlackBuild b/graphics/mtpaint/mtpaint.SlackBuild index 4ac7fe978190..7ccd53439513 100644 --- a/graphics/mtpaint/mtpaint.SlackBuild +++ b/graphics/mtpaint/mtpaint.SlackBuild @@ -63,7 +63,15 @@ find -L . \ -o -perm 400 \) -exec chmod 644 {} \; # bring deprecated function call into conformance with libpng14 -sed -i~ 's/png_set_gray_1_2_4_to_8/png_set_expand_gray_1_2_4_to_8/' src/png.c +sed -i 's/png_set_gray_1_2_4_to_8/png_set_expand_gray_1_2_4_to_8/' src/png.c + +# Fix build with giflib-5.1 (thanks to Arch) +sed -i 's:EGifOpenFileName(file_name, FALSE):EGifOpenFileName(file_name, FALSE, NULL):' src/png.c +sed -i 's:DGifOpenFileName(file_name):DGifOpenFileName(file_name, NULL):g' src/png.c +sed -i 's:EGifCloseFile(giffy):EGifCloseFile(giffy, NULL):g' src/png.c +sed -i 's:DGifCloseFile(giffy):DGifCloseFile(giffy, NULL):g' src/png.c +sed -i 's:MakeMapObject(:GifMakeMapObject(:g' src/png.c +sed -i 's:FreeMapObject(:GifFreeMapObject(:g' src/png.c CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -- cgit v1.2.3