diff options
author | Martin Holzer <mholzer@gentoo.org> | 2003-10-28 14:20:52 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2003-10-28 14:20:52 +0000 |
commit | 0376e0aaf0a9d29f94ea51ba7f5eaa6433946847 (patch) | |
tree | 04aab03882225cf86ec271a074d2e99a4564b6c1 /media-gfx/xv/xv-3.10a-r6.ebuild | |
parent | Closing #29253. (diff) | |
download | historical-0376e0aaf0a9d29f94ea51ba7f5eaa6433946847.tar.gz historical-0376e0aaf0a9d29f94ea51ba7f5eaa6433946847.tar.bz2 historical-0376e0aaf0a9d29f94ea51ba7f5eaa6433946847.zip |
Closing #29253.
Diffstat (limited to 'media-gfx/xv/xv-3.10a-r6.ebuild')
-rw-r--r-- | media-gfx/xv/xv-3.10a-r6.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/media-gfx/xv/xv-3.10a-r6.ebuild b/media-gfx/xv/xv-3.10a-r6.ebuild new file mode 100644 index 000000000000..c7f6ea5c0f88 --- /dev/null +++ b/media-gfx/xv/xv-3.10a-r6.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2003 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-r6.ebuild,v 1.1 2003/10/28 14:20:47 mholzer Exp $ + +inherit ccc flag-o-matic eutils + +DESCRIPTION="An interactive image manipulation program for X which can deal with a wide variety of image formats" +HOMEPAGE="http://www.trilon.com/xv/index.html" +SRC_URI="ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64" +IUSE="jpeg tiff png" + +DEPEND="virtual/x11 + jpeg? ( >=media-libs/jpeg-6b ) + tiff? ( >=media-libs/tiff-3.5 ) + png? ( >=media-libs/libpng-1.2 >=sys-libs/zlib-1.1.4 )" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-enhanced-Nu.patch || die + epatch ${FILESDIR}/${P}-gentoo-Nu.patch || die + [ `use ppc` ] && epatch ${FILESDIR}/${P}-ppc.patch +} + +src_compile() { + [ -z `use jpeg` ] \ + && sed -i -e "s:JPEGLIB = -ljpeg:JPEGLIB =:" Makefile \ + || append-flags -DDOJPEG + [ -z `use png` ] \ + && sed -i -e "s:PNGLIB = -lpng:PNGLIB =:" Makefile \ + && sed -i -e "s:ZLIBLIB = -lz:ZLIBLIB =:" Makefile \ + || append-flags -DDOPNG + [ -z `use tiff` ] \ + && sed -i -e "s:TIFFLIB = -ltiff:TIFFLIB =:" Makefile \ + || append-flags -DDOTIFF + sed -i "s:CCOPTS = -O:CCOPTS = ${CFLAGS}:" Makefile + sed -i "s:COPTS=\t-O:COPTS= ${CFLAGS}:" tiff/Makefile + is-ccc && replace-cc-hardcode + 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 +} |