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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Fri May 11 17:48:33 2007 UTC (7 years, 2 months ago) by gustavoz
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable on sparc
(Portage version: 2.1.2.2)

1 vapier 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 gustavoz 1.4 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.16.ebuild,v 1.3 2007/04/24 11:41:27 armin76 Exp $
4 vapier 1.1
5 mr_bones_ 1.2 inherit multilib eutils
6 vapier 1.1
7     DESCRIPTION="Portable Network Graphics library"
8     HOMEPAGE="http://www.libpng.org/"
9     SRC_URI="mirror://sourceforge/libpng/${P}.tar.bz2
10     doc? ( http://www.libpng.org/pub/png/libpng-manual.txt )"
11    
12     LICENSE="as-is"
13     SLOT="1.2"
14 gustavoz 1.4 KEYWORDS="~alpha ~amd64 ~arm ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
15 vapier 1.1 IUSE="doc"
16    
17     DEPEND="sys-libs/zlib"
18    
19     src_unpack() {
20     unpack ${A}
21     cd "${S}"
22     use doc && cp "${WORKDIR}"/${PN}-manual.txt .
23     epatch "${FILESDIR}"/1.2.7-gentoo.diff
24     }
25    
26     src_install() {
27     emake DESTDIR="${D}" install || die
28     dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
29     use doc && dodoc libpng-manual.txt
30     }
31    
32     pkg_postinst() {
33     # the libpng authors really screwed around between 1.2.1 and 1.2.3
34     if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then
35     rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1
36     fi
37     }

  ViewVC Help
Powered by ViewVC 1.1.20