blob: 3091dbfe6d7d78a100525decf5a62ac3049a16bf (
plain)
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild,v 1.13 2010/03/10 03:02:03 sping Exp $
EAPI=2
inherit autotools eutils
DESCRIPTION="OpenEXR Viewers"
SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
HOMEPAGE="http://openexr.com/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="doc opengl video_cards_nvidia"
RDEPEND="media-libs/ilmbase
media-libs/openexr
media-libs/ctl
media-libs/openexr_ctl
opengl? ( virtual/opengl
>=x11-libs/fltk-1.1.0:1.1[opengl]
video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit ) )"
DEPEND="${RDEPEND}
!<media-libs/openexr-1.5.0
dev-util/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.0.0-nvidia-automagic.patch \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-gcc44.patch
AT_M4DIR="m4" eautoreconf
}
src_configure() {
econf \
$(use_with opengl fltk-config /usr/bin/fltk-config) \
$(use_enable video_cards_nvidia nvidia)
}
src_install () {
emake DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS ChangeLog NEWS README
if use doc; then
insinto "/usr/share/doc/${PF}"
doins doc/*.pdf
fi
rm -frv "${D}usr/share/doc/OpenEXR_Viewers"*
}
|