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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Oct 19 08:17:34 2012 UTC (2 years ago) by hasufell
Branch: MAIN
version bump

(Portage version: 2.2.0_alpha140/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

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

  ViewVC Help
Powered by ViewVC 1.1.20