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

Contents of /media-libs/libpng/libpng-1.5.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Jun 16 15:53:32 2012 UTC (2 years, 4 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.8.ebuild,v 1.7 2012/02/06 19:58:48 ssuominen Exp $
4
5 # WARNING: media-gfx/optipng is shipping internal copy of libpng14. Look out for
6 # security.
7
8 EAPI=4
9
10 inherit eutils libtool multilib
11
12 DESCRIPTION="Portable Network Graphics library"
13 HOMEPAGE="http://www.libpng.org/"
14 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
15 apng? ( mirror://sourceforge/${PN}-apng/${PN}-1.5.7-apng.patch.gz )"
16
17 LICENSE="as-is"
18 SLOT="0"
19 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
20 IUSE="apng neon static-libs"
21
22 RDEPEND="sys-libs/zlib"
23 DEPEND="${RDEPEND}
24 app-arch/xz-utils"
25
26 DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
27
28 src_prepare() {
29 if use apng; then
30 epatch "${WORKDIR}"/${PN}-1.5.7-apng.patch
31 # Don't execute symbols check with apng patch wrt #378111
32 sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die
33 fi
34 elibtoolize
35 }
36
37 src_configure() {
38 econf \
39 $(use_enable static-libs static) \
40 $(use_enable neon arm-neon)
41 }
42
43 src_install() {
44 default
45 find "${ED}" -name '*.la' -exec rm -f {} +
46 }
47
48 pkg_preinst() {
49 has_version ${CATEGORY}/${PN}:1.4 && return 0
50 preserve_old_lib /usr/$(get_libdir)/libpng14$(get_libname 14)
51 }
52
53 pkg_postinst() {
54 has_version ${CATEGORY}/${PN}:1.4 && return 0
55 preserve_old_lib_notify /usr/$(get_libdir)/libpng14$(get_libname 14)
56 }

  ViewVC Help
Powered by ViewVC 1.1.20