imlib2: rebuild against giflib-5.x.

This commit is contained in:
Juan RP 2012-10-15 16:32:55 +02:00
parent 153a0f1228
commit 35c562a85c
4 changed files with 35 additions and 7 deletions

View file

@ -1,6 +1,7 @@
# Template file for 'imlib2-devel'.
#
depends="imlib2>=$version"
noarch=yes
depends="imlib2-${version}_${revision}"
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
@ -11,5 +12,4 @@ do_install() {
vmove usr/include usr
vmove usr/share usr
vmove usr/lib/pkgconfig usr/lib
vmove "usr/lib/*.a" usr/lib
}

View file

@ -7,7 +7,7 @@ libdl.so.2
libm.so.6
libc.so.6
libjpeg.so.8
libgif.so.4
libgif.so.6
libid3tag.so.0
libtiff.so.5
libpng15.so.15

View file

@ -0,0 +1,24 @@
Adapt DGifOpenFileHandle() to the 5.x API.
--- src/modules/loaders/loader_gif.c.orig 2012-10-15 16:29:26.667044054 +0200
+++ src/modules/loaders/loader_gif.c 2012-10-15 16:29:43.329649211 +0200
@@ -19,7 +19,7 @@ load(ImlibImage * im, ImlibProgressFunct
int intoffset[] = { 0, 4, 2, 1 };
int intjump[] = { 8, 8, 4, 2 };
int transp;
- int fd;
+ int fd, err = 0;
done = 0;
rows = NULL;
@@ -36,8 +36,8 @@ load(ImlibImage * im, ImlibProgressFunct
#endif
if (fd < 0)
return 0;
- gif = DGifOpenFileHandle(fd);
- if (!gif)
+ gif = DGifOpenFileHandle(fd, &err);
+ if (err)
{
close(fd);
return 0;

View file

@ -1,14 +1,18 @@
# Template build file for 'imlib2'.
pkgname=imlib2
version=1.4.5
revision=1
distfiles="${SOURCEFORGE_SITE}/enlightenment/imlib2-$version.tar.gz"
revision=2
build_style=gnu-configure
configure_args="--sysconfdir=/etc/imlib2 --enable-visibility-hiding"
makedepends="pkg-config freetype-devel jpeg-devel libpng-devel>=1.5.10 tiff-devel libid3tag-devel giflib-devel libXext-devel"
configure_args="--disable-static --sysconfdir=/etc/imlib2
--enable-visibility-hiding"
makedepends="pkg-config freetype-devel jpeg-devel libpng-devel>=1.5.10
tiff-devel libid3tag-devel giflib-devel>=5.0.1 libXext-devel"
subpackages="imlib2-devel"
short_desc="Image manipulation library"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${SOURCEFORGE_SITE}/enlightenment/imlib2-$version.tar.gz"
homepage="http://sourceforge.net/projects/enlightenment/"
license="BSD"
checksum=6e809413a571f82b9e67aeaf5577a1245a034c866ae5fa83c191a227f60cc7a0
long_desc="
Imlib 2 is the successor to Imlib. It is NOT a newer version - it is a