/[gentoo-x86]/media-libs/libpng/libpng-1.5.15-r15.ebuild
Gentoo

Contents of /media-libs/libpng/libpng-1.5.15-r15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jul 20 17:45:24 2013 UTC (14 months, 1 week ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.5.15-r15.ebuild,v 1.2 2013/04/10 06:02:07 ssuominen Exp $
4
5 # this ebuild is only for the libpng15.so.15 SONAME for ABI compat
6
7 EAPI=5
8
9 inherit eutils libtool
10
11 DESCRIPTION="Portable Network Graphics library"
12 HOMEPAGE="http://www.libpng.org/"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
14 apng? ( mirror://sourceforge/apng/${P}-apng.patch.gz )"
15
16 LICENSE="libpng"
17 SLOT="1.5"
18 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"
19 IUSE="apng neon"
20
21 RDEPEND="sys-libs/zlib:=
22 !=media-libs/libpng-1.5*:0"
23 DEPEND="${RDEPEND}
24 app-arch/xz-utils"
25
26 pkg_setup() {
27 local _preserved_lib=${EROOT}/usr/$(get_libdir)/libpng15.so.15
28 [[ -e ${_preserved_lib} ]] && rm -f "${_preserved_lib}"
29 }
30
31 src_prepare() {
32 if use apng; then
33 epatch "${WORKDIR}"/${PN}-*-apng.patch
34 # Don't execute symbols check with apng patch wrt #378111
35 sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die
36 fi
37 elibtoolize
38 }
39
40 src_configure() {
41 econf \
42 --disable-static \
43 --enable-arm-neon=$(usex neon on off)
44 }
45
46 src_compile() {
47 emake libpng15.la
48 }
49
50 src_install() {
51 newlib.so .libs/libpng15.so.15.* libpng15.so.15
52 }

  ViewVC Help
Powered by ViewVC 1.1.20