media-libs/libsixel: fix build
authorAkinori Hattori <hattya@gentoo.org>
Sat, 27 Feb 2016 06:01:59 +0000 (15:01 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sat, 27 Feb 2016 06:01:59 +0000 (15:01 +0900)
Gentoo-Bug: 570068

Package-Manager: portage-2.2.26

media-libs/libsixel/files/libsixel-gd.patch [new file with mode: 0644]
media-libs/libsixel/libsixel-1.5.2.ebuild

diff --git a/media-libs/libsixel/files/libsixel-gd.patch b/media-libs/libsixel/files/libsixel-gd.patch
new file mode 100644 (file)
index 0000000..6c94749
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -354,7 +354,7 @@
+                      [gdImageCreateFromGifPtr],
+                      [AC_CHECK_DECLS([gdImageCreateFromGifPtr],   [], [], [ #include <gd.h> ])])
+         AC_CHECK_LIB([gd],
+-                     [gdImageCreateFromBmpPtr],
++                     [gdImageCreateFromPngPtr],
+                      [AC_CHECK_DECLS([gdImageCreateFromPngPtr],   [], [], [ #include <gd.h> ])])
+         AC_CHECK_LIB([gd],
+                      [gdImageCreateFromBmpPtr],
index ef878d281e61af6de22b466701484c2291a1a77d..076be8b219ff9f284deb407246f241fe6bc75dc3 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI="5"
 
-inherit bash-completion-r1
+inherit autotools bash-completion-r1 eutils
 
 DESCRIPTION="A lightweight, fast implementation of DEC SIXEL graphics codec"
 HOMEPAGE="https://github.com/saitoha/libsixel"
@@ -23,6 +23,11 @@ RDEPEND="curl? ( net-misc/curl )
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-gd.patch
+       eautoreconf
+}
+
 src_configure() {
        econf \
                --disable-python \