/[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.1 Revision 1.1.1.1
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.1 2005/01/03 21:58:47 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/Attic/libpng-1.2.8.ebuild,v 1.1.1.1 2005/11/30 10:04:02 chriswhite 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 ~ppc64 ~ppc-macos ~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
34 -e '/^ZLIBINC=/s:=.*:=/usr/include:' \ 36 -e '/^ZLIBINC=/s:=.*:=/usr/include:' \
35 -e "s:-O3:${CFLAGS}:" \ 37 -e "s:-O3:${CFLAGS}:" \
36 -e '/^prefix=/s:/local::' \ 38 -e '/^prefix=/s:/local::' \
37 -e '/^MANPATH=/s:/man:/share/man:' \ 39 -e '/^MANPATH=/s:/man:/share/man:' \
38 -e "/^LIBPATH=/s:/lib:/$(get_libdir):" \ 40 -e "/^LIBPATH=/s:/lib:/$(get_libdir):" \
39 -e '/^OBJSDLL =/s:=:= -lz -lm :' \
40 -e 's:mkdir:mkdir -p:' \ 41 -e 's:mkdir:mkdir -p:' \
41 ${makefilein} > Makefile 42 ${makefilein} > Makefile
43 use ppc-macos || sed -i -e '/^OBJSDLL =/s:=:= -lz -lm :' Makefile
42} 44}
43 45
44src_compile() { 46src_compile() {
45 emake \ 47 emake \
46 CC="$(tc-getCC)" \ 48 CC="$(tc-getCC)" \
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.1  
changed lines
  Added in v.1.1.1.1

  ViewVC Help
Powered by ViewVC 1.1.20