1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 inherit autotools eutils wxwidgets
10 DESCRIPTION="Multi-player tank battle in 3D (OpenGL)"
11 HOMEPAGE="http://www.scorched3d.co.uk/"
12 SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-${PV}-src.tar.gz"
16 KEYWORDS="~amd64 ~ppc64 ~x86"
17 IUSE="dedicated mysql"
23 media-libs/libsdl[video]
35 x11-libs/wxGTK:${WX_GTK_VER}[X]
39 mysql? ( virtual/mysql )"
41 !dedicated? ( virtual/pkgconfig )"
46 "${FILESDIR}"/${P}-fixups.patch
47 "${FILESDIR}"/${P}-gcc43.patch
48 "${FILESDIR}"/${P}-odbc.patch
49 "${FILESDIR}"/${P}-win32.patch
50 "${FILESDIR}"/${P}-freetype.patch
51 "${FILESDIR}"/${P}-jpeg9.patch
52 "${FILESDIR}"/${P}-wxgtk.patch
53 "${FILESDIR}"/${P}-fix-c++14.patch
62 src/launcher/wxdialogs/SettingsDialog.cpp \
63 src/launcher/wxdialogs/DisplayDialog.cpp \
64 src/launcher/wxdialogs/Display.cpp \
65 src/launcher/wxdialogs/KeyDialog.cpp
72 --datadir="${EPREFIX}"/usr/share/${PN} \
73 --with-fftw="${EPREFIX}"/usr \
74 --with-ogg="${EPREFIX}"/usr \
75 --with-vorbis="${EPREFIX}"/usr \
76 --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \
77 --with-wx-config="${WX_CONFIG}" \
80 $(use_enable dedicated serveronly)
86 # remove bundled fonts
87 rm "${ED%/}"/usr/share/${PN}/data/fonts/* || die
88 dosym ../../../fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/data/fonts/dejavusans.ttf
89 dosym ../../../fonts/dejavu/DejaVuSansCondensed-Bold.ttf /usr/share/${PN}/data/fonts/dejavusconbd.ttf
90 dosym ../../../fonts/dejavu/DejaVuSansMono-Bold.ttf /usr/share/${PN}/data/fonts/dejavusmobd.ttf
92 if ! use dedicated; then
93 newicon data/images/tank-old.bmp ${PN}.bmp
94 make_desktop_entry ${PN} "Scorched 3D" /usr/share/pixmaps/${PN}.bmp