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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jun 28 05:55:53 2010 UTC (4 years, 2 months ago) by jer
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for HPPA (bug #324153).
(Portage version: 2.2_rc67/cvs/Linux i686)

1 # Copyright 1999-2010 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.4.3.ebuild,v 1.3 2010/06/27 13:26:45 ssuominen Exp $
4
5 EAPI=3
6 inherit eutils libtool multilib
7
8 DESCRIPTION="Portable Network Graphics library"
9 HOMEPAGE="http://www.libpng.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
11
12 LICENSE="as-is"
13 SLOT="0"
14 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
15 IUSE=""
16
17 RDEPEND="sys-libs/zlib"
18 DEPEND="${RDEPEND}
19 app-arch/xz-utils"
20
21 src_prepare() {
22 elibtoolize
23 }
24
25 src_install() {
26 emake DESTDIR="${D}" install || die
27 dodoc ANNOUNCE CHANGES README TODO
28 dosbin "${FILESDIR}"/libpng-1.4.x-update.sh
29 }
30
31 pkg_preinst() {
32 preserve_old_lib /usr/$(get_libdir)/libpng12.so.0
33 }
34
35 pkg_postinst() {
36 elog
37 elog "Run /usr/sbin/libpng-1.4.x-update.sh to fix libtool archives (.la)"
38 elog
39 preserve_old_lib_notify /usr/$(get_libdir)/libpng12.so.0
40 }

  ViewVC Help
Powered by ViewVC 1.1.20