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

Diff of /media-libs/libpng/libpng-1.2.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/Attic/libpng-1.2.8.ebuild,v 1.9 2005/05/16 00:06:42 geoman Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/Attic/libpng-1.2.8.ebuild,v 1.10 2005/05/27 21:57:50 vapier Exp $
4 4
5inherit flag-o-matic eutils toolchain-funcs 5inherit flag-o-matic eutils toolchain-funcs
6 6
7DESCRIPTION="Portable Network Graphics library" 7DESCRIPTION="Portable Network Graphics library"
8HOMEPAGE="http://www.libpng.org/" 8HOMEPAGE="http://www.libpng.org/"
9SRC_URI="mirror://sourceforge/libpng/${P}.tar.bz2" 9SRC_URI="mirror://sourceforge/libpng/${P}.tar.bz2
10 doc? ( http://www.libpng.org/pub/png/libpng-manual.txt )"
10 11
11LICENSE="as-is" 12LICENSE="as-is"
12SLOT="1.2" 13SLOT="1.2"
13KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc-macos ppc64 s390 sh sparc x86" 14KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc-macos ppc64 s390 sh sparc x86"
14IUSE="" 15IUSE="doc"
15 16
16DEPEND="sys-libs/zlib" 17DEPEND="sys-libs/zlib"
17 18
18src_unpack() { 19src_unpack() {
19 unpack ${A} 20 unpack ${P}.tar.bz2
20 cd "${S}" 21 cd "${S}"
22 use doc && cp "${DISTDIR}"/libpng-manual.txt .
21 23
22 epatch "${FILESDIR}"/1.2.7-gentoo.diff 24 epatch "${FILESDIR}"/1.2.7-gentoo.diff
23 25
24 [[ $(gcc-version) == "3.3" || $(gcc-version) == "3.2" ]] \ 26 [[ $(gcc-version) == "3.3" || $(gcc-version) == "3.2" ]] \
25 && replace-cpu-flags k6 k6-2 k6-3 i586 27 && replace-cpu-flags k6 k6-2 k6-3 i586
49} 51}
50 52
51src_install() { 53src_install() {
52 make DESTDIR="${D}" install || die 54 make DESTDIR="${D}" install || die
53 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO 55 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
56 use doc && dodoc libpng-manual.txt
54} 57}
55 58
56pkg_postinst() { 59pkg_postinst() {
57 # the libpng authors really screwed around between 1.2.1 and 1.2.3 60 # the libpng authors really screwed around between 1.2.1 and 1.2.3
58 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then 61 if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20