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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Sat Jul 16 15:56:29 2011 UTC (2 years, 11 months ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
alpha/ia64/m68k/s390/sh/sparc stable wrt #373967

(Portage version: 2.1.10.3/cvs/Linux ia64)

1 ssuominen 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.8 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.4.8.ebuild,v 1.7 2011/07/13 19:57:40 maekke Exp $
4 ssuominen 1.1
5     EAPI=4
6    
7     inherit eutils libtool multilib
8    
9     DESCRIPTION="Portable Network Graphics library"
10     HOMEPAGE="http://www.libpng.org/"
11     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
12     apng? ( mirror://sourceforge/${PN}-apng/${PN}-master/${PV}/${PN}-1.4.7-apng.patch.gz )"
13    
14     LICENSE="as-is"
15     SLOT="0"
16 armin76 1.8 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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
17 ssuominen 1.1 IUSE="apng static-libs"
18    
19     RDEPEND="sys-libs/zlib"
20     DEPEND="${RDEPEND}
21     app-arch/xz-utils"
22    
23     src_prepare() {
24 ssuominen 1.2 if use apng; then
25     epatch "${WORKDIR}"/${PN}-1.4.7-apng.patch
26     epatch "${FILESDIR}"/${P}-build.patch
27     fi
28    
29 ssuominen 1.1 elibtoolize
30     }
31    
32     src_configure() {
33     econf $(use_enable static-libs static)
34     }
35    
36     src_install() {
37     emake DESTDIR="${D}" install
38     dodoc ANNOUNCE CHANGES README TODO libpng-*.txt
39    
40     find "${ED}" -name '*.la' -exec rm -f {} +
41     }
42    
43     pkg_preinst() {
44     has_version ${CATEGORY}/${PN}:1.2 && return 0
45     preserve_old_lib /usr/$(get_libdir)/libpng12$(get_libname 0)
46     }
47    
48     pkg_postinst() {
49     has_version ${CATEGORY}/${PN}:1.2 && return 0
50     preserve_old_lib_notify /usr/$(get_libdir)/libpng12$(get_libname 0)
51     }

  ViewVC Help
Powered by ViewVC 1.1.20