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

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

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2002 Gentoo Technologies, Inc.
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.0.15.ebuild,v 1.2 2003/01/16 13:13:15 seemant Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/Attic/libpng-1.0.15.ebuild,v 1.3 2003/01/16 17:06:58 seemant Exp $
4
5inherit flag-o-matic eutils
4 6
5S=${WORKDIR}/${P} 7S=${WORKDIR}/${P}
6DESCRIPTION="Portable Networks Graphics library." 8DESCRIPTION="Portable Networks Graphics library."
7SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" 9SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
8HOMEPAGE="http://www.libpng.org/" 10HOMEPAGE="http://www.libpng.org/"
14 16
15src_unpack() { 17src_unpack() {
16 unpack ${A} 18 unpack ${A}
17 cd ${S} 19 cd ${S}
18 20
19 patch -p1 < ${FILESDIR}/${P}-gentoo.diff 21 epatch ${FILESDIR}/${P}-gentoo.diff
22
23 replace-flags "-march=k6-3" "-march=i586"
24 replace-flags "-march=k6-2" "-march=i586"
25 replace-flags "-march=k6" "-march=i586"
20 26
21 sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \ 27 sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
22 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \ 28 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
23 -e "s:prefix=/usr:prefix=${D}/usr:" \ 29 -e "s:prefix=/usr:prefix=${D}/usr:" \
24 -e "s/-O3/${CFLAGS}/" \ 30 -e "s/-O3/${CFLAGS}/" \
25 scripts/makefile.linux > Makefile 31 scripts/makefile.linux > Makefile
26
27} 32}
28 33
29src_compile() { 34src_compile() {
30 make || die 35 make || die
31} 36}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20