diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2003-01-14 08:17:29 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2003-01-14 08:17:29 +0000 |
commit | 7bf61f7992cdcf7680df574d512904b4f664ce57 (patch) | |
tree | bcb1985db9ea68a0738d717314dd508b173619d4 /media-libs/libpng/libpng-1.0.15.ebuild | |
parent | small correction to some dodoc's (diff) | |
download | gentoo-2-7bf61f7992cdcf7680df574d512904b4f664ce57.tar.gz gentoo-2-7bf61f7992cdcf7680df574d512904b4f664ce57.tar.bz2 gentoo-2-7bf61f7992cdcf7680df574d512904b4f664ce57.zip |
version bump of libpng-10
Diffstat (limited to 'media-libs/libpng/libpng-1.0.15.ebuild')
-rw-r--r-- | media-libs/libpng/libpng-1.0.15.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/media-libs/libpng/libpng-1.0.15.ebuild b/media-libs/libpng/libpng-1.0.15.ebuild new file mode 100644 index 000000000000..51cfa291976e --- /dev/null +++ b/media-libs/libpng/libpng-1.0.15.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.0.15.ebuild,v 1.1 2003/01/14 08:17:27 seemant Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Portable Networks Graphics library." +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +HOMEPAGE="http://www.libpng.org/" +SLOT="1.0" +LICENSE="as-is" +KEYWORDS="~x86 ~ppc ~sparc" + +DEPEND=">=sys-libs/zlib-1.1.3-r2" + +src_unpack() { + unpack ${A} + cd ${S} + + patch -p1 < ${FILESDIR}/${P}-gentoo.diff + + sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \ + -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \ + -e "s:prefix=/usr:prefix=${D}/usr:" \ + -e "s/-O3/${CFLAGS}/" \ + scripts/makefile.linux > Makefile + +} + +src_compile() { + make || die +} + +src_install() { + dodir /usr/{include,lib} + make install prefix=${D}/usr || die + + newman libpngpf.3 libpngpf-10.3 + newman libpng.3 libpng-10.3 + newman png.5 png-10.5 + + # remove stuffs so that libpng-1.2 is the system default + rm ${D}/usr/bin/libpng-config + rm ${D}/usr/lib/libpng.{a,so} + rm ${D}/usr/include/{png.h,pngconf.h,libpng} + rm -rf ${D}/usr/man + + dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO +} |