summaryrefslogtreecommitdiff
path: root/packages/media-libs/imlib2
diff options
context:
space:
mode:
authorAvatar Ankur Kothari <ankz.kothari@gmail.com> 2013-10-25 23:12:27 +1100
committerAvatar Gerrit Code Review <tomcat@78.46.51.44> 2013-10-26 15:37:12 +0200
commitdbed0c659353701fd466d2f17930c2fa00b76533 (patch)
tree10f809d2ad6283b06cbdf853dd9108c0eb8621a3 /packages/media-libs/imlib2
parent2f5663108355246207c52d37c7bceb178a3bf5da (diff)
downloadmedia-dbed0c659353701fd466d2f17930c2fa00b76533.tar.gz
media-dbed0c659353701fd466d2f17930c2fa00b76533.tar.xz
imlib2: fix build with giflib-5
`DGifOpenFileHandle' has an incompatible change in giflib-5 versus giflib-4. Add a patch to fix this issue. Change-Id: I16a61d248a3bc4b5ba76312eb31ef2b0dabfb8c1
Diffstat (limited to 'packages/media-libs/imlib2')
-rw-r--r--packages/media-libs/imlib2/files/imlib2-giflib5.patch18
-rw-r--r--packages/media-libs/imlib2/imlib2-1.4.5.exheres-02
2 files changed, 20 insertions, 0 deletions
diff --git a/packages/media-libs/imlib2/files/imlib2-giflib5.patch b/packages/media-libs/imlib2/files/imlib2-giflib5.patch
new file mode 100644
index 00000000..00e9b4b9
--- /dev/null
+++ b/packages/media-libs/imlib2/files/imlib2-giflib5.patch
@@ -0,0 +1,18 @@
+Source: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/imlib2-giflib5.patch?h=packages/imlib2
+Upstream: no
+Reason: compile with giflib-5
+
+--- imlib2-1.4.5/src/modules/loaders/loader_gif.c
++++ imlib2-1.4.5/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);
diff --git a/packages/media-libs/imlib2/imlib2-1.4.5.exheres-0 b/packages/media-libs/imlib2/imlib2-1.4.5.exheres-0
index 52892ed5..6490d8e2 100644
--- a/packages/media-libs/imlib2/imlib2-1.4.5.exheres-0
+++ b/packages/media-libs/imlib2/imlib2-1.4.5.exheres-0
@@ -25,6 +25,8 @@ DEPENDENCIES="
X? ( x11-libs/libXext )
"
+DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/imlib2-giflib5.patch" )
+
# --enable-amd64 segfaults
DEFAULT_SRC_CONFIGURE_PARAMS=(
--enable-visibility-hiding