/[gentoo-x86]/media-gfx/fbida/fbida-2.10.ebuild
Gentoo

Contents of /media-gfx/fbida/fbida-2.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 9 13:25:56 2015 UTC (3 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -2 lines
Fix building against media-libs/giflib-4.2* (bug #546202).

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/fbida/fbida-2.10.ebuild,v 1.1 2015/04/04 08:27:59 jer Exp $
4
5 EAPI=5
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)"
9 HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/"
10 SRC_URI="
11 http://www.kraxel.org/releases/${PN}/${P}.tar.gz
12 mirror://gentoo/ida.png.bz2
13 "
14 LICENSE="GPL-2 IJG"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86"
17 IUSE="curl fbcon +gif lirc pdf +png scanner +tiff X +webp"
18 REQUIRED_USE="
19 pdf? ( tiff )
20 "
21
22 RDEPEND="
23 !media-gfx/fbi
24 >=media-libs/fontconfig-2.2
25 >=media-libs/freetype-2.0
26 media-libs/libexif
27 curl? ( net-misc/curl )
28 gif? ( media-libs/giflib:= )
29 lirc? ( app-misc/lirc )
30 png? ( media-libs/libpng:* )
31 scanner? ( media-gfx/sane-backends )
32 tiff? ( media-libs/tiff:* )
33 virtual/jpeg:*
34 virtual/ttf-fonts
35 webp? ( media-libs/libwebp )
36 X? (
37 >=x11-libs/motif-2.3:0
38 x11-libs/libX11
39 x11-libs/libXpm
40 x11-libs/libXt
41 )
42 "
43
44 DEPEND="
45 ${RDEPEND}
46 X? ( x11-proto/xextproto x11-proto/xproto )
47 pdf? ( app-text/ghostscript-gpl )
48 "
49
50 src_prepare() {
51 epatch \
52 "${FILESDIR}"/ida-desktop.patch \
53 "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch
54
55 tc-export CC CPP
56 }
57
58 src_configure() {
59 # Let autoconf do its job and then fix things to build fbida
60 # according to our specifications
61 emake Make.config
62
63 gentoo_fbida() {
64 local useflag=${1}
65 local config=${2}
66
67 local option="no"
68 use ${useflag} && option="yes"
69
70 sed -i \
71 -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \
72 "${S}/Make.config" || die
73 }
74
75 gentoo_fbida X MOTIF
76 gentoo_fbida curl LIBCURL
77 gentoo_fbida fbcon LINUX_FB_H
78 gentoo_fbida gif LIBUNGIF
79 gentoo_fbida lirc LIBLIRC
80 gentoo_fbida pdf LIBTIFF
81 gentoo_fbida png LIBPNG
82 gentoo_fbida scanner LIBSANE
83 gentoo_fbida tiff LIBTIFF
84 gentoo_fbida webp LIBWEBP
85 }
86
87 src_compile() {
88 emake verbose=yes
89 }
90
91 src_install() {
92 emake \
93 DESTDIR="${D}" \
94 STRIP="" \
95 prefix=/usr \
96 install
97
98 dodoc README
99
100 if use fbcon && ! use pdf; then
101 rm "${D}"/usr/bin/fbgs "${D}"/usr/share/man/man1/fbgs.1 || die
102 fi
103
104 if use X ; then
105 doicon "${WORKDIR}"/ida.png
106 domenu desktop/ida.desktop
107 fi
108 }

  ViewVC Help
Powered by ViewVC 1.1.20