# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit games cmake-utils DESCRIPTION="An online multiplayer, free software engine for Doom and Doom II" HOMEPAGE="http://odamex.net/" SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${PN}-src-${PV}.tar.bz2" S="${WORKDIR}/${PN}-src-${PV}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="+client +wxwindows server portmidi test" DEPEND="client? ( >=media-libs/libsdl-1.2.9 >=media-libs/sdl-mixer-1.2.6 portmidi? ( media-libs/portmidi ) ) wxwindows? ( x11-libs/wxGTK:2.8[X] ) test? ( dev-lang/tcl )" RDEPEND="${DEPEND}" src_configure() { # FIXME: portmidi is automagically detected by a bundled cmake module, and I # don't know the right incantation to make this work local mycmakeargs=( $(cmake-utils_use portmidi) ) cmake-utils_src_configure } # Need a way to install client/server separately src_install() { # FIXME: this dies because none of the generated makefiles have "install" cmake-utils_src_install newicon "${S}/media/icon_odamex_128.png" "odamex.png" newicon "${S}/media/icon_odalaunch_128.png" "odalaunch.png" make_desktop_entry odamex "Odamex" odamex make_desktop_entry odalaunch "Odamex Launcher" odalaunch }