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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sat Jan 6 23:46:37 2007 UTC (7 years, 7 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
put a versioned and compressed manual on the gentoo mirrors, to fix bug #146921, once and for all.  I've also sent an email upstream requesting that they version the libpng-manual.txt file as well, so that we do not have to maintain it separately on our mirrors.
(Portage version: 2.1.2_rc4-r6)
 (Unsigned Manifest commit)

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.12-r1.ebuild,v 1.12 2006/11/10 00:00:55 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 # Fixes for #136452
30 epatch "${FILESDIR}"/${P}-no-asm.patch
31 eautoreconf
32 }
33
34 src_compile() {
35 econf || die
36 mv pngconf.h pngconf.h.in
37 emake pngconf.h || die
38 emake || die
39 }
40
41 src_install() {
42 make DESTDIR="${D}" install || die
43 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
44 use doc && dodoc libpng-manual.txt
45 }
46
47 pkg_postinst() {
48 # the libpng authors really screwed around between 1.2.1 and 1.2.3
49 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then
50 rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20