blob: 81219c89bfd0c8aa759df0ba2ac4e8b3b62e80ee (
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
59
60
61
62
63
64
65
66
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/openexr/openexr-1.4.0a.ebuild,v 1.12 2007/12/29 11:28:06 vapier Exp $
WANT_AUTOCONF=2.5
WANT_AUTOMAKE=1.9
inherit eutils libtool autotools
DESCRIPTION="ILM's HDR image file format libraries"
SRC_URI="http://savannah.nongnu.org/download/openexr/${P}.tar.gz"
HOMEPAGE="http://www.openexr.com"
SLOT="0"
LICENSE="as-is"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sh sparc x86"
IUSE_VIDEO_CARDS="video_cards_nvidia"
IUSE="doc examples opengl ${IUSE_VIDEO_CARDS}"
RDEPEND="opengl? ( virtual/opengl
>=x11-libs/fltk-1.1.0
video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit ) )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
S="${WORKDIR}/${P/a/}"
src_unpack() {
if use opengl && ! built_with_use x11-libs/fltk opengl; then
die "You need opengl support in fltk"
fi
unpack ${A}
# Replace the temporary directory used for tests
sed -i -e 's:"/var/tmp/":"'${T}'":' "${S}/IlmImfTest/tmpDir.h"
cd "${S}"
epatch "${FILESDIR}/${P}-asneeded.patch"
epatch "${FILESDIR}/${P}-nvidia-automagic.patch"
eautoreconf
}
src_compile() {
econf \
$(use_enable examples imfexamples) \
$(use_with opengl fltk-config /usr/bin/fltk-config) \
$(use_enable video_cards_nvidia nvidia)
emake || die "make failed"
}
src_install () {
emake DESTDIR="${D}" examplesdir="/usr/share/doc/${PF}/examples" install || \
die "install failed"
dodoc AUTHORS Changelog README* ChangeLog LICENSE NEWS
newdoc exrdisplay/README README.exrdisplay
use doc && dodoc doc/*pdf
}
pkg_postinst() {
ewarn "${PN} may had ABI changes"
ewarn "Please run revdep-rebuild"
ewarn "to rebuild programs using it"
ewarn "(like kdelibs, krita, imagemagick, etc.)"
}
|