1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools toolchain-funcs flag-o-matic wxwidgets
8 DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series"
9 HOMEPAGE="http://www.asc-hq.org/"
10 SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2
11 http://www.asc-hq.org/music/frontiers.ogg
12 http://www.asc-hq.org/music/time_to_strike.ogg
13 http://www.asc-hq.org/music/machine_wars.ogg"
17 KEYWORDS="~amd64 ~x86"
20 RDEPEND="app-arch/bzip2
25 dev-libs/libsigc++:1.2
27 media-libs/libsdl[video]
28 media-libs/sdl-image[gif,jpeg,png]
29 media-libs/sdl-mixer[vorbis]
33 x11-libs/wxGTK:${WX_GTK_VER}[X]"
41 "${FILESDIR}/"/${P}-gcc6-nothrow-in-dtors.patch
42 "${FILESDIR}/"/${P}-freetype_pkgconfig.patch #657998
53 cp "${DISTDIR}/${f}" "${S}/data/music" || die
61 # required for freetype_pkgconfig patch
66 need-wxwidgets unicode
67 # Added --disable-paraguitest for bugs 26402 and 4488
68 # Added --disable-paragui for bug 61154 since it's not really used much
69 # and the case is well documented at http://www.asc-hq.org/
70 if [[ $(gcc-major-version) -eq 4 ]] ; then
76 --datadir="/usr/share"
78 econf "${myeconfargs[@]}"