mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
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:
parent
015f5aa75b
commit
78ed2440fd
1 changed files with 9 additions and 1 deletions
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue