summaryrefslogtreecommitdiff
blob: 238e4929b373d395279c369f57428857e8131030 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/cel/cel-0.99_pre20050518.ebuild,v 1.3 2005/05/24 14:08:06 dholm Exp $

inherit eutils debug

DESCRIPTION="A game entity layer based on Crystal Space"
HOMEPAGE="http://cel.sourceforge.net/"
SRC_URI="mirror://sourceforge/cel/${P}.tar.bz2"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="python"

RDEPEND="dev-games/crystalspace
	dev-util/jam
	!dev-games/cel-cvs
	python? ( virtual/python )"

DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

S=${WORKDIR}/${PN}

src_compile() {
	CRYSTAL=$(cs-config --prefix)
	CSCONFPATH=$CRYSTAL
	CRYSTAL_PREFIX=$CRYSTAL
	CEL_PREFIX=$CRYSTAL

	local prefix=${CEL_PREFIX}
	local my_conf=""

	use debug && my_conf="${my_conf} --enable-debug"

	PATH="${prefix}/bin:${PATH}" \
	./configure \
		--prefix="${prefix}" \
		--with-cs-prefix="$CRYSTAL_PREFIX" \
		--enable-new-renderer \
		--disable-jamtest \
		--without-python \
		${my_conf} \
		|| die "configure failed"
		#$(use_with python)

	jam || die "jam failed"
}

src_install() {
	local prefix=${CEL_PREFIX}
	jam -sprefix="${D}"${prefix} install || die

	# Symlink cel-config into /usr/bin
	dodir /usr/bin
	dosym ${CRYSTAL_PREFIX}/bin/cel-config /usr/bin/cel-config
}