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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri May 14 00:55:39 2004 UTC (10 years, 4 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
  Add small patch from netbsd #49263 by Anders Rune Jensen. Re-add the
  flag-o-matic stuff for k6 cpus and gcc-3.2/3.3

1 # Copyright 1999-2004 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-r3.ebuild,v 1.3 2004/03/19 07:56:04 mr_bones_ Exp $
4
5 inherit flag-o-matic eutils
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_unpack() {
19 unpack ${A}
20 cd ${S}
21
22 epatch ${FILESDIR}/${P}-gentoo.diff
23
24 replace-flags "-march=k6-3" "-march=i586"
25 replace-flags "-march=k6-2" "-march=i586"
26 replace-flags "-march=k6" "-march=i586"
27
28 sed -e "s:ZLIBLIB=.*:ZLIBLIB=/usr/lib:" \
29 -e "s:ZLIBINC=.*:ZLIBINC=/usr/include:" \
30 -e "s:-O3:${CFLAGS}:" \
31 -e "s:prefix=/usr/local:prefix=/usr:" \
32 -e "s:OBJSDLL = :OBJSDLL = -lz -lm :" \
33 scripts/makefile.linux > Makefile
34
35 }
36
37 src_compile() {
38 emake || die
39 }
40
41 src_install() {
42 dodir /usr/{include,lib}
43 dodir /usr/share/man
44 make \
45 DESTDIR=${D} \
46 MANPATH=/usr/share/man \
47 install || die
48
49 doman *.[35]
50 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
51 }
52
53 pkg_postinst() {
54 # the libpng authors really screwed around between 1.2.1 and 1.2.3
55 [ -f /usr/lib/libpng.so.3.1.2.1 ] && rm /usr/lib/libpng.so.3.1.2.1
56 }

  ViewVC Help
Powered by ViewVC 1.1.20