diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild')
-rw-r--r-- | media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
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 +} |