summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2002-11-03 20:31:43 +0000
committerRyan Phillips <rphillips@gentoo.org>2002-11-03 20:31:43 +0000
commitd650d90c45e836f4612876aa8a93fcd207eef4fa (patch)
tree64a009885557f8276d8aecd90f570029cfd66e80 /media-gfx/xv
parentadd pathc to make it actually cmopile. it\'s from current kde cvs. (diff)
downloadgentoo-2-d650d90c45e836f4612876aa8a93fcd207eef4fa.tar.gz
gentoo-2-d650d90c45e836f4612876aa8a93fcd207eef4fa.tar.bz2
gentoo-2-d650d90c45e836f4612876aa8a93fcd207eef4fa.zip
Added Bret Towe's sed statements to produce an optimized build. Fixes #6756
Diffstat (limited to 'media-gfx/xv')
-rw-r--r--media-gfx/xv/ChangeLog8
-rw-r--r--media-gfx/xv/files/digest-xv-3.10a-r32
-rw-r--r--media-gfx/xv/xv-3.10a-r3.ebuild65
3 files changed, 74 insertions, 1 deletions
diff --git a/media-gfx/xv/ChangeLog b/media-gfx/xv/ChangeLog
index 2cc24bd8fad8..85f19a40386c 100644
--- a/media-gfx/xv/ChangeLog
+++ b/media-gfx/xv/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/xv
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/ChangeLog,v 1.7 2002/10/13 16:37:52 doctomoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/ChangeLog,v 1.8 2002/11/03 20:31:43 rphillips Exp $
+
+*xv-3.10a-r3 (03 Nov 2002)
+
+ 03 Nov 2002; Ryan Phillips <rphillips@gentoo.org> xv-3.10a-r3.ebuild :
+
+ Added Bret Towes sed statements to produce an optimized build. Fixes #6756
*xv-3.10a-r2 (05 Jun 2002)
diff --git a/media-gfx/xv/files/digest-xv-3.10a-r3 b/media-gfx/xv/files/digest-xv-3.10a-r3
new file mode 100644
index 000000000000..c1b66a0fab78
--- /dev/null
+++ b/media-gfx/xv/files/digest-xv-3.10a-r3
@@ -0,0 +1,2 @@
+MD5 2d4fbeec1561304362781cc8e2f7f72d xv-3.10a.tar.gz 2259124
+MD5 df8d702d9c23f7f6c70e84e4d1d80da2 xv-png-patch.tar.bz2 97733
diff --git a/media-gfx/xv/xv-3.10a-r3.ebuild b/media-gfx/xv/xv-3.10a-r3.ebuild
new file mode 100644
index 000000000000..4deff08176e4
--- /dev/null
+++ b/media-gfx/xv/xv-3.10a-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r3.ebuild,v 1.1 2002/11/03 20:31:43 rphillips Exp $
+
+IUSE="png"
+
+S=${WORKDIR}/${P}
+DESCRIPTION="An interactive image manipulation program for X which can deal with a wide variety of image formats"
+SRC_URI="ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz
+ png? http://www.ibiblio.org/gentoo/distfiles/xv-png-patch.tar.bz2"
+HOMEPAGE="http://www.trilon.com/xv/index.html"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64"
+
+DEPEND="virtual/x11
+ png? ( media-libs/jpeg
+ media-libs/tiff
+ media-libs/libpng
+ >=sys-libs/zlib-1.1.4 )"
+
+PATCHDIR=${WORKDIR}/patches
+
+src_unpack() {
+ unpack ${A}
+
+ use png && ( \
+ cd ${S}
+ patch -p1 < ${WORKDIR}/${P}-naz-gentoo.patch || die
+ )
+
+ if [ `use ppc` ] && [ -z `use png` ]
+ then
+ cd ${S}
+ patch -p1 < ${FILESDIR}/xv-${PV}-ppc.patch || die
+ fi
+}
+
+src_compile() {
+ mv Makefile Makefile.orig
+ sed -e "s:CCOPTS = -O:CCOPTS = ${CFLAGS}:" \
+ Makefile.orig > Makefile
+ cd tiff
+ mv Makefile Makefile.orig
+ sed -e "s:COPTS=\t-O:COPTS= ${CFLAGS}:" \
+ Makefile.orig > Makefile
+ cd ..
+ make || die
+}
+
+src_install () {
+
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+
+ make \
+ DESTDIR=${D} \
+ BINDIR=${D}/usr/bin \
+ MANDIR=${D}/usr/share/man/man1 \
+ LIBDIR=${D}/usr/lib \
+ install || die
+
+ dodoc README INSTALL CHANGELOG BUGS IDEAS docs/*.ps docs/*.doc
+}