blob: 11a5f25a911d534ec15177c3803ac56b6f78366b (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/crystalspace-0.98.4.20050224.ebuild,v 1.2 2005/02/28 17:31:50 mr_bones_ Exp $
inherit eutils
#MY_P="cs${PV:2:2}_00${PV:5:1}"
MY_P="${P}"
DESCRIPTION="portable 3D Game Development Kit written in C++"
HOMEPAGE="http://www.crystalspace3d.org"
SRC_URI="mirror://sourceforge/crystal/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE="3ds mikmod mng oggvorbis openal truetype"
RDEPEND="sys-libs/zlib
>=media-libs/libpng-1.2.1
>=media-libs/jpeg-6b
mng? ( media-libs/libmng )
mikmod? ( media-libs/libmikmod )
3ds? ( media-libs/lib3ds )
truetype? ( >=media-libs/freetype-2.0 )
openal? ( media-libs/openal )
cal3d? ( >=media-libs/cal3d-0.10.0 )
oggvorbis? (
>=media-libs/libogg-1.0
>=media-libs/libvorbis-1.0 )
dev-games/ode
>=dev-lang/perl-5.6.1"
DEPEND="${RDEPEND}
>=sys-apps/portage-2.0.51
|| ( dev-util/jam dev-util/boost-jam )
x86? ( dev-lang/nasm )"
S="${WORKDIR}/CS"
CRYSTAL_PREFIX="/opt/crystal"
src_unpack() {
unpack ${A}
cd "${S}"
echo "CRYSTAL=\"${CRYSTAL_PREFIX}\"" > 90crystalspace
}
src_compile() {
CONFIGURE_OPTS=""
if use cal3d; then
CONFIGURE_OPTS=" --with-libcal3d=/home/andrew/development/cal3d "
fi
./configure --prefix=${CRYSTAL_PREFIX} ${CONFIGURE_OPTS} || die "configure failed"
jam all || die "compile failed"
}
src_install() {
jam -sprefix="${D}"${CRYSTAL_PREFIX} install
# symlink for cs-config
dodir /usr/bin
dosym ${CRYSTAL_PREFIX}/bin/cs-config /usr/bin/cs-config
# make sure these files dont have $D
dosed ${CRYSTAL_PREFIX}/{bin/cs-config,etc/crystalspace/vfs.cfg}
# fix perms so everyone can read these things
find "${D}"/${CRYSTAL_PREFIX} -type f -exec chmod a+r '{}' \;
find "${D}"/${CRYSTAL_PREFIX} -type d -exec chmod a+rx '{}' \;
chmod a+rx "${D}"/${CRYSTAL_PREFIX}/bin/*
doenvd 90crystalspace
}
|