You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.6 KiB
69 lines
1.6 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit eutils flag-o-matic readme.gentoo-r1
|
||
13 years ago
|
|
||
10 years ago
|
DESCRIPTION="Multiplayer AI script based strategy game"
|
||
13 years ago
|
HOMEPAGE="http://galaxyhack.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
|
||
|
mirror://gentoo/${PN}.png"
|
||
|
|
||
|
LICENSE="GPL-2 galaxyhack"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
media-libs/libsdl[video]
|
||
8 years ago
|
media-libs/sdl-image[png]
|
||
|
media-libs/sdl-mixer[mod,vorbis]
|
||
6 years ago
|
>=dev-libs/boost-1.34
|
||
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
13 years ago
|
|
||
6 years ago
|
S="${WORKDIR}/${PN}/src"
|
||
|
|
||
|
DISABLE_AUTOFORMATTING="yes"
|
||
|
DOC_CONTENTS="
|
||
|
Settings will default to those found in
|
||
|
/usr/share/galaxyhack/settings.dat
|
||
|
Per user settings can be specified by creating
|
||
|
~/.galaxyhack/settings.dat
|
||
|
|
||
|
Additional user submitted fleets can be downloaded from
|
||
|
http://galaxyhack.sourceforge.net/viewfleets.php
|
||
|
"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
13 years ago
|
edos2unix Makefile
|
||
6 years ago
|
eapply \
|
||
13 years ago
|
"${FILESDIR}"/${P}-destdirs.patch \
|
||
|
"${FILESDIR}"/${P}-boost.patch \
|
||
|
"${FILESDIR}"/${P}-gcc43.patch \
|
||
12 years ago
|
"${FILESDIR}"/${P}-boost-1.50.patch \
|
||
8 years ago
|
"${FILESDIR}"/${P}-format.patch \
|
||
13 years ago
|
"${FILESDIR}"/${P}-gentoo.patch
|
||
6 years ago
|
sed -i "s:@GAMES_DATADIR@:/usr/share:" \
|
||
9 years ago
|
Main.cpp || die
|
||
6 years ago
|
sed -i "/Base data path/s:pwd:/usr/share/${PN}:" \
|
||
9 years ago
|
../settings.dat || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
dobin "${PN}"
|
||
13 years ago
|
cd ..
|
||
6 years ago
|
insinto /usr/share/${PN}
|
||
13 years ago
|
doins -r fleets gamedata graphics music standardpictures \
|
||
12 years ago
|
settings.dat
|
||
13 years ago
|
dodoc readme.txt
|
||
6 years ago
|
readme.gentoo_create_doc
|
||
13 years ago
|
doicon "${DISTDIR}"/${PN}.png
|
||
|
make_desktop_entry ${PN} GalaxyHack
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
6 years ago
|
readme.gentoo_print_elog
|
||
13 years ago
|
}
|