summaryrefslogtreecommitdiff
path: root/extra/imlib2
diff options
context:
space:
mode:
Diffstat (limited to 'extra/imlib2')
-rw-r--r--extra/imlib2/PKGBUILD25
-rw-r--r--extra/imlib2/imlib2-giflib5.patch14
2 files changed, 29 insertions, 10 deletions
diff --git a/extra/imlib2/PKGBUILD b/extra/imlib2/PKGBUILD
index f042719d0..a51feb3fd 100644
--- a/extra/imlib2/PKGBUILD
+++ b/extra/imlib2/PKGBUILD
@@ -1,28 +1,33 @@
-# $Id: PKGBUILD 184395 2013-05-06 19:37:59Z foutrelis $
+# $Id: PKGBUILD 191920 2013-08-01 06:59:49Z bpiotrowski $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Arjan Timmerman <arjan.archlinux.org>
# Contributor: Tom Newsom <Jeepster.gmx.co.uk>
pkgname=imlib2
pkgver=1.4.5
-pkgrel=4
+pkgrel=5
pkgdesc="Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support"
url="http://sourceforge.net/projects/enlightenment/"
arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
depends=('libtiff' 'giflib' 'bzip2' 'freetype2' 'libxext' 'libpng' 'libid3tag' 'libjpeg-turbo')
options=('!libtool')
-source=("http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2")
-sha1sums=('af86a2c38f4bc3806db57e64e74dc9814ad474a0')
+source=(http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2
+ imlib2-giflib5.patch)
+sha1sums=('af86a2c38f4bc3806db57e64e74dc9814ad474a0'
+ '29d0778ffbe6e57f08048918a79eb1ad6af87bce')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np0 -i ../imlib2-giflib5.patch
+}
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd $pkgname-$pkgver
- # disable optimizations, they cause problems (e.g. FS#12268)
- [ $CARCH = "i686" ] && EXTRAOPTS="--disable-mmx"
- [ $CARCH = "x86_64" ] && EXTRAOPTS="--disable-amd64"
+ [ $CARCH = "i686" ] && EXTRAOPTS="--enable-mmx"
+ [ $CARCH = "x86_64" ] && EXTRAOPTS="--enable-amd64"
- # Configure and Build
./configure --prefix=/usr \
--sysconfdir=/etc/imlib2 \
--x-libraries=/usr/lib $EXTRAOPTS
@@ -30,7 +35,7 @@ build() {
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# Install License
diff --git a/extra/imlib2/imlib2-giflib5.patch b/extra/imlib2/imlib2-giflib5.patch
new file mode 100644
index 000000000..966c6e4a7
--- /dev/null
+++ b/extra/imlib2/imlib2-giflib5.patch
@@ -0,0 +1,14 @@
+--- src/modules/loaders/loader_gif.c.orig
++++ src/modules/loaders/loader_gif.c
+@@ -40,7 +40,11 @@ load(ImlibImage * im, ImlibProgressFunct
+ #endif
+ if (fd < 0)
+ return 0;
++#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR >= 5)
++ gif = DGifOpenFileHandle(fd, NULL);
++#else
+ gif = DGifOpenFileHandle(fd);
++#endif
+ if (!gif)
+ {
+ close(fd);