/[gentoo-x86]/games-strategy/asc/asc-2.5.0.0.ebuild
Gentoo

Contents of /games-strategy/asc/asc-2.5.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jun 22 07:45:30 2012 UTC (2 years ago) by jdhore
Branch: MAIN
Changes since 1.2: +2 -2 lines
marked x86 per bug 422097

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

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.2 2012/06/20 17:54:17 ago Exp $
4
5 EAPI=2
6 WX_GTK_VER=2.8
7 inherit 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 virtual/jpeg
23 media-libs/libsdl
24 media-libs/libpng
25 media-libs/sdl-image[gif,jpeg,png]
26 media-libs/sdl-mixer[vorbis]
27 media-libs/sdl-sound
28 dev-libs/boost
29 dev-games/physfs
30 media-libs/libvorbis
31 media-libs/xvid
32 dev-libs/expat
33 media-libs/freetype
34 dev-lang/lua
35 x11-libs/wxGTK:2.8[X]
36 dev-libs/libsigc++:1.2"
37 DEPEND="${RDEPEND}
38 dev-lang/perl
39 virtual/pkgconfig
40 app-arch/zip"
41
42 src_unpack() {
43 local f
44
45 unpack ${P}.tar.bz2
46 for f in ${A}
47 do
48 case ${f} in
49 *ogg)
50 cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"
51 ;;
52 esac
53 done
54 }
55
56 src_configure() {
57 # Added --disable-paraguitest for bugs 26402 and 4488
58 # Added --disable-paragui for bug 61154 since it's not really used much
59 # and the case is well documented at http://www.asc-hq.org/
60 if [[ $(gcc-major-version) -eq 4 ]] ; then
61 replace-flags -O3 -O2
62 fi
63 egamesconf \
64 --disable-dependency-tracking \
65 --disable-paraguitest \
66 --disable-paragui \
67 --datadir="${GAMES_DATADIR_BASE}"
68 }
69
70 src_install() {
71 emake DESTDIR="${D}" install || die "emake install failed"
72 dodoc AUTHORS ChangeLog README TODO
73 dohtml -r doc/*
74 prepgamesdirs
75 }

  ViewVC Help
Powered by ViewVC 1.1.20