/[gentoo-x86]/games-strategy/scorched3d/scorched3d-44.ebuild
Gentoo

Contents of /games-strategy/scorched3d/scorched3d-44.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Feb 23 11:17:59 2015 UTC (4 years, 8 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Stable for ppc64, wrt bug #538986

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ppc64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/scorched3d/scorched3d-44.ebuild,v 1.6 2015/02/21 12:21:05 ago Exp $
4
5 EAPI=5
6 WX_GTK_VER=2.8
7 inherit autotools eutils wxwidgets games
8
9 DESCRIPTION="Multi-player tank battle in 3D (OpenGL)"
10 HOMEPAGE="http://www.scorched3d.co.uk/"
11 SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-${PV}-src.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc ppc64 x86"
16 IUSE="dedicated mysql"
17
18 RDEPEND="media-libs/libsdl[video]
19 media-libs/sdl-net
20 media-libs/libpng:0
21 sys-libs/zlib
22 virtual/jpeg:0
23 dev-libs/expat
24 media-fonts/dejavu
25 !dedicated? (
26 virtual/opengl
27 virtual/glu
28 media-libs/glew
29 media-libs/libogg
30 media-libs/libvorbis
31 media-libs/openal
32 media-libs/freealut
33 x11-libs/wxGTK:2.8[X]
34 media-libs/freetype:2
35 sci-libs/fftw:3.0
36 )
37 mysql? ( virtual/mysql )"
38 DEPEND="${RDEPEND}
39 !dedicated? ( virtual/pkgconfig )"
40
41 S=${WORKDIR}/scorched
42
43 src_prepare() {
44 epatch \
45 "${FILESDIR}"/${P}-fixups.patch \
46 "${FILESDIR}"/${P}-gcc43.patch \
47 "${FILESDIR}"/${P}-odbc.patch \
48 "${FILESDIR}"/${P}-win32.patch \
49 "${FILESDIR}"/${P}-freetype.patch \
50 "${FILESDIR}"/${P}-jpeg9.patch
51 eautoreconf
52 }
53
54 src_configure() {
55 egamesconf \
56 --with-fftw=/usr \
57 --with-ogg=/usr \
58 --with-vorbis=/usr \
59 --datadir="${GAMES_DATADIR}/${PN}" \
60 --with-docdir="/usr/share/doc/${PF}" \
61 --with-wx-config="${WX_CONFIG}" \
62 --without-pgsql \
63 $(use_with mysql) \
64 $(use_enable dedicated serveronly)
65 }
66
67 src_install() {
68 default
69 rm "${ED}${GAMES_DATADIR}"/${PN}/data/fonts/* || die
70 dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}/${PN}/data/fonts/dejavusans.ttf"
71 dosym /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf "${GAMES_DATADIR}/${PN}/data/fonts/dejavusconbd.ttf"
72 dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${GAMES_DATADIR}/${PN}/data/fonts/dejavusmobd.ttf"
73 if ! use dedicated ; then
74 newicon data/images/tank-old.bmp ${PN}.bmp || die
75 make_desktop_entry ${PN} "Scorched 3D" /usr/share/pixmaps/${PN}.bmp
76 fi
77 prepgamesdirs
78 }

  ViewVC Help
Powered by ViewVC 1.1.20