1 |
commit: 165c7b9eb2611554ba69f46d889cbb2db15f6f87 |
2 |
Author: David Michael <fedora.dm0 <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 4 21:24:21 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 7 20:44:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=165c7b9e |
7 |
|
8 |
media-libs/libpng: EAPI 7 and CPU_FLAGS_ARM |
9 |
|
10 |
Closes: https://bugs.gentoo.org/694076 |
11 |
Closes: https://bugs.gentoo.org/740414 |
12 |
Package-Manager: Portage-3.0.4, Repoman-2.3.23 |
13 |
Signed-off-by: David Michael <fedora.dm0 <AT> gmail.com> |
14 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/17398 |
16 |
|
17 |
media-libs/libpng/libpng-1.6.37-r1.ebuild | 44 +++++++++++++++++++++++++++++++ |
18 |
1 file changed, 44 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/libpng/libpng-1.6.37-r1.ebuild b/media-libs/libpng/libpng-1.6.37-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..c5ed306e8a8 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/libpng/libpng-1.6.37-r1.ebuild |
25 |
@@ -0,0 +1,44 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+inherit libtool multilib-minimal |
32 |
+ |
33 |
+DESCRIPTION="Portable Network Graphics library" |
34 |
+HOMEPAGE="http://www.libpng.org/" |
35 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz |
36 |
+ apng? ( mirror://sourceforge/apng/${P}-apng.patch.gz )" |
37 |
+ |
38 |
+LICENSE="libpng2" |
39 |
+SLOT="0/16" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
41 |
+IUSE="apng cpu_flags_arm_neon cpu_flags_x86_sse static-libs" |
42 |
+ |
43 |
+RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]" |
44 |
+DEPEND="${RDEPEND}" |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ default |
48 |
+ if use apng; then |
49 |
+ eapply -p0 "${WORKDIR}"/${PN}-*-apng.patch |
50 |
+ # Don't execute symbols check with apng patch wrt #378111 |
51 |
+ sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die |
52 |
+ fi |
53 |
+ elibtoolize |
54 |
+} |
55 |
+ |
56 |
+multilib_src_configure() { |
57 |
+ local myeconfargs=( |
58 |
+ $(use_enable cpu_flags_x86_sse intel-sse) |
59 |
+ $(use_enable static-libs static) |
60 |
+ --enable-arm-neon=$(usex cpu_flags_arm_neon) |
61 |
+ ) |
62 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
63 |
+} |
64 |
+ |
65 |
+multilib_src_install_all() { |
66 |
+ DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO ) |
67 |
+ einstalldocs |
68 |
+ find "${ED}" -name '*.la' -type f -delete || die |
69 |
+} |