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