From f324fe114b3a9a905b23682a79986d098b29d61e Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Mon, 13 Dec 2021 23:04:18 +0100 Subject: media-libs/libpng: fork from ::gentoo Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann --- media-libs/libpng/Manifest | 2 ++ media-libs/libpng/libpng-1.6.37-r3.ebuild | 46 +++++++++++++++++++++++++++++++ media-libs/libpng/metadata.xml | 23 ++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 media-libs/libpng/Manifest create mode 100644 media-libs/libpng/libpng-1.6.37-r3.ebuild create mode 100644 media-libs/libpng/metadata.xml diff --git a/media-libs/libpng/Manifest b/media-libs/libpng/Manifest new file mode 100644 index 00000000..cff7dcac --- /dev/null +++ b/media-libs/libpng/Manifest @@ -0,0 +1,2 @@ +DIST libpng-1.6.37-apng.patch.gz 10334 BLAKE2B 98660f2c13a78c93f937adf2859447cb0e6fa014b2ef6f0571c910593d94cc0a50137d271dbded0b571a3bc0ce4e9f765be48130ee4ae89884fb7292a1b0cf6e SHA512 a9365257a33d67d7e7284494a37747bb1f3ab89f42a1730f2745c604538f59861828dc91d9bc1d08a5b79ab2f4eef1bb9e438dda1774b3548a1c56be77f8435f +DIST libpng-1.6.37.tar.xz 1012272 BLAKE2B 48e8f48a88e0db6fcbc0c0f1a4d5bda6e6c8b03255bacdc60e353256ae41ccc01b5b2a7e0e7b0dea236c53a3b9d1dd89d4bb19445afbebc37bf0f92691452424 SHA512 59e8c1059013497ae616a14c3abbe239322d3873c6ded0912403fc62fb260561768230b6ab997e2cccc3b868c09f539fd13635616b9fa0dd6279a3f63ec7e074 diff --git a/media-libs/libpng/libpng-1.6.37-r3.ebuild b/media-libs/libpng/libpng-1.6.37-r3.ebuild new file mode 100644 index 00000000..9459aa9c --- /dev/null +++ b/media-libs/libpng/libpng-1.6.37-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit libtool multilib-minimal + +DESCRIPTION="Portable Network Graphics library" +HOMEPAGE="http://www.libpng.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz + apng? ( mirror://sourceforge/apng/${P}-apng.patch.gz )" + +LICENSE="libpng2" +SLOT="0/16" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +IUSE="apng cpu_flags_arm_neon cpu_flags_x86_sse static-libs" + +RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" + +DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO ) + +src_prepare() { + default + + eapply -p0 "${WORKDIR}"/${PN}-*-apng.patch + # Don't execute symbols check with apng patch wrt #378111 + sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die + + elibtoolize +} + +multilib_src_configure() { + local myeconfargs=( + $(use_enable cpu_flags_arm_neon arm-neon check) + $(use_enable cpu_flags_x86_sse intel-sse) + $(use_enable static-libs static) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + default + + find "${ED}" \( -type f -o -type l \) -name '*.la' -delete || die +} diff --git a/media-libs/libpng/metadata.xml b/media-libs/libpng/metadata.xml new file mode 100644 index 00000000..10e62abd --- /dev/null +++ b/media-libs/libpng/metadata.xml @@ -0,0 +1,23 @@ + + + + + base-system@gentoo.org + Gentoo Base System + + + codec@gentoo.org + Codec project + + + support unofficial APNG (Animated PNG) spec + + + cpe:/a:libpng:libpng + glennrp/libpng + libpng + + + Reflect ABI compatibility for libpng.so. + + -- cgit v1.2.3-65-gdbad