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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Nov 17 18:05:47 2012 UTC (23 months, 2 weeks ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

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.2 2012/06/02 19:53:52 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 bzip2? ( app-arch/bzip2 )
26 mikmod? ( media-libs/libmikmod )
27 mng? ( media-libs/libmng )
28 vorbis? ( media-libs/libvorbis
29 theora? ( media-libs/libtheora )
30 )"
31 DEPEND="${RDEPEND}
32 doc? ( app-doc/doxygen )
33 virtual/pkgconfig"
34
35 REQUIRED_USE="theora? ( vorbis )"
36
37 S=${WORKDIR}/${PN}_${PV}.orig
38
39 src_prepare() {
40 epatch "${FILESDIR}"/${P}-build.patch \
41 "${FILESDIR}"/${P}-debug.patch
42 }
43
44 src_configure() {
45 # there are in-source switches
46 use debug && CMAKE_BUILD_TYPE=Debug
47
48 local mycmakeargs=(
49 -DBINDIR="${GAMES_BINDIR}"
50 -DSBINDIR="${GAMES_BINDIR}"
51 $(cmake-utils_use_with bzip2 BZIP2)
52 $(cmake-utils_use_enable doc DOC)
53 $(cmake-utils_use_with mikmod MIKMOD)
54 $(cmake-utils_use_with mng MNG)
55 $(cmake-utils_use_with vorbis OGGVORBIS)
56 $(cmake-utils_use_with theora THEORA)
57 -DENABLE_DEV=ON
58 )
59
60 cmake-utils_src_configure
61 }
62
63 src_compile() {
64 cmake-utils_src_compile
65 }
66
67 src_install() {
68 cmake-utils_src_install
69 prepgamesdirs
70 }

  ViewVC Help
Powered by ViewVC 1.1.20