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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Feb 1 05:34:23 2007 UTC (7 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2006 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.13.ebuild,v 1.7 2006/12/31 13:17:34 vapier 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? ( http://www.libpng.org/pub/png/libpng-manual.txt )"
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 RESTRICT="mirror" #146921
19
20 DEPEND="sys-libs/zlib"
21
22 src_unpack() {
23 unpack ${P}.tar.bz2
24 cd "${S}"
25 use doc && cp "${DISTDIR}"/libpng-manual.txt .
26
27 epatch "${FILESDIR}"/1.2.7-gentoo.diff
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