blob: 027a1182d5a2a182ada40867bba1eefa0343786c [file] [log] [blame]
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.21.1.ebuild,v 1.4 2010/01/22 20:10:21 ranger Exp $
EAPI=2
inherit autotools eutils wxwidgets games
DESCRIPTION="A graphical rogue-like adventure game"
HOMEPAGE="http://scourgeweb.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz
mirror://sourceforge/${PN}/${P}.data.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RDEPEND="virtual/glu
virtual/opengl
media-libs/freetype:2
media-libs/libsdl[joystick]
media-libs/sdl-net
media-libs/sdl-mixer[vorbis]
media-libs/sdl-ttf
virtual/libintl"
DEPEND="${RDEPEND}
sys-devel/gettext"
S=${WORKDIR}/${PN}
src_prepare() {
# bug #257601
sed -i \
-e '/AC_CHECK_HEADERS.*glext/ s:):, [#include <GL/gl.h>] ):' \
configure.in \
|| die "sed failed"
eautoreconf
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--with-data-dir="${GAMES_DATADIR}"/${PN} \
--localedir=/usr/share/locale
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto "${GAMES_DATADIR}"/${PN}
doins -r ../scourge_data/* || die "doins failed"
doicon assets/scourge.png
make_desktop_entry scourge S.C.O.U.R.G.E.
dodoc AUTHORS README
prepgamesdirs
}