summaryrefslogtreecommitdiff
path: root/media-gfx/openexr_viewers
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/openexr_viewers
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/openexr_viewers')
-rw-r--r--media-gfx/openexr_viewers/Manifest17
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch55
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch37
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch16
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-2.0.0-nvidia-automagic.patch14
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch28
-rw-r--r--media-gfx/openexr_viewers/metadata.xml13
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild57
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild55
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild55
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild58
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild55
12 files changed, 460 insertions, 0 deletions
diff --git a/media-gfx/openexr_viewers/Manifest b/media-gfx/openexr_viewers/Manifest
new file mode 100644
index 000000000000..1dc406fae4c5
--- /dev/null
+++ b/media-gfx/openexr_viewers/Manifest
@@ -0,0 +1,17 @@
+AUX openexr_viewers-1.0.1-gcc43.patch 2122 SHA256 2327ca9369c9022a5f8f315d1d2a95037dcbfd610eee3dda22e11877205bd3bb SHA512 1e4c2f7a496b7a48063b6ec163c72620eabc78fa850cd87de8c4d1555bdcf91913941c16fdadcfe076c67d0903c229e677ee3b7c0fe194116864c5cab1bbe4a1 WHIRLPOOL c3d26ea57601b89c686ac12a7958da2ff0e6371a9b1b21016f6382e59187120e436261c2cc0a454d95be3c99d0ba69cb12695736401cda65d87b1f2ee37b78ed
+AUX openexr_viewers-1.0.1-gcc44.patch 1064 SHA256 7214f033bc84b7433f010b5297fabc383f9305a95fd02d50ff1f94c5bfe13386 SHA512 3b6c2f02581025a9a9e8963274aca27badc905a1986376860728b24b795008dedbb7a3887b5a4fed04c81b0ea1acff1918fab3ad09881de9f2be899c90443177 WHIRLPOOL 547fc0238d5f738c6b0c1ba57feeffc362fb78b168fb6f2108056254c2a6b889eba0ac4b54f4ca27f4fa3f57c529112ea712132e60cc6f444f8bfb53a4a4dd38
+AUX openexr_viewers-1.0.2-nvidia-automagic.patch 472 SHA256 95c00b84847ead53ff390e30739328c5475bdef5159fa2f621fb574ad901fa25 SHA512 777b8635b4454ea9c8c9bcd1b707012218ba16c523a105e987e897a17b126a2e11d986bc566cfe1a87a1af2df3336ec53e5ff8cc54cdc01ea7752947dac140f4 WHIRLPOOL 61dada4e3ae0b4d16e517a41d97e8b618bc4b85c9540ac705356dab2ed533dba2709e0e105d45c001c5f0b788e7d20398f493b42212e7af90cf9d126fbe1ddbc
+AUX openexr_viewers-2.0.0-nvidia-automagic.patch 434 SHA256 5ded4984733e894deb4b3778e51df1f0008946a2404270209b4d2964d1f3ce32 SHA512 6c05ec9708822559e8f84f601f8ede89d4e9820cbbe4b49b93ac6d0ba228fa602b699f13540d2169ce16b144ec85db63d06262001bfa391e80f2febfa66ceec7 WHIRLPOOL 5132f99849c5077903a16e237b1c82d23c2255dd5cea1d1d97f1081120a3a0a9f45048a5d6742766f9f3b1949d8b7286ee172a7d6f741360420f880a366ef409
+AUX openexr_viewers-2.2.0-Remove-nVidia-automagic.patch 869 SHA256 30eae021f57a47346cfdf648460f818c09215a517cbce255acf0021753c65f96 SHA512 232f990857bfbac7c8417e818e2efe0926a3d5fc20d7392c90a79a4762f26bf3044cc46729feafe407c73c75372ef52af8fa22247d82a4eb982fe538ac71de40 WHIRLPOOL a97438bb43aafd71713b0747ee7ba89b0141c28862cdf10a10e023fe40d114cf69c61697c7c9dae9f303b6ea7f7a9ff79b1533b6fb49a1d5576f38ab78924530
+DIST openexr_viewers-1.0.2.tar.gz 482009 SHA256 eb6b1987d587b441f113d417dc8a5baec25f3d81bc06b0369217567c1cde13ef SHA512 06e01be3310a05c5709cdb4641f230522a5d91d50b08b6736a5541d20a03decfd80a9f5b65af383659a3d19407f932317c04eba73d199c03fa0ff9e24cc7ad07 WHIRLPOOL dd6d805f71db710bb70db9d993cc07bcd0b02c225527402f194300b82a3f1036d3584bed5db517c937d3f638e14466ff3c9c3653430d1d7c6fb1a01e331012f8
+DIST openexr_viewers-2.0.1.tar.gz 495240 SHA256 9329e87922eb5e4707a5a107f90434113136299a026d78133e4083742808a412 SHA512 75af19e4a06d31bbb21217bc75a800852d2817dd9d120b879c377316e8aa64f75c49dccbb0d2a4d11d949f48b8fac40249692d1286a77e4812e43b3e8e303235 WHIRLPOOL c9c6a46451a3f2709afaecdbbfbf5e69f74ba2e76a853871a9a1eb5789579be567de39b9206f7b3ff22351c2f5d579f1b5bbcd3a8d4df0d37c9c2eb1140fc455
+DIST openexr_viewers-2.1.0.tar.gz 497290 SHA256 80d98aaa03ab98906f0e535bb2ae908ce3929f4e318ef069620937d195a6fea7 SHA512 fd3b08ad91b1b2299d01d56c7a17694538fd912302db3472a8d8621b49a699a42604de8d816288399b31207304c7684de198acecd2c8a9825d35b827b8a2ddaf WHIRLPOOL 2918c3c40f8969711becc70d422bc89fe28a209b56e964da8e69f249b619b6790efb686ad45aefb57d14a514ad7642a4cc6a7c3af0152e13f5fd6ee3ee6155f5
+DIST openexr_viewers-2.2.0.tar.gz 486235 SHA256 f73fe2e4d19e8fc9317d6c34f156598ad43497bb9549f03feacb8ba095dd04e9 SHA512 ab2f15d0352fa4e9daf76c7317312dad6cfe7b65a86affaf057c8eceb48d2637fc0df58125ea2ec5ad3b7251eed392a8eccff1001cfeced969bbb66fe92284f8 WHIRLPOOL 83190cbab3749dbc543e16cac76b7b0bc4c9c0110feb6ef4ddb4b84808cc9508dc94dda3be5674e6d50f042e0bfd78a951d66b231ad0296ee6b7b24a81ac2e15
+EBUILD openexr_viewers-1.0.2.ebuild 1343 SHA256 698939b44f970463676b34abc311c5be18037da008cef4e4af378a786b677c70 SHA512 b6b36599cea86589762b75b5836174f96f80f881c54483944afd97e8c9b2e49838e5f5c7995f29916d0b1dcb42ef4a08dba4dfca95ac57fa24d6fd695ce130b4 WHIRLPOOL b62db4e1f3d820f03dc6f27327f8c43ddbcdd3d4abceb41e3f3bb0eacb06f497d2b6ef3b1a13ad8ebb3ea65e70a7719b604726ae5e50d72d7c4bd80bf3b59e85
+EBUILD openexr_viewers-2.0.1.ebuild 1226 SHA256 15086dcc7c1be99a47058dc58fcf03d5873b0825af2104329ff0b1345ccad314 SHA512 fef5325ae28e8d4a82d0147074b43e00e8fa51e85c5403eb48c63229f56021a0c2a043474c5f020c1c342ea4340f2aadeecb61f5cbbd6ebcb48e410f25392dcd WHIRLPOOL 38b65778a1e34950018e5b57533bc3f5aa94ca9a650a1d959eb4f1d6f0c9c3c08d7a9e289b2d138905193cbc92797c074b5b2b42bff423dad7159bd3ced0c41d
+EBUILD openexr_viewers-2.1.0.ebuild 1220 SHA256 be10a10261d451ea538a3ee90775976a28b958b4b998a08dc6fa0fb690398e92 SHA512 138cc73e33659c98f762926bd19643dd359f2514ff063139a8722e30ecc3c3cb7455ddaface266f1bfcabe9e9d65fc1fdf64b23f0b696554c1349b0a32b81d3e WHIRLPOOL 26b6e389dd2a51790b1bcabf2b685c2fa0af3a503e2032287475ce460c6d8aface9d1ee059fffdcf4eb2d144aec458e3ea893311651db14a458f7c64cc864ffe
+EBUILD openexr_viewers-2.2.0-r1.ebuild 1227 SHA256 60ef19f7384033f09b44f2648bb319b0fa072561160a01a416fcbbf7cebbb59b SHA512 98ae83639c8f0d97c0c0fdd6f6909826d79445bf2eec7f2e0b768beaad30efe11deb58bb0c7d1d092e05c8961c5d8af3c8d0bb10533eb8efee13532a9c2389da WHIRLPOOL a396f40209d4b14c7d650571ed9c6e513e4446624d51950ac4d1177b08234103019dbd66369d40b40979e6f8f98dba0e57ad26cf2bed448272730d4fa23fd6b5
+EBUILD openexr_viewers-2.2.0.ebuild 1226 SHA256 15086dcc7c1be99a47058dc58fcf03d5873b0825af2104329ff0b1345ccad314 SHA512 fef5325ae28e8d4a82d0147074b43e00e8fa51e85c5403eb48c63229f56021a0c2a043474c5f020c1c342ea4340f2aadeecb61f5cbbd6ebcb48e410f25392dcd WHIRLPOOL 38b65778a1e34950018e5b57533bc3f5aa94ca9a650a1d959eb4f1d6f0c9c3c08d7a9e289b2d138905193cbc92797c074b5b2b42bff423dad7159bd3ced0c41d
+MISC ChangeLog 3439 SHA256 83cdd91e00f96d581c72169c50a444688dfc430c136e262f4965b3684c067299 SHA512 2ec9ad6bd5c429d26b6a02982655274ce1ad60f1e44dfe10ba0d01a753b310a4011a4fdd2c68504481957ca02ef0d902520e7ccaa9c5338d89c9cc02946d71fa WHIRLPOOL 926849a3f23a3a119ee846c712d8e598486f4c3ad3b279c785eef69437eae93b9202b21ea8fc1aeab4f62f60003352d50346d0604d05ef7e0c4a3e19b5c5cbef
+MISC ChangeLog-2015 5510 SHA256 050e27e66191f6d0d721c84144e3cab3f90b9f02a810ad5c3d4711029f1f4276 SHA512 69ef9b756d0034e79dc38f840d4f5bad9d73998394d6348148e539ee7e2f31683f6091056b720990a6d10e0973f4f8b8e5db22b9ba6c26947d7e7d050cac084b WHIRLPOOL 8e7524bbaa655780a0b2b86f66643a9b68cf90ff264ecbae9bb34e0ecf7bfca39b7827082a8bf38a27cb08e4d16399123ab6f7eba6e889059b34c877c51357b3
+MISC metadata.xml 379 SHA256 a3b67324cbb60236ba69b3e492bfa3cc4a908629ce8b48178abf3112ae0124b6 SHA512 97d3ed7e0ee8f419d36df6b6ccc3b3e704445935b76fab412b4287ac1b88688591f775927e1cc333a85a64818cbe1c9c3e760d2ab734215c0f558639ca033b6a WHIRLPOOL be72328a441e07800fe9cf75299ce33ba3130f7087f2f27166750894e0003ec826c30e07ac10e5c9ca4a871f0ad4fb729be42625e8efc7491ed2a337fbbbc972
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch
new file mode 100644
index 000000000000..3630efc6f7a2
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch
@@ -0,0 +1,55 @@
+diff -up openexr_viewers-1.0.1/exrdisplay/applyCtl.h.gcc43 openexr_viewers-1.0.1/exrdisplay/applyCtl.h
+--- openexr_viewers-1.0.1/exrdisplay/applyCtl.h.gcc43 2006-12-09 01:14:07.000000000 +0100
++++ openexr_viewers-1.0.1/exrdisplay/applyCtl.h 2008-01-10 02:07:14.000000000 +0100
+@@ -49,6 +49,7 @@
+ #include <ImfArray.h>
+ #include <ImfHeader.h>
+ #include <vector>
++#include <cstdlib>
+
+ //
+ // Apply a series of CTL transforms to the raw pixel data from an image file
+diff -up openexr_viewers-1.0.1/configure.ac.gcc43 openexr_viewers-1.0.1/configure.ac
+--- openexr_viewers-1.0.1/configure.ac.gcc43 2007-10-10 00:20:51.000000000 +0200
++++ openexr_viewers-1.0.1/configure.ac 2008-01-10 02:07:14.000000000 +0100
+@@ -126,6 +126,7 @@ AM_COMPILELINKRUN(
+ #include <ImfFrameBuffer.h>
+ #include <ImathBox.h>
+ #include <vector>
++#include <cstdlib>
+ using namespace Ctl;
+ using namespace Imf;
+ using namespace Imath;
+diff -up openexr_viewers-1.0.1/configure.gcc43 openexr_viewers-1.0.1/configure
+--- openexr_viewers-1.0.1/configure.gcc43 2007-10-10 00:21:01.000000000 +0200
++++ openexr_viewers-1.0.1/configure 2008-01-10 02:07:14.000000000 +0100
+@@ -20869,6 +20869,7 @@ cat >>conftest.$ac_ext <<_ACEOF
+ #include <ImfFrameBuffer.h>
+ #include <ImathBox.h>
+ #include <vector>
++#include <cstdlib>
+ using namespace Ctl;
+ using namespace Imf;
+ using namespace Imath;
+diff -up openexr_viewers-1.0.1/playexr/ctlToLut.h.gcc43 openexr_viewers-1.0.1/playexr/ctlToLut.h
+--- openexr_viewers-1.0.1/playexr/ctlToLut.h.gcc43 2008-01-10 03:09:55.000000000 +0100
++++ openexr_viewers-1.0.1/playexr/ctlToLut.h 2008-01-10 03:11:18.000000000 +0100
+@@ -88,6 +88,7 @@
+ #include <string>
+ #include <vector>
+ #include <half.h>
++#include <cstdlib>
+
+
+ void
+diff -up openexr_viewers-1.0.1/playexr/main.cpp.gcc43 openexr_viewers-1.0.1/playexr/main.cpp
+--- openexr_viewers-1.0.1/playexr/main.cpp.gcc43 2008-01-10 03:05:03.000000000 +0100
++++ openexr_viewers-1.0.1/playexr/main.cpp 2008-01-10 03:05:48.000000000 +0100
+@@ -48,6 +48,7 @@
+ #include <vector>
+ #include <string>
+ #include <stdlib.h>
++#include <cstring>
+
+ using namespace std;
+
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch
new file mode 100644
index 000000000000..4ab58548d71a
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch
@@ -0,0 +1,37 @@
+diff -ur openexr_viewers-1.0.1.orig/exrdisplay/applyCtl.cpp openexr_viewers-1.0.1/exrdisplay/applyCtl.cpp
+--- playexr/ctlToLut.cpp.orig 2009-12-14 09:07:00.863493115 -0800
++++ playexr/ctlToLut.cpp 2009-12-14 09:08:16.721186947 -0800
+@@ -49,6 +49,7 @@
+ #include <ImfFrameBuffer.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Ctl;
+@@ -61,6 +62,7 @@
+ #include <ImfHeader.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Imf;
+--- exrdisplay/applyCtl.cpp.orig 2009-12-14 09:11:44.950334079 -0800
++++ exrdisplay/applyCtl.cpp 2009-12-14 09:11:59.900332294 -0800
+@@ -49,6 +49,7 @@
+ #include <ImfFrameBuffer.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Ctl;
+@@ -61,6 +62,7 @@
+ #include <ImfHeader.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Imf;
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/files/openexr_viewers-2.0.0-nvidia-automagic.patch b/media-gfx/openexr_viewers/files/openexr_viewers-2.0.0-nvidia-automagic.patch
new file mode 100644
index 000000000000..1ea9f869a671
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-2.0.0-nvidia-automagic.patch
@@ -0,0 +1,14 @@
+--- configure.ac
++++ configure.ac
+@@ -192,7 +192,10 @@
+ dnl
+ dnl check for Cg
+ dnl
+-if test "${have_fltk}" = yes; then
++AC_ARG_ENABLE(cg, AC_HELP_STRING([--enable-cg],
++ [enable nvidia cg support [[default=check]]]), [want_cg="${enableval}"], [want_cg=yes])
++
++if test "${have_fltk}" = yes -a "${want_cg}" != "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/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch b/media-gfx/openexr_viewers/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch
new file mode 100644
index 000000000000..41fba94523a9
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch
@@ -0,0 +1,28 @@
+From e8d26df2a888f307e61584367f5dc14894d8be82 Mon Sep 17 00:00:00 2001
+From: Jonathan Scruggs <j.scruggs@gmail.com>
+Date: Sat, 23 Sep 2017 13:39:34 +0100
+Subject: [PATCH] OpenEXR_Viewers: Remove nVidia automagic
+
+---
+ OpenEXR_Viewers/configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 94c88cd..1de94f6 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -194,7 +194,10 @@ AM_PATH_FLTK(have_fltk=yes, have_fltk=no)
+ dnl
+ dnl check for Cg
+ dnl
+-if test "${have_fltk}" = yes; then
++AC_ARG_ENABLE(cg, AC_HELP_STRING([--enable-cg],
++ [enable nvidia cg support [[default=check]]]), [want_cg="${enableval}"], [want_cg=yes])
++
++if test "${have_fltk}" = yes -a "${want_cg}" != "no"; then
+ AM_PATH_CG(have_cg=yes, have_cg=no)
+ if test "${have_cg}" = yes; then
+ AC_DEFINE(HAVE_FRAGMENT_SHADERS)
+--
+2.14.1
+
diff --git a/media-gfx/openexr_viewers/metadata.xml b/media-gfx/openexr_viewers/metadata.xml
new file mode 100644
index 000000000000..80b95a6d4e5c
--- /dev/null
+++ b/media-gfx/openexr_viewers/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="cg">Add support for nvidia's cg shaders</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">openexr/openexr</remote-id>
+ </upstream>
+</pkgmetadata>
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..9b2c74289bc9
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="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[opengl]
+ video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit ) )
+ !<media-libs/openexr-1.5.0"
+DEPEND="${RDEPEND}
+ virtual/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
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild
new file mode 100644
index 000000000000..a963d5b258c3
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://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:=
+ >=media-libs/openexr_ctl-1.0.1-r2:=
+ opengl? (
+ virtual/opengl
+ x11-libs/fltk:1[opengl]
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+ epatch "${FILESDIR}"/${PN}-2.0.0-nvidia-automagic.patch
+ 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
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild
new file mode 100644
index 000000000000..5a6fdeb5e527
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://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:=
+ >=media-libs/openexr_ctl-1.0.1-r2:=
+ opengl? (
+ virtual/opengl
+ x11-libs/fltk:1[opengl]
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+ epatch "${FILESDIR}"/${PN}-2.0.0-nvidia-automagic.patch
+ 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
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild
new file mode 100644
index 000000000000..9e78e40c52af
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://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
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild
new file mode 100644
index 000000000000..a963d5b258c3
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://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:=
+ >=media-libs/openexr_ctl-1.0.1-r2:=
+ opengl? (
+ virtual/opengl
+ x11-libs/fltk:1[opengl]
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+ epatch "${FILESDIR}"/${PN}-2.0.0-nvidia-automagic.patch
+ 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
+}