blob: d5cdec77b775b1ea2bfd276554badc0ea943a2b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit cmake-utils subversion
DESCRIPTION="GiGi is an OpenGL interface library"
HOMEPAGE="http://gigi.sourceforge.net"
ESVN_REPO_URI="https://${PN}.svn.sourceforge.net/svnroot/${PN}/trunk"
ESVN_PROJECT="${PN}"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="debug devil doc ogre ois +sdl static-libs +threads"
RDEPEND="
>=dev-libs/boost-1.44
media-libs/freetype
x11-libs/libX11
virtual/opengl
devil? ( >=media-libs/devil-1.6.1 )
!devil? (
virtual/jpeg
media-libs/tiff
media-libs/libpng
)
ogre? (
threads? ( ||
( >=dev-games/ogre-1.7.1[boost-threads]
>=dev-games/ogre-1.7.1[poco-threads]
>=dev-games/ogre-1.7.1[tbb-threads] )
)
ois? ( dev-games/ois )
)
sdl? ( >=media-libs/libsdl-1.2 )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? ( app-doc/doxygen )
"
CMAKE_USE_DIR="${S}/GG"
#src_prepare() {
# # remove libtool
# cd "${CMAKE_USE_DIR}"
# rm -rf libltdl/ || die
# # remove cmake calls to libtool
# epatch "${FILESDIR}/unbundle-ltdl.patch"
# # use system headers
# sed -i \
# -e "s:GG/ltdl.h:ltdl.h:" \
# GG/PluginInterface.h || die
# # fix working with libpng1.4
# epatch "${FILESDIR}/libpng-14.patch"
#}
src_configure() {
use ogre && use ois && mycmakeargs=( "-DBUILD_OGRE_OIS_PLUGIN=ON" ) || mycmakeargs=( "-DBUILD_OGRE_OIS_PLUGIN=OFF" )
mycmakeargs+=(
"-DBUILD_TUTORIALS=OFF"
$(cmake-utils_use_build debug)
$(cmake-utils_use devil)
$(cmake-utils_use_build doc DOCUMENTATION)
$(cmake-utils_use_build ogre OGRE_DRIVER)
$(cmake-utils_use_build sdl SDL_DRIVER)
$(cmake-utils_use_build static-libs STATIC)
$(cmake-utils_use_build threads MULTI_THREADED)
)
cmake-utils_src_configure
}
|