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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Jul 16 05:15:27 2002 UTC (11 years, 11 months ago) by seemant
Branch: MAIN
Changes since 1.1: +2 -2 lines
keywords fixes

1 seemant 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3 seemant 1.2 # $Header: /home/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.3-r1.ebuild,v 1.1 2002/07/09 08:14:28 seemant Exp $
4 seemant 1.1
5     S=${WORKDIR}/${P}
6     DESCRIPTION="libpng"
7     SRC_URI="ftp://swrinde.nde.swri.edu/pub/png/src/${P}.tar.gz"
8     HOMEPAGE="http://www.libpng.org/"
9     SLOT="1.2"
10     LICENSE="as-is"
11 seemant 1.2 KEYWORDS="x86 ppc"
12 seemant 1.1
13     DEPEND=">=sys-libs/zlib-1.1.4"
14    
15     src_compile() {
16     sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
17     -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
18     -e "s/-O3/${CFLAGS}/" \
19     -e "s:prefix=/usr/local:prefix=/usr:" \
20     scripts/makefile.linux > Makefile
21    
22     emake || die
23     }
24    
25     src_install() {
26     dodir /usr/{include,lib}
27     dodir /usr/share/man
28     make \
29     DESTDIR=${D} \
30     MANPATH=/usr/share/man \
31     install || die
32    
33     # rm ${D}/usr/lib/libpng.so
34     # rm ${D}/usr/lib/libpng.a
35     # rm ${D}/usr/include/png.h
36     # rm ${D}/usr/include/pngconf.h
37    
38     doman *.[35]
39     dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
40     }
41    
42     pkg_postinst() {
43    
44     # compensate for an upstream screwup
45    
46     if [ -f /usr/lib/libpng.so.3.1.2.1 ]
47     then
48     rm -f /usr/lib/libpng.so.3.1.2.1
49     fi
50     }

  ViewVC Help
Powered by ViewVC 1.1.20