diff options
author | Alexis Ballier <aballier@gentoo.org> | 2007-10-27 18:26:00 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2007-10-27 18:26:00 +0000 |
commit | c09e9764d5393744ba2cd3cbf3c721bc5bd92e81 (patch) | |
tree | e5352f7a09a3d8f3ea190e364f7367f8e9b72c6c /media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild | |
parent | Stable on alpha wrt #197186 (diff) | |
download | gentoo-2-c09e9764d5393744ba2cd3cbf3c721bc5bd92e81.tar.gz gentoo-2-c09e9764d5393744ba2cd3cbf3c721bc5bd92e81.tar.bz2 gentoo-2-c09e9764d5393744ba2cd3cbf3c721bc5bd92e81.zip |
version bump, bug #197219
(Portage version: 2.1.3.16)
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.ebuild | 58 |
1 files changed, 58 insertions, 0 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 new file mode 100644 index 000000000000..97aa447affdc --- /dev/null +++ b/media-gfx/openexr_viewers/openexr_viewers-1.0.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2007 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.1 2007/10/27 18:25:59 aballier Exp $ + +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" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" +IUSE_VIDEO_CARDS="video_cards_nvidia" +IUSE="doc opengl ${IUSE_VIDEO_CARDS}" + +RDEPEND="media-libs/ilmbase + media-libs/openexr + media-libs/ctl + media-libs/openexr_ctl + opengl? ( virtual/opengl + >=x11-libs/fltk-1.1.0 + 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" + AT_M4DIR="m4" eautoreconf +} + +src_compile() { + 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 + insinto "/usr/share/doc/${PF}" + doins doc/*.pdf + fi + rm -frv "${D}usr/share/doc/OpenEXR_Viewers"* +} |