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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20