# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ESVN_REPO_URI="http://opensvn.csie.org/tuxanci_ng" inherit games cmake-utils subversion DESCRIPTION="Tuxanci is first cushion shooter based on well-known Czech game Bulanci." HOMEPAGE="http://www.tuxanci.org/" #SRC_URI="http://download.${PN}.org/${PV}/${P}-src.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="alsa debug dedicated nls" # alsa is used only when building client DEPEND="!dedicated? ( >=media-libs/libsdl-1.2.10 >=media-libs/sdl-ttf-2.0.7 >=media-libs/sdl-image-1.2.6-r1 alsa? ( >=media-libs/sdl-mixer-1.2.7 ) ) nls? ( sys-devel/gettext )" S="${WORKDIR}"/"${PN}" src_compile() { local mycmakeargs use alsa || mycmakeargs="${mycmakeargs} -DNO_Audio=1" use debug && mycmakeargs="${mycmakeargs} -DDebug=1" use dedicated && mycmakeargs="${mycmakeargs} -DServer=1" use nls && mycmakeargs="${mycmakeargs} -DNLS=1" mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_PREFIX=/usr/games -DCMAKE_DATA_PATH=/usr/share/games/ -DCMAKE_LOCALE_PATH=/usr/share/locale/ -DCMAKE_DOC_PATH=/usr/share/doc/ " cmake-utils_src_compile } src_install() { cmake-utils_src_install prepgamesdirs }