summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libpng/libpng-1.2.4.ebuild')
-rw-r--r--media-libs/libpng/libpng-1.2.4.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/media-libs/libpng/libpng-1.2.4.ebuild b/media-libs/libpng/libpng-1.2.4.ebuild
new file mode 100644
index 000000000000..0f072bef8279
--- /dev/null
+++ b/media-libs/libpng/libpng-1.2.4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.4.ebuild,v 1.1 2002/07/08 15:52:23 stroke Exp $
+
+# Maintainer: Desktop Team <desktop@gentoo.org>
+# Author: Achim Gottinger <achim@gentoo.org>, Daniel Robbins <drobbins@gentoo.org>
+
+S=${WORKDIR}/${P}
+DESCRIPTION="libpng"
+SRC_URI="ftp://swrinde.nde.swri.edu/pub/png/src/${P}.tar.gz"
+HOMEPAGE="http://www.libpng.org/"
+SLOT="1.2"
+DEPEND=">=sys-libs/zlib-1.1.4"
+
+src_compile() {
+ sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
+ -e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
+ -e "s/-O3/${CFLAGS}/" \
+ -e "s:prefix=/usr/local:prefix=/usr:" \
+ scripts/makefile.linux > Makefile
+
+ emake || die
+}
+
+src_install() {
+ dodir /usr/{include,lib}
+ dodir /usr/share/man
+ make \
+ DESTDIR=${D} \
+ MANPATH=/usr/share/man \
+ install || die
+
+# rm ${D}/usr/lib/libpng.so
+# rm ${D}/usr/lib/libpng.a
+# rm ${D}/usr/include/png.h
+# rm ${D}/usr/include/pngconf.h
+
+ doman *.[35]
+ dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
+}