graphics/mtpaint: Fixed build with giflib-5.1.

Signed-off-by: David Spencer <baildon.research@googlemail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Spencer 2015-09-17 23:17:57 +01:00 committed by Willy Sudiarto Raharjo
parent 015f5aa75b
commit 78ed2440fd

View file

@ -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" \