blob: a141f777a8ea40933e5101eb6fd6b0dda175b5e3 (
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-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic
DESCRIPTION="OpenEXR Viewers"
HOMEPAGE="https://openexr.com"
SRC_URI="https://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="cg opengl"
RDEPEND="~media-libs/ilmbase-${PV}:=
~media-libs/openexr-${PV}:=
>=media-libs/ctl-1.5.2:=
x11-libs/fltk:1[opengl]
opengl? (
virtual/opengl
x11-libs/fltk:1[opengl]
cg? ( media-gfx/nvidia-cg-toolkit )
)"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=( "${FILESDIR}/${P}-Remove-nVidia-automagic.patch" )
src_prepare() {
default
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
eautoreconf
}
src_configure() {
local myconf
if use cg; then
myconf="--with-cg-prefix=/opt/nvidia-cg-toolkit"
append-flags "$(no-as-needed)" # binary-only libCg is not properly linked
fi
econf \
$(use_enable cg) \
$(use_with opengl fltk-config /usr/bin/fltk-config) \
${myconf}
}
src_install() {
emake \
DESTDIR="${D}" \
docdir=/usr/share/doc/${PF}/pdf \
install
dodoc AUTHORS ChangeLog NEWS README
}
|