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.
84 lines
1.8 KiB
84 lines
1.8 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
|
||
|
inherit desktop edos2unix toolchain-funcs 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"
|
||
3 years ago
|
S="${WORKDIR}/${PN}/src"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-2 galaxyhack"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
|
||
3 years ago
|
DEPEND="
|
||
3 years ago
|
>=dev-libs/boost-1.34:=
|
||
6 years ago
|
media-libs/libsdl[video]
|
||
9 years ago
|
media-libs/sdl-image[png]
|
||
|
media-libs/sdl-mixer[mod,vorbis]
|
||
6 years ago
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
13 years ago
|
|
||
6 years ago
|
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
|
|
||
3 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-destdirs.patch
|
||
|
"${FILESDIR}"/${P}-boost.patch
|
||
|
"${FILESDIR}"/${P}-gcc43.patch
|
||
|
"${FILESDIR}"/${P}-boost-1.50.patch
|
||
|
"${FILESDIR}"/${P}-format.patch
|
||
|
"${FILESDIR}"/${P}-gentoo.patch
|
||
|
)
|
||
|
|
||
13 years ago
|
src_prepare() {
|
||
3 years ago
|
edos2unix *.cpp Makefile
|
||
|
|
||
6 years ago
|
default
|
||
3 years ago
|
|
||
6 years ago
|
sed -i "s:@GAMES_DATADIR@:/usr/share:" \
|
||
10 years ago
|
Main.cpp || die
|
||
6 years ago
|
sed -i "/Base data path/s:pwd:/usr/share/${PN}:" \
|
||
10 years ago
|
../settings.dat || die
|
||
3 years ago
|
|
||
|
sed -i \
|
||
|
-e 's:INSTALL_DIR="${GAMES_DATADIR}":INSTALL_DIR="/usr/share/":' \
|
||
|
-e 's:INSTALL_BIN_DIR="${GAMES_BINDIR}":INSTALL_BIN_DIR="/usr/bin":' \
|
||
|
Makefile || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
tc-export CXX
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
dobin ${PN}
|
||
|
cd .. || die
|
||
|
|
||
6 years ago
|
insinto /usr/share/${PN}
|
||
13 years ago
|
doins -r fleets gamedata graphics music standardpictures \
|
||
12 years ago
|
settings.dat
|
||
3 years ago
|
|
||
13 years ago
|
dodoc readme.txt
|
||
6 years ago
|
readme.gentoo_create_doc
|
||
3 years ago
|
|
||
13 years ago
|
doicon "${DISTDIR}"/${PN}.png
|
||
|
make_desktop_entry ${PN} GalaxyHack
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
6 years ago
|
readme.gentoo_print_elog
|
||
13 years ago
|
}
|