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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri May 14 00:55:39 2004 UTC (10 years, 7 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +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.0.15-r1.ebuild,v 1.4 2004/03/19 07:56:04 mr_bones_ Exp $
4
5 inherit flag-o-matic eutils
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Portable Networks Graphics library."
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10 HOMEPAGE="http://www.libpng.org/"
11 SLOT="1.0"
12 LICENSE="as-is"
13 KEYWORDS="x86 ~ppc ~sparc amd64"
14
15 DEPEND=">=sys-libs/zlib-1.1.3-r2"
16
17 src_unpack() {
18 unpack ${A}
19 cd ${S}
20
21 epatch ${FILESDIR}/${P}-gentoo.diff
22
23 replace-flags "-march=k6-3" "-march=i586"
24 replace-flags "-march=k6-2" "-march=i586"
25 replace-flags "-march=k6" "-march=i586"
26
27 sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
28 -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
29 -e "s:prefix=/usr:prefix=${D}/usr:" \
30 -e "s:-O3:${CFLAGS}:" \
31 scripts/makefile.linux > Makefile
32 }
33
34 src_compile() {
35 make || die
36 }
37
38 src_install() {
39 dodir /usr/{include,lib}
40 make install prefix=${D}/usr || die
41
42 newman libpngpf.3 libpngpf-10.3
43 newman libpng.3 libpng-10.3
44 newman png.5 png-10.5
45
46 # remove stuffs so that libpng-1.2 is the system default
47 rm ${D}/usr/lib/pkgconfig/libpng.pc
48 rm ${D}/usr/bin/libpng-config
49 rm ${D}/usr/lib/libpng.{a,so}
50 rm ${D}/usr/include/{png.h,pngconf.h,libpng}
51 rm -rf ${D}/usr/man
52
53 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
54 }
55
56 pkg_postinst() {
57 einfo "Please note:"
58 einfo "previous versions of libpng-1.0 series were incorrectly overwriting png.h symlink"
59 einfo "and libpng.pc from libpng-1.2.x installation."
60 einfo "This might cause removal of png.h by autoclean after you updated libpng-1.0 to 1.0.15"
61 einfo ""
62 einfo "If you experience problems compiling other packages with error message complaining"
63 einfo "about missing png.h, please remerge libpng-1.2.5 manually"
64
65 }

  ViewVC Help
Powered by ViewVC 1.1.20