blob: dd10673834b7484f2375f9df961fe50651de48e4 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/cegui-0.6.2b.ebuild,v 1.8 2010/09/16 16:32:12 scarabeus Exp $
EAPI=2
inherit autotools eutils
MY_P=CEGUI-${PV%b}
DESCRIPTION="Crazy Eddie's GUI System"
HOMEPAGE="http://www.cegui.org.uk/"
SRC_URI="mirror://sourceforge/crayzedsgui/${MY_P}b.tar.gz
doc? ( mirror://sourceforge/crayzedsgui/${MY_P}-DOCS.tar.gz )"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="debug devil directfb doc examples expat irrlicht lua opengl xerces-c xml"
RDEPEND="dev-libs/libpcre
media-libs/freetype:2
devil? ( media-libs/devil )
directfb? ( dev-libs/DirectFB )
expat? ( dev-libs/expat )
irrlicht? ( dev-games/irrlicht )
lua? (
dev-lang/lua
dev-lang/toluapp
)
opengl? (
virtual/opengl
virtual/glu
media-libs/freeglut
media-libs/glew
)
xerces-c? ( dev-libs/xerces-c )
xml? ( dev-libs/libxml2 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-dups.patch
sed -i \
-e 's/ILvoid/void/g' \
ImageCodecModules/DevILImageCodec/CEGUIDevILImageCodec.cpp \
|| die "sed failed"
if use examples ; then
cp -r Samples Samples.clean
rm -f $(find Samples.clean -name 'Makefile*')
rm -rf Samples.clean/bin
fi
eautoreconf #220040
}
src_configure() {
econf \
$(use_enable debug) \
$(use_enable devil) \
$(use_enable directfb directfb-renderer) \
$(use_enable examples samples) \
$(use_enable expat) \
$(use_enable irrlicht irrlicht-renderer) \
$(use_enable lua external-toluapp) \
$(use_enable lua lua-module) \
$(use_enable lua toluacegui) \
$(use_enable opengl external-glew) \
$(use_enable opengl opengl-renderer) \
$(use_enable xerces-c) \
$(use_enable xml libxml) \
--enable-static \
--enable-tga \
--enable-tinyxml \
--disable-corona \
--disable-dependency-tracking \
--disable-external-tinyxml \
--disable-freeimage \
--disable-samples \
--disable-silly \
--without-gtk2 \
--without-ogre-renderer
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog README TODO
if use doc ; then
dohtml -r documentation/api_reference || die "dohtml failed"
dodoc documentation/*.pdf || die "dodoc failed"
fi
if use examples ; then
insinto /usr/share/doc/${PF}/Samples
doins -r Samples.clean/* || die "doins failed"
fi
}
|