/[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.3 - (show annotations) (download)
Sun Dec 22 22:12:30 2002 UTC (11 years, 11 months ago) by foser
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.2: +5 -1 lines
bugfix

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-r1.ebuild,v 1.2 2002/12/22 21:21:37 mholzer Exp $
4
5 inherit flag-o-matic
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Portable Network Graphics library"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10 HOMEPAGE="http://www.libpng.org/"
11
12 SLOT="1.2"
13 LICENSE="as-is"
14 KEYWORDS="x86 ~ppc ~sparc ~alpha"
15
16 DEPEND="sys-libs/zlib"
17
18 src_compile() {
19 replace-flags "-march=k6*" "-march=i586"
20
21 sed -e "s:ZLIBLIB=.*:ZLIBLIB=/usr/lib:" \
22 -e "s:ZLIBINC=.*:ZLIBINC=/usr/include:" \
23 -e "s/-O3/${CFLAGS}/" \
24 -e "s:prefix=/usr/local:prefix=/usr:" \
25 -e "s:OBJSDLL = :OBJSDLL = -lz -lm :" \
26 scripts/makefile.linux > Makefile
27
28 einfo "${LDFLAGS}"
29 emake || die
30 }
31
32 src_install() {
33 dodir /usr/{include,lib}
34 dodir /usr/share/man
35 make \
36 DESTDIR=${D} \
37 MANPATH=/usr/share/man \
38 install || die
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