diff options
Diffstat (limited to 'graphics/mtpaint')
-rw-r--r-- | graphics/mtpaint/mtpaint.SlackBuild | 10 |
1 files changed, 9 insertions, 1 deletions
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" \ |