summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-01-21 21:22:10 +0000
committerMike Frysinger <vapier@gentoo.org>2003-01-21 21:22:10 +0000
commit1ddedf24af30b30f2f634ce8ccb257f73b459ffc (patch)
tree0abc27d0b9679deba00870b5a137fdeb3d883a09 /media-libs/libpng
parentfix to prevent it from building mozilla bundings when mozilla is not in USE (diff)
downloadgentoo-2-1ddedf24af30b30f2f634ce8ccb257f73b459ffc.tar.gz
gentoo-2-1ddedf24af30b30f2f634ce8ccb257f73b459ffc.tar.bz2
gentoo-2-1ddedf24af30b30f2f634ce8ccb257f73b459ffc.zip
fixed doman #14303
Diffstat (limited to 'media-libs/libpng')
-rw-r--r--media-libs/libpng/ChangeLog5
-rw-r--r--media-libs/libpng/files/digest-libpng-1.2.5-r41
-rw-r--r--media-libs/libpng/libpng-1.2.5-r4.ebuild54
3 files changed, 59 insertions, 1 deletions
diff --git a/media-libs/libpng/ChangeLog b/media-libs/libpng/ChangeLog
index edae4c485574..d46848ad9a79 100644
--- a/media-libs/libpng/ChangeLog
+++ b/media-libs/libpng/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/libpng
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/ChangeLog,v 1.22 2003/01/20 00:11:11 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/ChangeLog,v 1.23 2003/01/21 21:22:10 vapier Exp $
+
+ 21 Jan 2003; Mike Frysinger <vapier@gentoo.org> libpng-1.2.5-r4.ebuild :
+ Fixed 'doman' so that in doesn't mistakenly install library files.
19 Jan 2003; George Shapovalov <george@gentoo.org> libpng-1.2.5-r3.ebuild, libpng-1.0.15.ebuild :
update to libpng-1.0.15 may cause autocleaning of png.h if user did not remerge libpng-1.2.5 after
diff --git a/media-libs/libpng/files/digest-libpng-1.2.5-r4 b/media-libs/libpng/files/digest-libpng-1.2.5-r4
new file mode 100644
index 000000000000..794c1d47d26f
--- /dev/null
+++ b/media-libs/libpng/files/digest-libpng-1.2.5-r4
@@ -0,0 +1 @@
+MD5 3fc28af730f12ace49b14568de4ad934 libpng-1.2.5.tar.bz2 378030
diff --git a/media-libs/libpng/libpng-1.2.5-r4.ebuild b/media-libs/libpng/libpng-1.2.5-r4.ebuild
new file mode 100644
index 000000000000..4337e27078c0
--- /dev/null
+++ b/media-libs/libpng/libpng-1.2.5-r4.ebuild
@@ -0,0 +1,54 @@
+# 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.2.5-r4.ebuild,v 1.1 2003/01/21 21:22:10 vapier Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Portable Network Graphics library"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+HOMEPAGE="http://www.libpng.org/"
+
+SLOT="1.2"
+LICENSE="as-is"
+KEYWORDS="x86 ppc sparc alpha"
+
+DEPEND="sys-libs/zlib"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-gentoo.diff
+
+ replace-flags "-march=k6-3" "-march=i586"
+ replace-flags "-march=k6-2" "-march=i586"
+ replace-flags "-march=k6" "-march=i586"
+
+ sed -e "s:ZLIBLIB=.*:ZLIBLIB=/usr/lib:" \
+ -e "s:ZLIBINC=.*:ZLIBINC=/usr/include:" \
+ -e "s:-O3:${CFLAGS}:" \
+ -e "s:prefix=/usr/local:prefix=/usr:" \
+ -e "s:OBJSDLL = :OBJSDLL = -lz -lm :" \
+ scripts/makefile.linux > Makefile
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ dodir /usr/{include,lib}
+ dodir /usr/share/man
+ make \
+ DESTDIR=${D} \
+ MANPATH=/usr/share/man \
+ install || die
+
+ doman libpng.3 libpngpf.3 png.5
+ dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
+}
+
+pkg_postinst() {
+ # the libpng authors really screwed around between 1.2.1 and 1.2.3
+ [ -f /usr/lib/libpng.so.3.1.2.1 ] && rm /usr/lib/libpng.so.3.1.2.1
+}