summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen@occam.eroen.eu>2013-06-24 02:07:22 +0200
committereroen <eroen@occam.eroen.eu>2013-06-24 02:07:22 +0200
commit407edb7ded5ccf5a1b5d7685bfd235d879a0e2b7 (patch)
tree66241e54dea9970e17cd41c305dd2645602a1dd9 /media-libs
parentelx86-baselibs - filter libpng (diff)
downloaderoen-407edb7ded5ccf5a1b5d7685bfd235d879a0e2b7.tar.gz
eroen-407edb7ded5ccf5a1b5d7685bfd235d879a0e2b7.tar.bz2
eroen-407edb7ded5ccf5a1b5d7685bfd235d879a0e2b7.zip
libpng-1.6.2-r1 from gentoo
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libpng/Manifest5
-rw-r--r--media-libs/libpng/files/libpng-1.6.2-noexecstack.patch29
-rw-r--r--media-libs/libpng/libpng-1.6.2-r1.ebuild48
-rw-r--r--media-libs/libpng/metadata.xml11
4 files changed, 93 insertions, 0 deletions
diff --git a/media-libs/libpng/Manifest b/media-libs/libpng/Manifest
new file mode 100644
index 0000000..3ae6fbc
--- /dev/null
+++ b/media-libs/libpng/Manifest
@@ -0,0 +1,5 @@
+AUX libpng-1.6.2-noexecstack.patch 880 SHA256 3c2ad9b7cd4300f0c8f7dbee45fa249775d5dc7b3ca13bd32562594246a94055 SHA512 c9f540c5b61b677e819f927303677bffecf294fb714d3951cac5b4f89060e9518e5ff45f7ae403021883a136934b13e8ef994216a42762e279f934172210bfa8 WHIRLPOOL af318b17812a03fe9f2ab0986c6f5d981f11a5b7e1e97d3224b2c5db43e3c9a8ac6427f921f331b15b2014c9b3e20bc6942c9fa7b636fac63573305caf219b6b
+DIST libpng-1.6.2-apng.patch.gz 9571 SHA256 10dd088c443f8d233884bd73b8258d005c92fb0cf35d350ce5dc9ebac7b4eed8 SHA512 f2d1078b40494ecdfff125c0855049bd4a8db667fd4f2dd727a5768363a1a755f43d66147228dd8d5cbbd7148ee51adc74afe6175f8e4075ef3536141a95b898 WHIRLPOOL 9f12de4a838661633205a082c72128b54e14a9454bd705e8b8df951e8eaaa42dbe75c1ff91e4b73037649d319c67577c25f3dab50bcef5fb8c8dcdb2062870cc
+DIST libpng-1.6.2.tar.xz 836536 SHA256 1c97a90bc22107e50f04f77a0115f4ec890d5c6a373ac4c560e8fb87259e92de SHA512 01b1699a2ac1e687631f413458e7534b71f63b673c95b0d6e3501904a1b6e8aa82d8b4495033f4a90278963c1d4c40d81a7a17e976caf87690a23fb191ef75b3 WHIRLPOOL fb04df108af35bd789ef224addfedd0cb04959ae31899e4f3dbd1e9376e4242a93f34ad4c8fd8507bf13872b49f8a01b23bb7bc2129041a09be17434ceee993e
+EBUILD libpng-1.6.2-r1.ebuild 1573 SHA256 68d4ad62a9d3cf3068d976d899b3c300ccfe253257adc102336b6bf0afd517b2 SHA512 a6dfc4095d2d310e9f5501e67b9c86d79a3de75ac227ff4c849266ca6fa2469c8c07197c91bc6b0d4094fecb2898cf1b016ff61d106604a45a3f47c82e6c33c2 WHIRLPOOL 74f378e5b85e1a540f152b4a0445484a841b19224ac42b10b14972bd5822dfe04742fe85887752b8217138df3b9e1f7103f817942ccda5f39ebbc12850b9754a
+MISC metadata.xml 326 SHA256 b3ff7fa84cb973407915b046ba95aeb5e5fec97707b56978093a16885922d6d7 SHA512 61db558547cea5a5bdf4b89326d76b12aad12eab60bb26dce3fdc7360842f761e692855046bebed9d2e63b5823a11ac34bef0f5721f48046323ced30841cd72f WHIRLPOOL ab8a546352be7956e990d777bbe8e20429fa2eeabb1a8e9766bce982f5f0bbe4730a57dde96880d97837021bfd8e5a09cfa54e898c01c31a24b02bd0c2526666
diff --git a/media-libs/libpng/files/libpng-1.6.2-noexecstack.patch b/media-libs/libpng/files/libpng-1.6.2-noexecstack.patch
new file mode 100644
index 0000000..e7fca51
--- /dev/null
+++ b/media-libs/libpng/files/libpng-1.6.2-noexecstack.patch
@@ -0,0 +1,29 @@
+This patch is only for the 1.6.2 release, see bug #465010#c39
+
+--- a/arm/filter_neon.S
++++ b/arm/filter_neon.S
+@@ -16,11 +16,11 @@
+ #define PNG_VERSION_INFO_ONLY
+ #include "../pngpriv.h"
+
+-#if defined(PNG_FILTER_OPTIMIZATIONS) && defined(__arm__) && \
+- defined(__ARM_NEON__)
+ #if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits /* mark stack as non-executable */
+ #endif
++#if defined(PNG_FILTER_OPTIMIZATIONS) && defined(__arm__) && \
++ defined(__ARM_NEON__)
+
+ #ifdef __ELF__
+ # define ELF
+--- a/configure
++++ b/configure
+@@ -12812,7 +12812,7 @@ fi
+ # Because GCC by default assembles code with an executable stack, even though it
+ # compiles C code with a non-executable stack, it is necessary to do a fixup
+ # here (this may by GCC specific)
+-AM_CCASFLAGS=-Wa,--noexecstack
++AM_CCASFLAGS=
+
+
+ # Check whether --enable-arm-neon was given.
diff --git a/media-libs/libpng/libpng-1.6.2-r1.ebuild b/media-libs/libpng/libpng-1.6.2-r1.ebuild
new file mode 100644
index 0000000..355b42e
--- /dev/null
+++ b/media-libs/libpng/libpng-1.6.2-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.6.2-r1.ebuild,v 1.1 2013/06/23 17:49:58 ssuominen Exp $
+
+EAPI=5
+
+inherit eutils 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="libpng"
+SLOT="0/16"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE="apng neon static-libs"
+
+RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[abi_x86_32?]
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224 )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-noexecstack.patch #465010#c39
+
+ if use apng; then
+ epatch "${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
+ fi
+ elibtoolize
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ $(use_enable static-libs static) \
+ --enable-arm-neon=$(usex neon on off)
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+}
+
+multilib_src_install_all() {
+ dodoc ANNOUNCE CHANGES libpng-manual.txt README TODO
+ prune_libtool_files --all
+}
diff --git a/media-libs/libpng/metadata.xml b/media-libs/libpng/metadata.xml
new file mode 100644
index 0000000..0838001
--- /dev/null
+++ b/media-libs/libpng/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+<use>
+ <flag name="apng">support unofficial APNG (Animated PNG) spec</flag>
+</use>
+<upstream>
+ <remote-id type="cpe">cpe:/a:libpng:libpng</remote-id>
+</upstream>
+</pkgmetadata>