# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/fbv/fbv-1.0b.ebuild,v 1.2 2005/01/30 08:31:51 dragonheart Exp $ inherit toolchain-funcs eutils DESCRIPTION="simple program to view pictures on a linux framebuffer device" HOMEPAGE="http://s-tech.elsat.net.pl/fbv/" SRC_URI="http://s-tech.elsat.net.pl/fbv//${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc64" IUSE="png gif jpeg" DEPEND="gif? ( media-libs/libungif ) jpeg? ( media-libs/jpeg ) png? ( media-libs/libpng )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/oob-segfault-fbv-${PV}.diff || die "bad patch" } src_compile() { local myconf use png || myconf="${myconf} --without-libpng" use gif || myconf="${myconf} --without-libungif" use jpeg || myconf="${myconf} --without-libjpeg" ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ ${myconf} || die "econf failed" emake CC="$(tc-getCC) ${CFLAGS}" || die } src_install() { dobin fbv || die doman fbv.1 dodoc ChangeLog README TODO VERSION }