1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
9 inherit cmake-utils eutils git-2 toolchain-funcs games
11 DESCRIPTION="Open Source Commander Keen clone"
12 HOMEPAGE="http://clonekeenplus.sourceforge.ne"
14 LICENSE="|| ( GPL-1 GPL-2 GPL-3 )
20 RDEPEND="media-libs/libogg
21 media-libs/libsdl[X,audio,opengl,video]
28 !tremor? ( media-libs/libvorbis )
29 tremor? ( media-libs/tremor )"
33 CMAKE_IN_SOURCE_BUILD=1
36 epatch "${FILESDIR}"/{cmake,findfile}.patch
39 -e "/SYSTEM_DATA_DIR/s#/usr/share#${GAMES_DATADIR}#" \
40 -i src/FindFile.h || die
44 local mycmakeargs arch
61 die "unsopported architecture"
66 -DAPPDIR="${GAMES_BINDIR}"
67 -DSHAREDIR="${GAMES_DATADIR}"/CommanderGenius
68 -DDOCDIR="/usr/share/${PF}/doc"
69 $(cmake-utils_use !tremor OGG)
70 $(cmake-utils_use tremor TREMOR)
73 cmake-utils_src_configure
77 mv vfsroot/cglogo512.png ${PN}.png || die
78 cmake-utils_src_install
79 doicon ${PN}.png || die
80 make_desktop_entry CGenius ${PN} ${PN}
86 elog "Check your settings in ~/.CommanderGenius/cgenius.cfg"
87 elog "after you have first started the game. You may need to"
88 elog "set \"OpenGL = true\" and adjust other settings."