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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Wed Jul 7 14:37:03 2004 UTC (10 years, 5 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
security patch #56307

1 agriffis 1.2 # Copyright 1999-2004 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.5-r6.ebuild,v 1.2 2004/06/24 23:13:27 agriffis Exp $
4 vapier 1.1
5     inherit flag-o-matic eutils gcc
6    
7     DESCRIPTION="Portable Network Graphics library"
8     HOMEPAGE="http://www.libpng.org/"
9     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10    
11     LICENSE="as-is"
12     SLOT="1.2"
13     KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390"
14     IUSE=""
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     [ "`gcc-version`" == "3.2" ] && replace-cpu-flags i586 k6 k6-2 k6-3
25     [ "`gcc-version`" == "3.3" ] && replace-cpu-flags i586 k6 k6-2 k6-3
26    
27     sed \
28     -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     src_compile() {
37     emake CC="$(gcc-getCC)" CXX="$(gcc-getCXX)" || die "Make failed"
38     }
39    
40     src_install() {
41     dodir /usr/{include,lib}
42     dodir /usr/share/man
43     einstall MANPATH=${D}/usr/share/man || die "Failed to install"
44    
45     doman libpng.3 libpngpf.3 png.5
46     dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
47     }
48    
49     pkg_postinst() {
50     # the libpng authors really screwed around between 1.2.1 and 1.2.3
51     [ -f ${ROOT}/usr/lib/libpng.so.3.1.2.1 ] && rm ${ROOT}/usr/lib/libpng.so.3.1.2.1
52     }

  ViewVC Help
Powered by ViewVC 1.1.20