| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/asc/asc-2.5.0.0.ebuild,v 1.3 2012/06/22 07:45:30 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
WX_GTK_VER=2.8
|
| 7 |
inherit eutils toolchain-funcs flag-o-matic wxwidgets games
|
| 8 |
|
| 9 |
DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series"
|
| 10 |
HOMEPAGE="http://www.asc-hq.org/"
|
| 11 |
SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2
|
| 12 |
http://www.asc-hq.org/music/frontiers.ogg
|
| 13 |
http://www.asc-hq.org/music/time_to_strike.ogg
|
| 14 |
http://www.asc-hq.org/music/machine_wars.ogg"
|
| 15 |
|
| 16 |
LICENSE="GPL-2"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="amd64 x86"
|
| 19 |
IUSE=""
|
| 20 |
|
| 21 |
RDEPEND="app-arch/bzip2
|
| 22 |
media-libs/libsdl
|
| 23 |
media-libs/libpng
|
| 24 |
media-libs/sdl-image[gif,jpeg,png]
|
| 25 |
media-libs/sdl-mixer[vorbis]
|
| 26 |
media-libs/sdl-sound
|
| 27 |
dev-libs/boost
|
| 28 |
dev-games/physfs
|
| 29 |
media-libs/xvid
|
| 30 |
dev-libs/expat
|
| 31 |
media-libs/freetype
|
| 32 |
dev-lang/lua
|
| 33 |
x11-libs/wxGTK:2.8[X]
|
| 34 |
dev-libs/libsigc++:1.2"
|
| 35 |
|
| 36 |
DEPEND="${RDEPEND}
|
| 37 |
dev-lang/perl
|
| 38 |
virtual/pkgconfig
|
| 39 |
app-arch/zip"
|
| 40 |
|
| 41 |
PATCHES=( "${FILESDIR}"/${P}-gcc47.patch )
|
| 42 |
|
| 43 |
src_unpack() {
|
| 44 |
local f
|
| 45 |
|
| 46 |
unpack ${P}.tar.bz2
|
| 47 |
for f in ${A}
|
| 48 |
do
|
| 49 |
case ${f} in
|
| 50 |
*ogg)
|
| 51 |
cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"
|
| 52 |
;;
|
| 53 |
esac
|
| 54 |
done
|
| 55 |
}
|
| 56 |
|
| 57 |
src_configure() {
|
| 58 |
# Added --disable-paraguitest for bugs 26402 and 4488
|
| 59 |
# Added --disable-paragui for bug 61154 since it's not really used much
|
| 60 |
# and the case is well documented at http://www.asc-hq.org/
|
| 61 |
if [[ $(gcc-major-version) -eq 4 ]] ; then
|
| 62 |
replace-flags -O3 -O2
|
| 63 |
fi
|
| 64 |
egamesconf \
|
| 65 |
--disable-paraguitest \
|
| 66 |
--disable-paragui \
|
| 67 |
--datadir="${GAMES_DATADIR_BASE}"
|
| 68 |
}
|
| 69 |
|
| 70 |
src_install() {
|
| 71 |
default
|
| 72 |
dohtml -r doc/*
|
| 73 |
prepgamesdirs
|
| 74 |
}
|