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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jan 16 17:08:12 2003 UTC (11 years, 11 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
removed older ebuilds

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.4.ebuild,v 1.9 2002/12/22 21:21:37 mholzer Exp $
4
5
6 S=${WORKDIR}/${P}
7 DESCRIPTION="libpng"
8 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
9 HOMEPAGE="http://www.libpng.org/"
10 SLOT="1.2"
11 LICENSE="as-is"
12 KEYWORDS="x86 ppc sparc alpha"
13
14 DEPEND=">=sys-libs/zlib-1.1.4"
15
16 src_compile() {
17 sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
18 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
19 -e "s/-O3/${CFLAGS}/" \
20 -e "s:prefix=/usr/local:prefix=/usr:" \
21 scripts/makefile.linux > Makefile
22
23 emake || die
24 }
25
26 src_install() {
27 dodir /usr/{include,lib}
28 dodir /usr/share/man
29 make \
30 DESTDIR=${D} \
31 MANPATH=/usr/share/man \
32 install || die
33
34 # rm ${D}/usr/lib/libpng.so
35 # rm ${D}/usr/lib/libpng.a
36 # rm ${D}/usr/include/png.h
37 # rm ${D}/usr/include/pngconf.h
38
39 doman *.[35]
40 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
41 }
42
43
44 pkg_postinst() {
45
46 # the libpng authors really screwed around between 1.2.1 and 1.2.3
47
48 if [ -f /usr/lib/libpng.so.3.1.2.1 ]
49 then
50 rm /usr/lib/libpng.so.3.1.2.1
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20