blob: 59a78fd839d6e008fa131dd6764cee53264b8af1 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/crystalspace-cvs/crystalspace-cvs-0.97.ebuild,v 1.1 2003/04/27 20:52:44 vapier Exp $
inherit games cvs
ECVS_SERVER="cvs.sourceforge.net:/cvsroot/crystal"
ECVS_MODULE="CS"
ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="portable 3D Game Development Kit written in C++"
SRC_URI=""
HOMEPAGE="http://crystal.sourceforge.net/"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="~x86 ~ppc"
DEPEND=">=media-libs/libpng-1.2.1
>=media-libs/jpeg-6b
mng? ( media-libs/libmng )
mikmod? ( media-libs/libmikmod )
3ds? ( media-libs/lib3ds )
freetype? ( >=media-libs/freetype-2.0 )
openal? ( media-libs/openal )
zlib? ( sys-libs/zlib )
oggvorbis? ( >=media-libs/libogg-1.0 )
>=media-libs/libvorbis-1.0 )
x86? ( dev-lang/nasm )
dev-libs/ode
>=dev-lang/perl-5.6.1
!dev-libs/crystalspace"
CRYSTAL_PREFIX=${GAMES_PREFIX_OPT}/crystal
src_compile() {
./configure --prefix=${CRYSTAL_PREFIX} || die
emake all || die
}
src_install() {
dodir ${CRYSTAL_PREFIX}
make INSTALL_DIR=${D}/${CRYSTAL_PREFIX} install || die
insinto /etc/env.d
echo "CRYSTAL=${CRYSTAL_PREFIX}" > ${T}/90crystalspace
echo "CEL=${CRYSTAL_PREFIX}" >> ${T}/90crystalspace
doins ${T}/90crystalspace
dodir ${GAMES_BINDIR}
dosym ${CRYSTAL_PREFIX}/bin/cs-config ${GAMES_BINDIR}/cs-config
prepgamesdirs
}
|