From: Akinori Hattori Date: Sat, 27 Feb 2016 06:01:59 +0000 (+0900) Subject: media-libs/libsixel: fix build X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2947c44e67e81a55aa085cbdf516310d91448e22;p=gentoo.git media-libs/libsixel: fix build Gentoo-Bug: 570068 Package-Manager: portage-2.2.26 --- diff --git a/media-libs/libsixel/files/libsixel-gd.patch b/media-libs/libsixel/files/libsixel-gd.patch new file mode 100644 index 000000000000..6c947490a0c5 --- /dev/null +++ b/media-libs/libsixel/files/libsixel-gd.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -354,7 +354,7 @@ + [gdImageCreateFromGifPtr], + [AC_CHECK_DECLS([gdImageCreateFromGifPtr], [], [], [ #include ])]) + AC_CHECK_LIB([gd], +- [gdImageCreateFromBmpPtr], ++ [gdImageCreateFromPngPtr], + [AC_CHECK_DECLS([gdImageCreateFromPngPtr], [], [], [ #include ])]) + AC_CHECK_LIB([gd], + [gdImageCreateFromBmpPtr], diff --git a/media-libs/libsixel/libsixel-1.5.2.ebuild b/media-libs/libsixel/libsixel-1.5.2.ebuild index ef878d281e61..076be8b219ff 100644 --- a/media-libs/libsixel/libsixel-1.5.2.ebuild +++ b/media-libs/libsixel/libsixel-1.5.2.ebuild @@ -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 \