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

Contents of /media-libs/libpng/libpng-1.2.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 20 23:34:52 2002 UTC (11 years, 7 months ago) by foser
Branch: MAIN
bugfix revision

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.2.5.ebuild,v 1.5 2002/12/15 10:44:20 bjb Exp $
4
5 S=${WORKDIR}/${P}
6 DESCRIPTION="Portable Network Graphics library"
7 SRC_URI="ftp://swrinde.nde.swri.edu/pub/png/src/${P}.tar.gz"
8 HOMEPAGE="http://www.libpng.org/"
9
10 SLOT="1.2"
11 LICENSE="as-is"
12 KEYWORDS="x86 ~ppc ~sparc ~alpha"
13
14 DEPEND="sys-libs/zlib"
15
16 src_compile() {
17 sed -e "s:ZLIBLIB=.*:ZLIBLIB=/usr/lib:" \
18 -e "s:ZLIBINC=.*:ZLIBINC=/usr/include:" \
19 -e "s/-O3/${CFLAGS}/" \
20 -e "s:prefix=/usr/local:prefix=/usr:" \
21 -e "s:OBJSDLL = :OBJSDLL = -lz -lm :" \
22 scripts/makefile.linux > Makefile
23
24 einfo "${LDFLAGS}"
25 emake || die
26 }
27
28 src_install() {
29 dodir /usr/{include,lib}
30 dodir /usr/share/man
31 make \
32 DESTDIR=${D} \
33 MANPATH=/usr/share/man \
34 install || die
35
36 doman *.[35]
37 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
38 }
39
40 pkg_postinst() {
41 # the libpng authors really screwed around between 1.2.1 and 1.2.3
42 [ -f /usr/lib/libpng.so.3.1.2.1 ] && rm /usr/lib/libpng.so.3.1.2.1
43 }

  ViewVC Help
Powered by ViewVC 1.1.20