/[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.3 - (show annotations) (download)
Mon Jul 22 15:42:48 2002 UTC (12 years, 1 month ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
repoman'd

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.3-r1.ebuild,v 1.2 2002/07/16 05:15:27 seemant Exp $
4
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 KEYWORDS="x86 ppc"
12
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