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/scorched3d/scorched3d-43.3d.ebuild

71 lines
1.7 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/scorched3d-43.3d.ebuild,v 1.7 2012/08/08 19:53:17 ranger Exp $
EAPI=2
WX_GTK_VER=2.8
inherit autotools eutils wxwidgets games
DESCRIPTION="Multi-player tank battle in 3D (OpenGL)"
HOMEPAGE="http://www.scorched3d.co.uk/"
SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-${PV}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="dedicated mysql"
DEPEND="media-libs/libsdl[video]
media-libs/sdl-net
media-libs/libpng
virtual/jpeg:0
dev-libs/expat
!dedicated? (
virtual/opengl
virtual/glu
media-libs/libogg
media-libs/libvorbis
media-libs/openal
media-libs/freealut
x11-libs/wxGTK:2.8[X]
media-libs/freetype:2
sci-libs/fftw:3.0
)
mysql? ( virtual/mysql )"
S=${WORKDIR}/scorched
src_prepare() {
epatch \
"${FILESDIR}"/${P}-fixups.patch \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-odbc.patch \
"${FILESDIR}"/${P}-png15.patch \
"${FILESDIR}"/${P}-win32.patch \
"${FILESDIR}"/${P}-gcc47.patch
eautoreconf
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--with-fftw=/usr \
--with-ogg=/usr \
--with-vorbis=/usr \
--datadir="${GAMES_DATADIR}/${PN}" \
--with-docdir="/usr/share/doc/${PF}" \
--with-wx-config="${WX_CONFIG}" \
--without-pgsql \
$(use_with mysql) \
$(use_enable dedicated serveronly)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
if ! use dedicated ; then
newicon data/images/tank-old.bmp ${PN}.bmp || die
make_desktop_entry ${PN} "Scorched 3D" /usr/share/pixmaps/${PN}.bmp
fi
prepgamesdirs
}