inherit autotools eutils python DESCRIPTION="A 3D multiple robot simulator with dynamics." HOMEPAGE="http://playerstage.sourceforge.net/index.php?src=gazebo" SRC_URI="mirror://sourceforge/playerstage/gazebo-${PV}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="python wxwindows 3ds proj gdal zlib gtk" RDEPEND=" virtual/opengl virtual/glut >=dev-games/ode-0.039 >=sci-electronics/player-2.0 dev-libs/libxml2 gtk? ( x11-libs/gtk+ ) wxwindows? ( dev-python/wxpython ) zlib? ( sys-libs/zlib ) python? ( dev-lang/python ) 3ds? ( media-libs/lib3ds ) proj? ( sci-libs/proj ) gdal? ( sci-libs/gdal )" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.9.0 python? ( dev-lang/swig )" src_compile() { local models model cfgmodels models="avatarheli blimp clodbuster carchassis factory garmingps groundplane lightsource monocam observercam pioneer2at pioneer2dx pioneer2gripper peoplebot segwayrmp shrimp sicklms200 simplesolid skydome sonyvid30 canonvcc4 stereohead truthwidget wheelchair b21r atrv bandit road terrain" for model in ${models}; do cfgmodels="${cfgmodels} $(use_enable ${model})" done econf \ $(use_enable python) \ $(use_enable wxwindows wxgazebo) \ $(use_enable gdal gzbuilder) \ ${cfgmodels} || die "configure failed" emake || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS README TODO }