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

Contents of /media-libs/libpng/libpng-1.2.14-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Oct 5 03:11:33 2007 UTC (6 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.3.11)

1 # Copyright 1999-2007 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.2.14-r1.ebuild,v 1.3 2007/01/07 16:34:19 seemant Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7 inherit eutils autotools multilib
8
9 DESCRIPTION="Portable Network Graphics library"
10 HOMEPAGE="http://www.libpng.org/"
11 SRC_URI="mirror://sourceforge/libpng/${P}.tar.bz2
12 doc? ( mirror://gentoo/${PN}-manual-${PV}.txt.bz2 )"
13
14 LICENSE="as-is"
15 SLOT="1.2"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
17 IUSE="doc"
18
19 DEPEND="sys-libs/zlib"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 use doc && cp "${WORKDIR}"/${PN}-manual-${PV}.txt ${PN}-manual.txt
25
26 epatch "${FILESDIR}"/1.2.7-gentoo.diff
27 epatch "${FILESDIR}"/${P}-mem-leak.patch #159216
28
29 epatch "${FILESDIR}"/${PN}-1.2.12-no-asm.patch #136452
30 eautoreconf
31 }
32
33 src_compile() {
34 econf || die
35 mv pngconf.h pngconf.h.in
36 emake pngconf.h || die
37 emake || die
38 }
39
40 src_install() {
41 make DESTDIR="${D}" install || die
42 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
43 use doc && dodoc libpng-manual.txt
44 }
45
46 pkg_postinst() {
47 # the libpng authors really screwed around between 1.2.1 and 1.2.3
48 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then
49 rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1
50 fi
51 }

  ViewVC Help
Powered by ViewVC 1.1.20