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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Feb 6 20:00:18 2012 UTC (2 years, 5 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
old

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

1 ssuominen 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.5 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.5.6.ebuild,v 1.4 2011/12/04 17:51:38 armin76 Exp $
4 ssuominen 1.1
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/${P}-apng.patch.gz )"
16    
17     LICENSE="as-is"
18     SLOT="0"
19 armin76 1.4 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 ssuominen 1.1 IUSE="apng static-libs"
21    
22     RDEPEND="sys-libs/zlib"
23     DEPEND="${RDEPEND}
24     !<x11-libs/gdk-pixbuf-2.24.0-r1
25     !<x11-libs/libsexy-0.1.11-r3
26     !<x11-libs/libview-0.6.6-r2
27     app-arch/xz-utils"
28    
29     DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
30    
31     src_prepare() {
32     if use apng; then
33     epatch "${WORKDIR}"/${P}-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 $(use_enable static-libs static)
42     }
43    
44     src_install() {
45     default
46     find "${ED}" -name '*.la' -exec rm -f {} +
47     }
48    
49     pkg_preinst() {
50     has_version ${CATEGORY}/${PN}:1.4 && return 0
51     preserve_old_lib /usr/$(get_libdir)/libpng14$(get_libname 14)
52     }
53    
54     pkg_postinst() {
55     has_version ${CATEGORY}/${PN}:1.4 && return 0
56     preserve_old_lib_notify /usr/$(get_libdir)/libpng14$(get_libname 14)
57     }

  ViewVC Help
Powered by ViewVC 1.1.20