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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Aug 19 05:14:51 2007 UTC (6 years, 11 months ago) by vapier
Branch: MAIN
Version bump.
(Portage version: 2.1.3.6)

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.18-r1.ebuild,v 1.1 2007/07/14 17:22:15 vapier Exp $
4
5 inherit libtool multilib eutils
6
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 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
15 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 # So we get sane .so versioning on FreeBSD
26 elibtoolize
27 }
28
29 src_install() {
30 emake DESTDIR="${D}" install || die
31 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
32 use doc && dodoc libpng-manual.txt
33 }
34
35 pkg_postinst() {
36 # the libpng authors really screwed around between 1.2.1 and 1.2.3
37 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then
38 rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1
39 fi
40 }

  ViewVC Help
Powered by ViewVC 1.1.20