1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit libtool multilib-minimal
8 DESCRIPTION="Portable Network Graphics library"
9 HOMEPAGE="http://www.libpng.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
11 apng? ( mirror://sourceforge/apng/${P}-apng.patch.gz )"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
16 IUSE="apng cpu_flags_x86_sse neon static-libs"
18 RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]"
25 eapply -p0 "${WORKDIR}"/${PN}-*-apng.patch
26 # Don't execute symbols check with apng patch wrt #378111
27 sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die
32 multilib_src_configure() {
34 $(use_enable cpu_flags_x86_sse intel-sse)
35 $(use_enable static-libs static)
36 --enable-arm-neon=$(usex neon)
38 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
41 multilib_src_install_all() {
42 DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
44 find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die