summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-08-26 10:21:50 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-08-26 10:21:50 +0000
commite4dd4a22a781b17a4f16483a4095b0538957703f (patch)
tree6d4716494f0199b096a2824c129f2f8b4915a052 /media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild
parentstable x86, bug 282652 (diff)
downloadhistorical-e4dd4a22a781b17a4f16483a4095b0538957703f.tar.gz
historical-e4dd4a22a781b17a4f16483a4095b0538957703f.tar.bz2
historical-e4dd4a22a781b17a4f16483a4095b0538957703f.zip
Fix building with GCC 4.4+ wrt #282788.
Package-Manager: portage-2.2_rc40/cvs/Linux x86_64
Diffstat (limited to 'media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild')
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild35
1 files changed, 12 insertions, 23 deletions
diff --git a/media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild b/media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild
index b0583f18fe8d..69a04b46ba5d 100644
--- a/media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild
+++ b/media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild
@@ -1,59 +1,48 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 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.11 2008/11/14 18:58:58 coldwind Exp $
-
-EAPI=1
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild,v 1.12 2009/08/26 10:21:50 ssuominen Exp $
+EAPI=2
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"
+SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE_VIDEO_CARDS="video_cards_nvidia"
-IUSE="doc opengl ${IUSE_VIDEO_CARDS}"
+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
+ >=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"
-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"
- epatch "${FILESDIR}/${P}-gcc43.patch"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0.0-nvidia-automagic.patch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-gcc44.patch
AT_M4DIR="m4" eautoreconf
}
-src_compile() {
+src_configure() {
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
+ if use doc; then
insinto "/usr/share/doc/${PF}"
doins doc/*.pdf
fi