You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-strategy/dark-oberon/dark-oberon-1.0.2_rc1.ebuild

46 lines
1.0 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/dark-oberon/dark-oberon-1.0.2_rc1.ebuild,v 1.4 2010/09/16 12:20:32 tupone Exp $
EAPI=2
inherit games
MY_PV=${PV/_rc/-RC}
MY_P=${PN}-${MY_PV}
DESCRIPTION="a Warcraft like RTS game"
HOMEPAGE="http://dark-oberon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="fmod"
DEPEND="virtual/opengl
virtual/glu
media-libs/glfw
fmod? ( =media-libs/fmod-3* )"
S=${WORKDIR}/${MY_P}
PATCHES=(
"${FILESDIR}/${P}"-gcc41.patch
"${FILESDIR}/${P}"-gentoo.patch
"${FILESDIR}"/${P}-ldflags.patch
)
src_compile() {
emake -C src $(use fmod && echo "SOUND=1") ../${PN} || die "emake failed"
}
src_install() {
dogamesbin dark-oberon || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/${PN}"
doins -r dat maps races schemes || die "doins failed"
dodoc README docs/* || die "dodoc failed"
prepgamesdirs
}