/[gentoo-x86]/media-gfx/fbv/fbv-1.0b.ebuild
Gentoo

Contents of /media-gfx/fbv/fbv-1.0b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sun Mar 4 09:16:22 2012 UTC (3 years ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +6 -3 lines
Fix crosscompilation, bug #349128 by  Stuart Longland.

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/fbv/fbv-1.0b.ebuild,v 1.15 2011/09/14 11:31:48 ssuominen Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="simple program to view pictures on a linux framebuffer device"
9 HOMEPAGE="http://freshmeat.net/projects/fbv/"
10 SRC_URI="http://s-tech.elsat.net.pl/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 arm ~ppc ppc64 sh x86"
15 IUSE="gif jpeg png"
16
17 RDEPEND="gif? ( media-libs/giflib )
18 jpeg? ( virtual/jpeg )
19 png? ( media-libs/libpng )"
20 DEPEND="${RDEPEND}"
21
22 src_prepare() {
23 epatch \
24 "${FILESDIR}"/oob-segfault-fbv-${PV}.diff \
25 "${FILESDIR}"/${P}-libpng15.patch \
26 "${FILESDIR}"/${P}-cc.patch
27
28 sed -i -e 's:-lungif:-lgif:g' configure Makefile || die
29 }
30
31 src_configure() {
32 local myconf="--without-bmp"
33
34 use png || myconf="${myconf} --without-libpng"
35 use gif || myconf="${myconf} --without-libungif"
36 use jpeg || myconf="${myconf} --without-libjpeg"
37
38 ./configure \
39 --cc="$(tc-getCC)" \
40 --libs="${LDFLAGS}" \
41 --prefix=/usr \
42 --mandir=/usr/share/man \
43 --infodir=/usr/share/info \
44 ${myconf} || die
45 }
46
47 src_compile() {
48 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
49 }
50
51 src_install() {
52 dobin fbv
53 doman fbv.1
54 dodoc ChangeLog README TODO VERSION
55 }

  ViewVC Help
Powered by ViewVC 1.1.20