summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-07-24 16:52:40 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-07-24 16:52:40 +0000
commited379fd470f63245ae3043953bb8ba4ab278bfaf (patch)
tree261810e5f2f87e6e7fe8682b5bef1f21a6f13788 /media-gfx/openexr_viewers
parentalpha/ia64/sparc stable wrt #329265 (diff)
downloadgentoo-2-ed379fd470f63245ae3043953bb8ba4ab278bfaf.tar.gz
gentoo-2-ed379fd470f63245ae3043953bb8ba4ab278bfaf.tar.bz2
gentoo-2-ed379fd470f63245ae3043953bb8ba4ab278bfaf.zip
Version bump wrt #329713 by Arfrever Frehtes Taifersar Arahesis.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/openexr_viewers')
-rw-r--r--media-gfx/openexr_viewers/ChangeLog9
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch16
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild58
3 files changed, 82 insertions, 1 deletions
diff --git a/media-gfx/openexr_viewers/ChangeLog b/media-gfx/openexr_viewers/ChangeLog
index 701994d74bb3..71e7cd97eada 100644
--- a/media-gfx/openexr_viewers/ChangeLog
+++ b/media-gfx/openexr_viewers/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/openexr_viewers
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/openexr_viewers/ChangeLog,v 1.19 2010/03/10 03:02:03 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openexr_viewers/ChangeLog,v 1.20 2010/07/24 16:52:40 ssuominen Exp $
+
+*openexr_viewers-1.0.2 (24 Jul 2010)
+
+ 24 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +openexr_viewers-1.0.2.ebuild,
+ +files/openexr_viewers-1.0.2-nvidia-automagic.patch:
+ Version bump wrt #329713 by Arfrever Frehtes Taifersar Arahesis.
10 Mar 2010; Sebastian Pipping <sping@gentoo.org>
openexr_viewers-1.0.1.ebuild:
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch
new file mode 100644
index 000000000000..e39a0c1da789
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch
@@ -0,0 +1,16 @@
+--- configure.ac
++++ configure.ac
+@@ -188,8 +188,11 @@
+
+ dnl
+ dnl check for Cg
+-dnlCG_LD
+-if test "${have_fltk}" = yes; then
++dnl CG_LD
++AC_ARG_ENABLE(nvidia, AC_HELP_STRING([--enable-nvidia],
++ [enable nvidia cg support [[default=check]]]), [want_nvidia="${enableval}"], [want_nvidia=yes])
++
++if test "${have_fltk}" = yes -a "${want_nvidia}" != "no"; then
+ AM_PATH_CG(have_cg=yes, have_cg=no)
+ if test "${have_cg}" = yes; then
+ AC_DEFINE(HAVE_FRAGMENT_SHADERS)
diff --git a/media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild b/media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild
new file mode 100644
index 000000000000..6ddf749c53b8
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2010 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.2.ebuild,v 1.1 2010/07/24 16:52:40 ssuominen Exp $
+
+EAPI=2
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
+HOMEPAGE="http://openexr.com/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="opengl video_cards_nvidia"
+
+RDEPEND=">=media-libs/ilmbase-1.0.2
+ >=media-libs/openexr-1.7.0
+ media-libs/ctl
+ media-libs/openexr_ctl
+ opengl? ( virtual/opengl
+ x11-libs/fltk:1.1[opengl]
+ video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit ) )
+ !<media-libs/openexr-1.5.0"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nvidia-automagic.patch \
+ "${FILESDIR}"/${PN}-1.0.1-gcc43.patch \
+ "${FILESDIR}"/${PN}-1.0.1-gcc44.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use video_cards_nvidia; then
+ myconf="--with-cg-prefix=/opt/nvidia-cg-toolkit"
+ append-flags $(no-as-needed) # binary-only libCg is not properly linked
+ fi
+
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable video_cards_nvidia nvidia) \
+ $(use_with opengl fltk-config /usr/bin/fltk-config) \
+ ${myconf}
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir="/usr/share/doc/${PF}/pdf" \
+ install || die
+
+ dodoc AUTHORS ChangeLog NEWS README
+}