diff options
Diffstat (limited to 'media-libs/opensg/opensg-9999.ebuild')
-rw-r--r-- | media-libs/opensg/opensg-9999.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/media-libs/opensg/opensg-9999.ebuild b/media-libs/opensg/opensg-9999.ebuild new file mode 100644 index 0000000..a4b1c20 --- /dev/null +++ b/media-libs/opensg/opensg-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils cmake-utils git-2 + +DESCRIPTION="OpenSG is a portable scenegraph system to create realtime graphics programs, e.g. for virtual reality applications." +HOMEPAGE="http://www.opensg.org/" +LICENSE="LGPL-2.1" + +EGIT_REPO_URI="git://opensg.git.sourceforge.net/gitroot/opensg/opensg" + +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="tests doc examples" +DEPEND="virtual/opengl + media-libs/freeglut + media-libs/glew + + sys-devel/flex + sys-devel/bison + + dev-libs/boost + sys-libs/zlib + media-libs/freetype + media-libs/tiff + media-libs/libpng + media-libs/jpeg + media-libs/openexr + media-libs/collada-dom + + x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + + doc? ( app-doc/doxygen )" +# sci-libs/gdal +#sci-libs/vtk + +RDEPEND="${DEPEND}" + +src_configure() { + CMAKE_BUILD_TYPE=Release + mycmakeargs=( + -DOSG_USE_OSGSUPPORT_LIBS=OFF + -DBOOST_ROOT=/usr + -DOSG_DOXY_DOC_TYPE=User + -DOSGBUILD_EXAMPLES_SIMPLE=ON + -DOSGBUILD_EXAMPLES_ADVANCED=ON + -DCOLLADA_INCLUDE_DIR=/usr/include/collada-dom + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + cd "${CMAKE_BUILD_DIR}" + emake Doc || die "building documentation failed" + fi +} + +src_install() { + cmake-utils_src_install + if use doc; then + cd "${CMAKE_BUILD_DIR}"/Doc + dohtml -r html/* || die "dohtml failed" + fi + if use examples; then + cd "${CMAKE_BUILD_DIR}"/demos + dobin mandelbrot/mandelbrot opengl/quaternion_demo || die "dobin failed" + fi +} |