blob: 68eba28a4f9b9898d66e189114a95a28fcb2edb0 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/snake3d/snake3d-0.9.ebuild,v 1.5 2010/09/16 16:52:45 scarabeus Exp $
inherit eutils toolchain-funcs games
DESCRIPTION="variant of the snake game"
HOMEPAGE="http://sourceforge.net/projects/worms3d/"
SRC_URI="mirror://sourceforge/worms3d/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="media-libs/sdl-net
virtual/opengl
media-libs/freeglut
virtual/glu
media-libs/libsdl"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
epatch \
"${FILESDIR}"/${P}-amd64.patch \
"${FILESDIR}"/${P}-build.patch
}
src_compile() {
emake CXX=$(tc-getCXX) -C src snake3d.linux || die "emake failed"
}
src_install() {
dogamesbin ${PN} || die "dogamesbin failed"
dodoc ChangeLog README TODO
prepgamesdirs
}
|