diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2012-05-12 14:41:22 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2012-05-12 14:41:22 +0000 |
commit | 5a15477eed155aef4d6b2829631609a7fd442e97 (patch) | |
tree | daef9a5945283c4329affd791dfb975555ba0068 /games-strategy/scorched3d/scorched3d-43.3d.ebuild | |
parent | remove old (diff) | |
download | historical-5a15477eed155aef4d6b2829631609a7fd442e97.tar.gz historical-5a15477eed155aef4d6b2829631609a7fd442e97.tar.bz2 historical-5a15477eed155aef4d6b2829631609a7fd442e97.zip |
Version bump. Bug #410845 by slepnoga and Matthias P. Braendli.
Package-Manager: portage-2.2.0_alpha101_p6/cvs/Linux x86_64
Diffstat (limited to 'games-strategy/scorched3d/scorched3d-43.3d.ebuild')
-rw-r--r-- | games-strategy/scorched3d/scorched3d-43.3d.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/games-strategy/scorched3d/scorched3d-43.3d.ebuild b/games-strategy/scorched3d/scorched3d-43.3d.ebuild new file mode 100644 index 000000000000..c24f2d8fdc65 --- /dev/null +++ b/games-strategy/scorched3d/scorched3d-43.3d.ebuild @@ -0,0 +1,70 @@ +# 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.1 2012/05/12 14:41:22 slyfox 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/${PN}/Scorched3D-${PV}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="dedicated mysql" + +RDEPEND="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 )" + +DEPEND="$RDEPEND" + +S=${WORKDIR}/scorched + +src_prepare() { + epatch "${FILESDIR}"/${P}-fixups.patch + epatch "${FILESDIR}"/${PN}-43.2a-gcc43.patch + epatch "${FILESDIR}"/${PN}-43.2a-odbc.patch + epatch "${FILESDIR}"/${PN}-43.2a-png15.patch + epatch "${FILESDIR}"/${PN}-43.2a-win32.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 +} |