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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Fri May 14 00:55:39 2004 UTC (10 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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 mr_bones_ 1.6 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 seemant 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.7 # $Header: /home/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.0.15.ebuild,v 1.6 2004/03/19 07:56:04 mr_bones_ Exp $
4 seemant 1.3
5     inherit flag-o-matic eutils
6 seemant 1.1
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 seemant 1.2 KEYWORDS="x86 ~ppc ~sparc"
14 seemant 1.1
15     DEPEND=">=sys-libs/zlib-1.1.3-r2"
16    
17     src_unpack() {
18     unpack ${A}
19     cd ${S}
20    
21 seemant 1.3 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 seemant 1.1
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 seemant 1.5 -e "s:-O3:${CFLAGS}:" \
31 seemant 1.1 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 george 1.4
42 seemant 1.1 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/bin/libpng-config
48     rm ${D}/usr/lib/libpng.{a,so}
49     rm ${D}/usr/include/{png.h,pngconf.h,libpng}
50     rm -rf ${D}/usr/man
51 george 1.4
52 seemant 1.1 dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
53 george 1.4 }
54    
55     pkg_postinst() {
56     einfo "Please note:"
57     einfo "previous versions of libpng-1.0 series were incorrectly overwriting png.h symlink"
58     einfo "from libpng-1.2.x installation."
59     einfo "This might cause removal of png.h by autoclean after you updated libpng-1.0 to 1.0.15"
60     einfo ""
61     einfo "If you experience problems compiling other packages with error message complaining"
62     einfo "about missing png.h, please remerge libpng-1.2.5 manually"
63 seemant 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20