imlib2: fix build with giflib-5.1.0

This commit is contained in:
Enno Boland 2014-10-03 21:27:44 +02:00
parent 97c9eb5045
commit a03ea61b86

View file

@ -4,7 +4,7 @@ version=1.4.6
revision=4
build_style=gnu-configure
configure_args="--disable-static --sysconfdir=/etc/imlib2 --enable-visibility-hiding"
hostmakedepends="libtool pkg-config"
hostmakedepends="libtool autoconf pkg-config"
makedepends="freetype-devel libjpeg-turbo-devel libpng-devel>=1.6
tiff-devel libid3tag-devel giflib-devel>=5.1.0 libXext-devel libSM-devel"
short_desc="Image manipulation library"
@ -16,6 +16,11 @@ checksum=17cc128c0e61974d59c423b59d0fb5cb85c97169adf5b05184cc58f7c87b4f4e
pre_configure() {
libtoolize -f
# prevent regenerating Makefile.in and aclocal.m4
touch aclocal.m4 Makefile.in
# make it build with giflib-5.1.0
# see http://wiki.linuxfromscratch.org/blfs/ticket/5076#comment:2
sed -i "/DGifCloseFile/s:gif:&, NULL:g" src/modules/loaders/loader_gif.c
sed -e 's,@my_libs@,@LIBS@,g' -i imlib2-config.in
}