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

Contents of /media-libs/libpng/libpng-1.0.15-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Aug 6 12:19:07 2004 UTC (10 years, 1 month ago) by foser
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
remove 1.0

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.0.15-r2.ebuild,v 1.3 2004/06/24 23:13:27 agriffis Exp $
4
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.0"
13 KEYWORDS="x86 ppc sparc amd64"
14 IUSE=""
15
16 DEPEND=">=sys-libs/zlib-1.1.3-r2"
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=../zlib:ZLIBLIB=/usr/lib:" \
29 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
30 -e "s:prefix=/usr:prefix=${D}/usr:" \
31 -e "s:-O3:${CFLAGS}:" \
32 scripts/makefile.linux > Makefile
33 }
34
35 src_compile() {
36 make || die
37 }
38
39 src_install() {
40 dodir /usr/{include,lib}
41 make install prefix=${D}/usr || die
42
43 newman libpngpf.3 libpngpf-10.3
44 newman libpng.3 libpng-10.3
45 newman png.5 png-10.5
46
47 # remove stuffs so that libpng-1.2 is the system default
48 rm ${D}/usr/lib/pkgconfig/libpng.pc
49 rm ${D}/usr/bin/libpng-config
50 rm ${D}/usr/lib/libpng.{a,so}
51 rm ${D}/usr/include/{png.h,pngconf.h,libpng}
52 rm -rf ${D}/usr/man
53
54 dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
55 }
56
57 pkg_postinst() {
58 einfo "Please note:"
59 einfo "previous versions of libpng-1.0 series were incorrectly overwriting png.h symlink"
60 einfo "and libpng.pc from libpng-1.2.x installation."
61 einfo "This might cause removal of png.h by autoclean after you updated libpng-1.0 to 1.0.15"
62 einfo ""
63 einfo "If you experience problems compiling other packages with error message complaining"
64 einfo "about missing png.h, please remerge libpng-1.2.5 manually"
65 }

  ViewVC Help
Powered by ViewVC 1.1.20