summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/luxrender/luxrender-1.2.1.ebuild')
-rw-r--r--media-gfx/luxrender/luxrender-1.2.1.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/media-gfx/luxrender/luxrender-1.2.1.ebuild b/media-gfx/luxrender/luxrender-1.2.1.ebuild
new file mode 100644
index 0000000..eff6867
--- /dev/null
+++ b/media-gfx/luxrender/luxrender-1.2.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit cmake-utils flag-o-matic python
+
+DESCRIPTION="A GPL unbiased renderer."
+HOMEPAGE="http://www.luxrender.net"
+EHG_REVISION="3066b2161439"
+SRC_URI="https://bitbucket.org/luxrender/lux/get/${EHG_REVISION}.tar.bz2"
+
+S="${WORKDIR}/luxrender-lux-${EHG_REVISION}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sse2 doc debug +blender"
+
+RDEPEND=">=dev-libs/boost-1.43[python]
+ media-libs/openexr
+ media-libs/tiff
+ media-libs/libpng
+ media-libs/libjpeg-turbo
+ media-libs/ilmbase
+ >=media-libs/freeimage-3.15.0
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ =media-libs/luxrays-1.2.1[debug?]
+ doc? ( >=app-doc/doxygen-1.5.7[-nodot] )"
+PDEPEND="blender? ( =media-gfx/luxblend25-9999 )"
+
+src_configure() {
+ use sse2 && append-flags "-msse -msse2 -DLUX_USE_SSE"
+ use debug && append-flags -ggdb
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc AUTHORS.txt || die
+
+ # installing API(s) docs
+ if use doc; then
+ pushd "${S}"/doxygen > /dev/null
+ doxygen doxygen.template
+ dohtml html/* || die "Couldn't install API docs"
+ popd > /dev/null
+ fi
+
+ if use blender; then
+ insinto /usr/share/blender/2.5/scripts/addons/luxrender/
+ doins "${CMAKE_BUILD_DIR}"/pylux.so || die "Couldn't install Pylux"
+ fi
+}