/[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.2 - (show annotations) (download)
Thu Jan 16 13:13:15 2003 UTC (11 years, 8 months ago) by seemant
Branch: MAIN
Changes since 1.1: +2 -2 lines
moved to stable

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.1 2003/01/14 08:17:27 seemant Exp $
4
5 S=${WORKDIR}/${P}
6 DESCRIPTION="Portable Networks Graphics library."
7 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
8 HOMEPAGE="http://www.libpng.org/"
9 SLOT="1.0"
10 LICENSE="as-is"
11 KEYWORDS="x86 ~ppc ~sparc"
12
13 DEPEND=">=sys-libs/zlib-1.1.3-r2"
14
15 src_unpack() {
16 unpack ${A}
17 cd ${S}
18
19 patch -p1 < ${FILESDIR}/${P}-gentoo.diff
20
21 sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
22 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
23 -e "s:prefix=/usr:prefix=${D}/usr:" \
24 -e "s/-O3/${CFLAGS}/" \
25 scripts/makefile.linux > Makefile
26
27 }
28
29 src_compile() {
30 make || die
31 }
32
33 src_install() {
34 dodir /usr/{include,lib}
35 make install prefix=${D}/usr || die
36
37 newman libpngpf.3 libpngpf-10.3
38 newman libpng.3 libpng-10.3
39 newman png.5 png-10.5
40
41 # remove stuffs so that libpng-1.2 is the system default
42 rm ${D}/usr/bin/libpng-config
43 rm ${D}/usr/lib/libpng.{a,so}
44 rm ${D}/usr/include/{png.h,pngconf.h,libpng}
45 rm -rf ${D}/usr/man
46
47 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
48 }

  ViewVC Help
Powered by ViewVC 1.1.20