1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils flag-o-matic readme.gentoo-r1
7 DESCRIPTION="Multiplayer AI script based strategy game"
8 HOMEPAGE="http://galaxyhack.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
10 mirror://gentoo/${PN}.png"
12 LICENSE="GPL-2 galaxyhack"
14 KEYWORDS="~amd64 ~x86"
18 media-libs/libsdl[video]
19 media-libs/sdl-image[png]
20 media-libs/sdl-mixer[mod,vorbis]
25 S="${WORKDIR}/${PN}/src"
27 DISABLE_AUTOFORMATTING="yes"
29 Settings will default to those found in
30 /usr/share/galaxyhack/settings.dat
31 Per user settings can be specified by creating
32 ~/.galaxyhack/settings.dat
34 Additional user submitted fleets can be downloaded from
35 http://galaxyhack.sourceforge.net/viewfleets.php
42 "${FILESDIR}"/${P}-destdirs.patch \
43 "${FILESDIR}"/${P}-boost.patch \
44 "${FILESDIR}"/${P}-gcc43.patch \
45 "${FILESDIR}"/${P}-boost-1.50.patch \
46 "${FILESDIR}"/${P}-format.patch \
47 "${FILESDIR}"/${P}-gentoo.patch
48 sed -i "s:@GAMES_DATADIR@:/usr/share:" \
50 sed -i "/Base data path/s:pwd:/usr/share/${PN}:" \
51 ../settings.dat || die
57 insinto /usr/share/${PN}
58 doins -r fleets gamedata graphics music standardpictures \
61 readme.gentoo_create_doc
62 doicon "${DISTDIR}"/${PN}.png
63 make_desktop_entry ${PN} GalaxyHack
67 readme.gentoo_print_elog