Gentoo Archives: gentoo-commits

From: Locke Shinseiko <wizzleby@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-engines/bbge/
Date: Mon, 02 May 2011 20:49:46
Message-Id: fcd9189c88f274b221d0a609b08c6804bed88640.wizzleby@gentoo
1 commit: fcd9189c88f274b221d0a609b08c6804bed88640
2 Author: Locke Shinseiko <wizzleby <AT> gmail <DOT> com>
3 AuthorDate: Mon May 2 20:46:50 2011 +0000
4 Commit: Locke Shinseiko <wizzleby <AT> gmail <DOT> com>
5 CommitDate: Mon May 2 20:46:50 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=fcd9189c
7
8 [games-engine/bbge-9999] Updated ebuild from bugzilla, fixed tinyxml dependency (needs stl)
9
10 (Portage version: 2.2.0_alpha30/git/Linux x86_64, signed Manifest commit with key CE482794)
11
12 ---
13 games-engines/bbge/bbge-9999.ebuild | 19 ++++++++++---------
14 1 files changed, 10 insertions(+), 9 deletions(-)
15
16 diff --git a/games-engines/bbge/bbge-9999.ebuild b/games-engines/bbge/bbge-9999.ebuild
17 index 3f94471..c20ac8e 100644
18 --- a/games-engines/bbge/bbge-9999.ebuild
19 +++ b/games-engines/bbge/bbge-9999.ebuild
20 @@ -6,7 +6,7 @@ EAPI="2"
21 EHG_REPO_URI="http://hg.icculus.org/icculus/aquaria"
22 EHG_PROJECT="aquaria"
23
24 -inherit eutils flag-o-matic cmake-utils mercurial
25 +inherit flag-o-matic games cmake-utils mercurial
26
27 DESCRIPTION="The Bit-Blot Game Engine, used by Aquaria"
28 HOMEPAGE="http://www.bit-blot.com/"
29 @@ -14,9 +14,9 @@ HOMEPAGE="http://www.bit-blot.com/"
30 LICENSE="GPL-2"
31 SLOT="0"
32 KEYWORDS=""
33 -IUSE="static"
34 +IUSE="static-libs"
35
36 -RDEPEND="dev-libs/tinyxml
37 +RDEPEND=">=dev-libs/tinyxml-2.6.1-r1[stl]
38 media-libs/freetype:2
39 media-libs/ftgl
40 media-libs/glpng
41 @@ -31,11 +31,8 @@ DEPEND="${RDEPEND}"
42 S="${WORKDIR}/aquaria"
43
44 src_prepare() {
45 - # Use /usr/share/games/<appName> for data path.
46 - epatch "${FILESDIR}/gentoo-data-path.patch"
47 -
48 # Remove bundled stuff to ensure it's not used.
49 - rm -r BBGE/{AL,freetype2,FTGL,GL,glext,glpng*,iprof,libogg-*,libvorbis-*,SDL12,tinyxml*} || die
50 + rm -r BBGE/{GL,glext} || die
51
52 # Remove bundled sources.
53 # Don't build Aquaria.
54 @@ -45,11 +42,14 @@ src_prepare() {
55 -e '/ADD_EXECUTABLE[(]/,/[)]/d' \
56 CMakeLists.txt || die
57
58 + # Set the data prefix directory.
59 + echo "ADD_DEFINITIONS(-DBBGE_DATA_PREFIX=\"${GAMES_DATADIR}\")" >> CMakeLists.txt || die
60 +
61 # Always build shared.
62 echo 'ADD_LIBRARY(BBGE SHARED ${BBGE_SRCS})' >> CMakeLists.txt || die
63
64 # Optionally build static.
65 - if use static; then
66 + if use static-libs; then
67 echo 'ADD_LIBRARY(BBGE_Static STATIC ${BBGE_SRCS})' >> CMakeLists.txt || die
68 echo 'SET_TARGET_PROPERTIES(BBGE_Static PROPERTIES OUTPUT_NAME BBGE)' >> CMakeLists.txt || die
69 fi
70 @@ -58,7 +58,8 @@ src_prepare() {
71 echo 'TARGET_LINK_LIBRARIES(BBGE ftgl glpng openal SDL tinyxml vorbisfile z)' >> CMakeLists.txt || die
72
73 # Use system headers.
74 - sed -i 's:\.\./BBGE/::' BBGE/BitmapFont.h || die
75 + ln -snf ../ExternalLibs/glfont2 BBGE/glfont2 || die
76 + sed -i 's:\.\./ExternalLibs/::' BBGE/*.{cpp,h} || die
77 sed -i -r 's:["<](gl[a-z]*\.h)[">]:<GL/\1>:' BBGE/Base.h BBGE/Texture.cpp || die
78 sed -i -e 's:"FTGL\.h":<FTGL/ftgl.h>:' -e '/FTGLTextureFont\.h/d' BBGE/TTFFont.h || die
79 }