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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jan 16 17:06:58 2003 UTC (11 years, 6 months ago) by seemant
Branch: MAIN
Changes since 1.2: +8 -3 lines
using epach and fixed 1.0.15's diff

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.0.15.ebuild,v 1.2 2003/01/16 13:13:15 seemant Exp $
4
5 inherit flag-o-matic eutils
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Portable Networks Graphics library."
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10 HOMEPAGE="http://www.libpng.org/"
11 SLOT="1.0"
12 LICENSE="as-is"
13 KEYWORDS="x86 ~ppc ~sparc"
14
15 DEPEND=">=sys-libs/zlib-1.1.3-r2"
16
17 src_unpack() {
18 unpack ${A}
19 cd ${S}
20
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"
26
27 sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
28 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
29 -e "s:prefix=/usr:prefix=${D}/usr:" \
30 -e "s/-O3/${CFLAGS}/" \
31 scripts/makefile.linux > Makefile
32 }
33
34 src_compile() {
35 make || die
36 }
37
38 src_install() {
39 dodir /usr/{include,lib}
40 make install prefix=${D}/usr || die
41
42 newman libpngpf.3 libpngpf-10.3
43 newman libpng.3 libpng-10.3
44 newman png.5 png-10.5
45
46 # remove stuffs so that libpng-1.2 is the system default
47 rm ${D}/usr/bin/libpng-config
48 rm ${D}/usr/lib/libpng.{a,so}
49 rm ${D}/usr/include/{png.h,pngconf.h,libpng}
50 rm -rf ${D}/usr/man
51
52 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
53 }

  ViewVC Help
Powered by ViewVC 1.1.20