blob: 12ff9c7881b62a4a5c94eaad1c90d901ab7ea077 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/transcend/transcend-0.2.ebuild,v 1.2 2005/02/22 12:21:54 dholm Exp $
inherit games
DESCRIPTION="retro-style, abstract, 2D shooter"
HOMEPAGE="http://transcend.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}-IGF-2_UnixSource.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE=""
DEPEND="virtual/libc
virtual/x11
virtual/opengl
virtual/glu
virtual/glut"
S=${WORKDIR}/Transcend_${PV}-IGF-2_UnixSource/Transcend
src_unpack() {
unpack ${A}
cd "${S}"
chmod a+x portaudio/configure
rm -f game/Makefile
cat \
Makefile.GnuLinuxX86 \
Makefile.common \
Makefile.minorGems \
game/Makefile.all \
Makefile.minorGems_targets \
> game/Makefile
sed -i \
-e "s:\"levels\":\"${GAMES_DATADIR}/${PN}/levels\":" \
game/LevelDirectoryManager.cpp \
game/game.cpp \
|| die "sed failed"
}
src_compile() {
cd portaudio
egamesconf || die
emake
cd ../game
emake || die
cd ..
cp game/Transcend ${PN} || die "cp failed"
}
src_install() {
newgamesbin game/Transcend ${PN} || die "newgamesbin failed"
dodir "${GAMES_DATADIR}/${PN}"
cp -r levels/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed"
dodoc doc/how_to_*.txt
prepgamesdirs
}
|