development/gnustep-startup: Fix build with giflib 5.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-01-04 22:53:55 +07:00
parent 7067111589
commit 37d75946ea

View file

@ -24,7 +24,7 @@
PRGNAM=gnustep-startup
VERSION=${VERSION:-0.32.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -69,6 +69,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# We need to patch gnustep-gui to work with giflib 5.1
cd sources
tar xvf gnustep-gui-0.24.0.tar.gz
sed -i "s|DGifCloseFile(file|DGifCloseFile(file, NULL|" gnustep-gui-0.24.0/Source/NSBitmapImageRep+GIF.m
tar czvf gnustep-gui-0.24.0.tar.gz gnustep-gui-0.24.0
rm -rf gnustep-gui-0.24.0
cd ..
./InstallGNUstep \
--prefix=/opt/gnustep/ \
--batch \