blob: d853c066383c3771fa6c8e7edebc9094d08d1b5b (
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
51
52
53
54
55
56
57
58
|
# Copyright 1999-2008 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.6 2008/01/30 14:24:34 armin76 Exp $
inherit autotools eutils
DESCRIPTION="OpenEXR Viewers"
SRC_URI="http://download.savannah.nongnu.org/releases/openexr/${P}.tar.gz"
HOMEPAGE="http://openexr.com/"
SLOT="0"
LICENSE="BSD"
KEYWORDS="alpha amd64 hppa ia64 ~ppc ~ppc64 sparc x86"
IUSE_VIDEO_CARDS="video_cards_nvidia"
IUSE="doc opengl ${IUSE_VIDEO_CARDS}"
RDEPEND="media-libs/ilmbase
media-libs/openexr
media-libs/ctl
media-libs/openexr_ctl
opengl? ( virtual/opengl
>=x11-libs/fltk-1.1.0
video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit ) )"
DEPEND="${RDEPEND}
!<media-libs/openexr-1.5.0
dev-util/pkgconfig"
pkg_setup() {
if use opengl && ! built_with_use x11-libs/fltk opengl ; then
die "You need OpenGL support in FLTK"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-1.0.0-nvidia-automagic.patch"
AT_M4DIR="m4" eautoreconf
}
src_compile() {
econf \
$(use_with opengl fltk-config /usr/bin/fltk-config) \
$(use_enable video_cards_nvidia nvidia)
emake || die "emake failed"
}
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"*
}
|