# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ESVN_REPO_URI="https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk/" inherit subversion DESCRIPTION="FreeOrion brings nation building to a galactic scale with its full-featured grand campaign and in-game racial histories, in addition to the classic 4X model of galactic conquest and tactical combat." HOMEPAGE="http://www.freeorion.org/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="fmod" DEPEND="dev-util/scons dev-libs/log4cpp dev-libs/boost >=media-gfx/graphviz-2.8" RDEPEND="${DEPEND}" #S="${WORKDIR}/${P}/FreeOrion" src_compile() { cd FreeOrion if ! use fmod; then sed '/# FMOD/,/# GraphViz/d' -i SConstruct sed "s:'client/human/HumanClientAppSoundFMOD.cpp',:#:" -i SConscript sed "s:HumanClientAppSoundFMOD:HumanClientAppSound:g" -i client/human/chmain.cpp fi # scons with_fmod_include=/usr/include/ with_fmod_libdir=/usr/lib/ # scons with_fmod=/usr/ scons || die "compile failed" } src_install() { scons prefix="${D}/usr/" pkgconfigdir="${D}/usr/lib/pkgconfig" install || die "install failed" }