/[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.2 - (hide annotations) (download)
Sun Dec 22 21:21:37 2002 UTC (11 years, 3 months ago) by mholzer
Branch: MAIN
Changes since 1.1: +2 -2 lines
Changed SRC_URI to sf and .tar.gz to tar.bz2

1 foser 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 mholzer 1.2 # $Header: /home/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.5-r1.ebuild,v 1.1 2002/12/20 23:34:52 foser Exp $
4 foser 1.1
5     S=${WORKDIR}/${P}
6     DESCRIPTION="Portable Network Graphics library"
7 mholzer 1.2 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
8 foser 1.1 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