# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" inherit git-r3 cmake-utils eutils SLOT="0" DESCRIPTION="Open source scenegraph for real-time 3d-graphics based on OpenGL" HOMEPAGE="http://www.opensg.org" EGIT_REPO_URI="https://github.com/vossg/OpenSGDevMaster/" LICENSE="LGPLv2" KEYWORDS="~amd64 ~x86" # TODO: Add USE flags for: libmini, OpenNurbs, Python IUSE="collada gdal glut jpeg openexr openmp png tiff truetype vtk" DEPEND="" # Add dependency on Flex and Bison? RDEPEND="${RDEPEND} dev-libs/boost sys-devel/flex sys-devel/bison virtual/opengl collada? ( media-liba/opencollada ) gdal? ( sci-libs/gdal ) glut? ( media-libs/freeglut ) jpeg? ( virtual/jpeg ) openexr? ( media-libs/openexr ) png? ( media-libs/libpng ) tiff? ( media-libs/tiff ) truetype? ( media-libs/freetype ) vtk? ( sci-libs/vtk ) " CMAKE_USE_DIR="${BUILD_DIR}" # Needs to be "Debug" or "Release" # TODO: Add debug USE flag CMAKE_BUILD_TYPE="Release" src_prepare() { epatch "${FILESDIR}/${P}-cmake.patch" cmake-utils_src_prepare } src_configure() { local mycmakeargs=( $(cmake-utils_use_with collada), $(cmake-utils_use_with gdal), $(cmake-utils_use_with glut), $(cmake-utils_use_with jpeg), $(cmake-utils_use_with openexr), $(cmake-utils_use openmp), $(cmake-utils_use_with png), $(cmake-utils_use_with tiff), $(cmake-utils_use_with truetype FT2), $(cmake-utils_use_with truetype FONTCOFIG), $(cmake-utils_use_with vtk), ) cmake-utils_src_configure }