/[gentoo-x86]/games-engines/stratagus/stratagus-2.2.6.ebuild
Gentoo

Contents of /games-engines/stratagus/stratagus-2.2.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon May 28 11:54:46 2012 UTC (2 years, 3 months ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
revbump to fix useflags

(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

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-engines/stratagus/stratagus-2.2.6.ebuild,v 1.1 2012/05/27 20:24:24 hasufell Exp $
4
5 EAPI=2
6 inherit cmake-utils eutils games
7
8 DESCRIPTION="A realtime strategy game engine"
9 HOMEPAGE="http://stratagus.sourceforge.net/"
10 SRC_URI="http://launchpad.net/stratagus/trunk/${PV}/+download/stratagus_${PV}.orig.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="bzip2 debug doc mikmod mng theora vorbis"
16
17 RDEPEND="x11-libs/libX11
18 virtual/opengl
19 dev-db/sqlite:3
20 >=dev-lang/lua-5
21 dev-lua/toluapp
22 media-libs/libpng:0
23 media-libs/libsdl[audio,opengl,video]
24 bzip2? ( app-arch/bzip2 )
25 mikmod? ( media-libs/libmikmod )
26 mng? ( media-libs/libmng )
27 theora? ( media-libs/libtheora media-libs/libvorbis )
28 vorbis? ( media-libs/libvorbis )"
29 DEPEND="${RDEPEND}
30 doc? ( app-doc/doxygen )"
31
32 S=${WORKDIR}/${PN}_${PV}.orig
33
34 src_prepare() {
35 epatch "${FILESDIR}"/${P}-build.patch
36 }
37
38 src_configure() {
39 local mycmakeargs=(
40 -DBINDIR="${GAMES_BINDIR}"
41 -DSBINDIR="${GAMES_BINDIR}"
42 $(cmake-utils_use_with bzip2)
43 $(cmake-utils_use_with debug)
44 $(cmake-utils_use_enable doc)
45 $(cmake-utils_use_with mikmod)
46 $(cmake-utils_use_with mng)
47 $(cmake-utils_use_with theora)
48 $(cmake-utils_use_with vorbis oggvorbis)
49 -DENABLE_DEV=ON
50 )
51
52 cmake-utils_src_configure
53 }
54
55 src_compile() {
56 cmake-utils_src_compile
57 }
58
59 src_install() {
60 cmake-utils_src_install
61 prepalldocs
62 prepgamesdirs
63 }

  ViewVC Help
Powered by ViewVC 1.1.20