# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 CMAKE_IN_SOURCE_BUILD=1 inherit git-r3 cmake-utils eutils games DESCRIPTION="Classic 2D jump'n run sidescroller game in a style similar to the original Super Mario Bros." HOMEPAGE="http://supertux.github.io/index.html" SRC_URI="" EGIT_REPO_URI="https://github.com/SuperTux/supertux.git" LICENSE="GPL-2" SLOT="2" KEYWORDS="" IUSE="opengl curl debug" RDEPEND="media-libs/libsdl2[joystick] media-libs/sdl2-image[png,jpeg] media-libs/libvorbis dev-games/physfs media-libs/openal media-libs/glew x11-libs/libXt dev-games/physfs dev-libs/boost[static-libs] opengl? ( virtual/opengl ) curl? ( net-misc/curl )" DEPEND="${RDEPEND}" #DOCS="TODO WHATSNEW.txt data/credits.txt" src_unpack() { git-r3_src_unpack } src_configure() { local mycmakeargs=( -DWERROR=OFF -DINSTALL_SUBDIR_BIN=games/bin -DINSTALL_SUBDIR_DOC=share/doc/${P} $(cmake-utils_use_enable opengl OPENGL) $(cmake-utils_use_enable debug SQDBG) $(cmake-utils_use debug DEBUG) ) cmake-utils_src_configure } src_compile() { cmake-utils_src_compile } src_install() { cmake-utils_src_install prepgamesdirs }