libpng-1.6.27.ebuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils libtool multilib-minimal
  5. DESCRIPTION="Portable Network Graphics library"
  6. HOMEPAGE="http://www.libpng.org/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
  8. apng? ( mirror://sourceforge/apng/${P}-apng.patch.gz )"
  9. LICENSE="libpng"
  10. SLOT="0/16"
  11. KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-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"
  12. IUSE="apng neon static-libs"
  13. RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]
  14. abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r1
  15. !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
  16. DEPEND="${RDEPEND}
  17. app-arch/xz-utils"
  18. src_prepare() {
  19. default
  20. if use apng; then
  21. eapply -p0 "${WORKDIR}"/${PN}-*-apng.patch
  22. # Don't execute symbols check with apng patch wrt #378111
  23. sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die
  24. fi
  25. elibtoolize
  26. }
  27. multilib_src_configure() {
  28. ECONF_SOURCE="${S}" econf \
  29. $(use_enable static-libs static) \
  30. --enable-arm-neon=$(usex neon)
  31. }
  32. multilib_src_install_all() {
  33. DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
  34. einstalldocs
  35. prune_libtool_files --all
  36. }