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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Dec 20 23:34:52 2002 UTC (11 years, 8 months ago) by foser
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
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 scripts/makefile.linux > Makefile
22
23 einfo "${LDFLAGS}"
24 emake || die
25 }
26
27 src_install() {
28 dodir /usr/{include,lib}
29 dodir /usr/share/man
30 make \
31 DESTDIR=${D} \
32 MANPATH=/usr/share/man \
33 install || die
34
35 # rm ${D}/usr/lib/libpng.so
36 # rm ${D}/usr/lib/libpng.a
37 # rm ${D}/usr/include/png.h
38 # rm ${D}/usr/include/pngconf.h
39
40 doman *.[35]
41 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
42 }
43
44 pkg_postinst() {
45 # the libpng authors really screwed around between 1.2.1 and 1.2.3
46 [ -f /usr/lib/libpng.so.3.1.2.1 ] && rm /usr/lib/libpng.so.3.1.2.1
47 }

  ViewVC Help
Powered by ViewVC 1.1.20