diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-09-17 23:17:57 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 78ed2440fdf229ef6e48c44efc197a65939c2b60 (patch) | |
tree | bc283d4198781ab5912a26c892c6f54d1d3696dd /graphics/mtpaint/mtpaint.SlackBuild | |
parent | 015f5aa75bdef4bbc1d2d16d83a6d24adcfc4e0f (diff) |
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>
Diffstat (limited to 'graphics/mtpaint/mtpaint.SlackBuild')
-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 4ac7fe9781908..7ccd534395134 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" \ |