blob: bb220e7cdcfe8c65731833658dcd73e0653649e5 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/crystalspace-1.0.ebuild,v 1.1 2007/01/31 08:50:46 tupone Exp $
MY_P=${PN}-src-${PV}
DESCRIPTION="Portable 3D Game Development Kit written in C++"
HOMEPAGE="http://crystal.sourceforge.net/"
SRC_URI="mirror://sourceforge/crystal/${MY_P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="3ds alsa cal3d cegui cg java jpeg lcms mng ode perl png python sdl
truetype vorbis wxwindows"
RDEPEND="virtual/opengl
virtual/glu
java? ( virtual/jre )
cg? ( media-gfx/nvidia-cg-toolkit )
ode? ( dev-games/ode )
cal3d? ( =media-libs/cal3d-0.11* )
jpeg? ( media-libs/jpeg
lcms? ( media-libs/lcms ) )
sdl? ( media-libs/libsdl )
vorbis? ( media-libs/libogg
media-libs/libvorbis )
truetype? ( >=media-libs/freetype-2.1 )
alsa? ( media-libs/alsa-lib )
mng? ( media-libs/libmng )
png? ( media-libs/libpng )
wxwindows? ( x11-libs/pango
x11-libs/wxGTK )
x11-libs/libXaw
x11-libs/libXxf86vm"
DEPEND="${RDEPEND}
3ds? ( media-libs/lib3ds )
java? ( dev-java/ant-core
virtual/jdk )
dev-util/jam
dev-lang/swig"
S="${WORKDIR}/${MY_P}"
src_compile() {
econf --enable-cpu-specific-optimizations=no \
$(use_with perl) \
$(use_with python) \
$(use_with java) \
$(use_with png) \
$(use_with jpeg) \
$(use_with lcms) \
$(use_with mng) \
$(use_with vorbis) \
$(use_with 3ds) \
$(use_with ode) \
$(use_with truetype freetype2) \
$(use_with cal3d) \
$(use_with sdl) \
$(use_with wxwindows wx) \
$(use_with cegui CEGUI) \
$(use_with cg Cg) \
$(use_with alsa asound)
#remove unwanted CFLAGS added by ./configure
sed -i -e '/COMPILER\.CFLAGS\.optimize/d' \
Jamconfig
jam || die "compile failed"
}
src_install() {
make install DESTDIR=${D} || die "make install failed"
# Fill cache directory for the examples
for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \
terrain terrainf;
do
cslight -video=null ${D}/usr/share/${PN}/data/maps/$dir;
done
dodoc README
}
|