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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Jan 22 13:26:29 2011 UTC (3 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

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

1 ssuominen 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.4.4.ebuild,v 1.2 2010/10/17 20:08:08 vapier Exp $
4 vapier 1.2
5     EAPI="3"
6 ssuominen 1.1
7     inherit eutils libtool multilib prefix
8    
9     DESCRIPTION="Portable Network Graphics library"
10     HOMEPAGE="http://www.libpng.org/"
11     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
12    
13     LICENSE="as-is"
14     SLOT="0"
15     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"
16     IUSE=""
17    
18     RDEPEND="sys-libs/zlib"
19     DEPEND="${RDEPEND}
20     app-arch/xz-utils"
21    
22     src_prepare() {
23     cp "${FILESDIR}"/libpng-1.4.x-update.sh "${T}"
24     eprefixify "${T}"/libpng-1.4.x-update.sh
25     elibtoolize
26     }
27    
28     src_install() {
29     emake DESTDIR="${D}" install || die
30 vapier 1.2 dodoc ANNOUNCE CHANGES README TODO libpng-*.txt
31 ssuominen 1.1 dosbin "${T}"/libpng-1.4.x-update.sh
32     }
33    
34     pkg_preinst() {
35     has_version ${CATEGORY}/${PN}:1.2 && return 0
36     preserve_old_lib /usr/$(get_libdir)/libpng12.so.0
37     }
38    
39     pkg_postinst() {
40     elog "Run ${EPREFIX}/usr/sbin/libpng-1.4.x-update.sh to fix libtool archives (.la)"
41    
42     has_version ${CATEGORY}/${PN}:1.2 && return 0
43     preserve_old_lib_notify /usr/$(get_libdir)/libpng12.so.0
44     }

  ViewVC Help
Powered by ViewVC 1.1.20