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

Contents of /media-libs/libpng/libpng-1.0.12-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri May 14 00:55:39 2004 UTC (10 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
  Add small patch from netbsd #49263 by Anders Rune Jensen. Re-add the
  flag-o-matic stuff for k6 cpus and gcc-3.2/3.3

1 # Copyright 1999-2004 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.12-r2.ebuild,v 1.4 2004/03/19 07:56:04 mr_bones_ Exp $
4
5 inherit eutils
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Portable Network Graphics library"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10 HOMEPAGE="http://www.libpng.org/"
11
12 SLOT="1.0"
13 LICENSE="as-is"
14 KEYWORDS="x86 ppc sparc "
15
16 DEPEND=">=sys-libs/zlib-1.1.3-r2"
17
18 src_unpack() {
19 unpack ${A}
20 cd ${S}
21
22 epatch ${FILESDIR}/${P}-gentoo.diff
23
24 sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
25 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
26 -e "s:prefix=/usr:prefix=${D}/usr:" \
27 -e "s:-O3:${CFLAGS}:" \
28 scripts/makefile.linux > Makefile
29 }
30
31 src_compile() {
32 make || die
33 }
34
35 src_install() {
36 dodir /usr/{include,lib}
37 make install prefix=${D}/usr || die
38 doman *.[35]
39 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
40 }

  ViewVC Help
Powered by ViewVC 1.1.20