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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Fri Oct 5 03:11:33 2007 UTC (7 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +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.ebuild,v 1.12 2007/01/21 18:06:41 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? ( 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
28 epatch "${FILESDIR}"/${PN}-1.2.12-no-asm.patch #136452
29 eautoreconf
30 }
31
32 src_compile() {
33 econf || die
34 mv pngconf.h pngconf.h.in
35 emake pngconf.h || die
36 emake || die
37 }
38
39 src_install() {
40 make DESTDIR="${D}" install || die
41 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
42 use doc && dodoc libpng-manual.txt
43 }
44
45 pkg_postinst() {
46 # the libpng authors really screwed around between 1.2.1 and 1.2.3
47 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then
48 rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1
49 fi
50 }

  ViewVC Help
Powered by ViewVC 1.1.20