diff options
Diffstat (limited to 'sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild')
-rw-r--r-- | sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild b/sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild new file mode 100644 index 0000000..a9cf523 --- /dev/null +++ b/sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild @@ -0,0 +1,73 @@ +# Copyright 2008-2012 Funtoo Technologies +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit qt4-r2 cmake-utils + +MY_P=${PN}-${PV/_rc/-RC} + +DESCRIPTION="A 3D multiple robot simulator with dynamics." +HOMEPAGE="http://gazebosim.org" +SRC_URI="${HOMEPAGE}/assets/distributions/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc player" + +RDEPEND=" + x11-libs/qt-gui:4 + dev-libs/libxml2 + dev-libs/tinyxml + dev-libs/protobuf + >=dev-libs/boost-1.40.0 + dev-cpp/tbb + media-libs/openal + media-video/ffmpeg + media-libs/freeglut + >=media-libs/freeimage-3.9.0 + || ( >=dev-games/ode-0.11.1 sci-physics/bullet ) + >=dev-games/ogre-1.7.1[freeimage,cg] + player? ( sci-electronics/player ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) +" + +S=${WORKDIR}/${MY_P}-x86_64 + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use player INCLUDE_PLAYER) + ) + + # dev-libs/tinyxml doesn't provide a pkg-config file, and needs to be + # compatible with std::string + mycmakeargs+=( + "-Dtinyxml_include_dirs=/usr/include" + "-Dtinyxml_library_dirs=/usr/lib" + "-Dtinyxml_libraries=/usr/lib/libtinyxml.so" + "-Dtinyxml_cflags=-DTIXML_USE_STL" + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use doc; then + cd ${CMAKE_BUILD_DIR} + emake doc + fi +} + +src_install() { + cmake-utils_src_install + + if use doc; then + dohtml -r ${CMAKE_BUILD_DIR}/doxygen/html/* + fi +} |