1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)"
8 HOMEPAGE="https://www.kraxel.org/blog/linux/fbida/"
10 https://www.kraxel.org/releases/${PN}/${P}.tar.gz
11 mirror://gentoo/ida.png.bz2
15 KEYWORDS="~alpha amd64 arm hppa ppc ppc64 sparc x86"
16 IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp"
24 >=media-libs/fontconfig-2.2
25 >=media-libs/freetype-2.0
31 x11-libs/cairo[opengl]
33 curl? ( net-misc/curl )
34 gif? ( media-libs/giflib:= )
35 lirc? ( app-misc/lirc )
36 png? ( media-libs/libpng:* )
37 scanner? ( media-gfx/sane-backends )
38 tiff? ( media-libs/tiff:* )
39 webp? ( media-libs/libwebp )
41 >=x11-libs/motif-2.3:0
50 X? ( x11-base/xorg-proto )
56 app-text/ghostscript-gpl
62 "${FILESDIR}"/ida-desktop.patch \
63 "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch \
64 "${FILESDIR}"/${PN}-2.10-fprintf-format.patch
73 # Let autoconf do its job and then fix things to build fbida
74 # according to our specifications
82 use ${useflag} && option="yes"
85 -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \
86 "${S}/Make.config" || die
90 gentoo_fbida curl LIBCURL
91 gentoo_fbida fbcon LINUX_FB_H
92 gentoo_fbida gif LIBUNGIF
93 gentoo_fbida lirc LIBLIRC
94 gentoo_fbida ghostscript LIBTIFF
95 gentoo_fbida png LIBPNG
96 gentoo_fbida scanner LIBSANE
97 gentoo_fbida tiff LIBTIFF
98 gentoo_fbida webp LIBWEBP
114 if use fbcon && ! use ghostscript; then
116 "${D}"/usr/bin/fbgs \
117 "${D}"/usr/share/man/man1/fbgs.1 \
122 doicon "${WORKDIR}"/ida.png
123 domenu desktop/ida.desktop