diff options
author | Simon Haegler <simon.haegler@mistafunk.ch> | 2011-11-27 19:33:29 +0100 |
---|---|---|
committer | Simon Haegler <simon.haegler@mistafunk.ch> | 2011-11-27 19:33:29 +0100 |
commit | 306c17e14aaf2c2a8a2d8de04961df164a220054 (patch) | |
tree | deab88848385957b10f6b5133846bdb29815fe22 /media-gfx/luxrender/luxrender-0.7.1.ebuild | |
parent | test (diff) | |
parent | use flag fixes & manifest updates (diff) | |
download | mistafunk-306c17e14aaf2c2a8a2d8de04961df164a220054.tar.gz mistafunk-306c17e14aaf2c2a8a2d8de04961df164a220054.tar.bz2 mistafunk-306c17e14aaf2c2a8a2d8de04961df164a220054.zip |
Merge branch 'master' of /home/shaegler/dev/gentoo/mistafunk-gentoo-overlay
Diffstat (limited to 'media-gfx/luxrender/luxrender-0.7.1.ebuild')
-rw-r--r-- | media-gfx/luxrender/luxrender-0.7.1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/media-gfx/luxrender/luxrender-0.7.1.ebuild b/media-gfx/luxrender/luxrender-0.7.1.ebuild new file mode 100644 index 0000000..9dd3839 --- /dev/null +++ b/media-gfx/luxrender/luxrender-0.7.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +WX_GTK_VER="2.8" +inherit cmake-utils flag-o-matic python wxwidgets + +EHG_REVISION="9206b3ba7011" + +DESCRIPTION="A GPL unbiased renderer" +HOMEPAGE="http://www.luxrender.net" +SRC_URI="http://src.luxrender.net/lux/archive/${EHG_REVISION}.tar.bz2" + + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="sse2 doc debug +blender" + +RDEPEND=">=dev-libs/boost-1.43 + media-libs/openexr + media-libs/tiff + media-libs/libpng + media-libs/jpeg + media-libs/ilmbase + media-libs/freeimage + virtual/opengl + x11-libs/wxGTK:2.8[X,opengl]" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + sys-apps/sed + doc? ( >=app-doc/doxygen-1.5.7[-nodot] )" +PDEPEND="blender? ( || ( >=media-gfx/luxblend25-101023 + =media-gfx/luxblend-${PV} ) )" + +S="${WORKDIR}/lux-${EHG_REVISION}" + +src_prepare() { + sed -i \ + -e "s:^ADD_DEFINITIONS(-O3 -msse2 -mfpmath=sse :ADD_DEFINITIONS(:" \ + CMakeLists.txt || die "Removing CFLAGS failed" + + epatch "${FILESDIR}/lux-0.7.0-libpng.patch" +} + +src_configure() { + use sse2 && append-flags "-msse -msse2 -DLUX_USE_SSE" + use debug && append-flags -ggdb + + need-wxwidgets unicode + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS.txt + + # installing API(s) docs + if use doc; then + pushd "${S}"/doxygen > /dev/null + doxygen doxygen.conf + dohtml html/* + popd > /dev/null + fi + + if use blender; then + insinto /usr/share/blender/2.5/scripts/addons/luxrender/ + doins "${WORKDIR}/${P}"_build/pylux.so + fi + +# make_desktop_entry "${PN}" "Lux Render" "/usr/share/pixmaps/luxrender.svg" "Graphics;3DGraphics;" +} |