blob: 786d3ba890436ed4fb457a05ca83d2c75cacf8b1 (
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-2007 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.0.ebuild,v 1.6 2007/10/09 16:57:36 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 ~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}/${P}-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"*
}
|