1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils git-r3 toolchain-funcs
7 DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)"
8 HOMEPAGE="https://www.kraxel.org/blog/linux/fbida/"
10 git://git.kraxel.org/fbida
13 mirror://gentoo/ida.png.bz2
18 IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp"
26 >=media-libs/fontconfig-2.2
27 >=media-libs/freetype-2.0
33 x11-libs/cairo[opengl]
35 curl? ( net-misc/curl )
36 gif? ( media-libs/giflib:= )
37 lirc? ( app-misc/lirc )
38 png? ( media-libs/libpng:* )
39 scanner? ( media-gfx/sane-backends )
40 tiff? ( media-libs/tiff:* )
41 webp? ( media-libs/libwebp )
43 >=x11-libs/motif-2.3:0
52 X? ( x11-base/xorg-proto )
58 app-text/ghostscript-gpl
69 "${FILESDIR}"/ida-desktop.patch \
70 "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch \
71 "${FILESDIR}"/${PN}-2.10-fprintf-format.patch
82 # Let autoconf do its job and then fix things to build fbida
83 # according to our specifications
91 use ${useflag} && option="yes"
94 -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \
95 "${S}/Make.config" || die
99 gentoo_fbida curl LIBCURL
100 gentoo_fbida fbcon LINUX_FB_H
101 gentoo_fbida gif LIBUNGIF
102 gentoo_fbida lirc LIBLIRC
103 gentoo_fbida ghostscript LIBTIFF
104 gentoo_fbida png LIBPNG
105 gentoo_fbida scanner LIBSANE
106 gentoo_fbida tiff LIBTIFF
107 gentoo_fbida webp LIBWEBP
123 if use fbcon && ! use ghostscript; then
125 "${ED}"/usr/bin/fbgs \
126 "${ED}"/usr/share/man/man1/fbgs.1 \
131 doicon "${WORKDIR}"/ida.png
132 domenu desktop/ida.desktop