blob: 41c8a72c996c715e0f929b9697d7dacabba67717 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/transcend/transcend-0.3.ebuild,v 1.10 2015/02/06 13:41:14 ago Exp $
EAPI=5
inherit games
DESCRIPTION="retro-style, abstract, 2D shooter"
HOMEPAGE="http://transcend.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
DEPEND="x11-libs/libXmu
x11-libs/libXi
virtual/opengl
virtual/glu
media-libs/freeglut"
RDEPEND=${DEPEND}
S=${WORKDIR}/Transcend_${PV}_UnixSource/Transcend
src_prepare() {
chmod a+x portaudio/configure
mkdir portaudio/{lib,bin}
rm -f game/Makefile
sed \
-e '/^GXX=/d' \
-e 's/GXX/CXX/' \
-e '/^COMPILE_FLAGS =/ s/OPTIMIZE_FLAG/CXXFLAGS/' \
-e '/^EXE_LINK =/ s/LINK_FLAGS/LDFLAGS/' \
Makefile.GnuLinuxX86 \
Makefile.common \
Makefile.minorGems \
game/Makefile.all \
Makefile.minorGems_targets \
> game/Makefile || die
sed -i \
-e "s:\"levels\":\"${GAMES_DATADIR}/${PN}/levels\":" \
game/LevelDirectoryManager.cpp \
game/game.cpp || die
}
src_configure() {
cd portaudio
egamesconf
}
src_compile() {
nonfatal emake -C portaudio
emake -C game
cp game/Transcend ${PN} || die
}
src_install() {
dogamesbin ${PN}
insinto "${GAMES_DATADIR}/${PN}"
doins -r levels/
dodoc doc/{how_to_play.txt,changeLog.txt}
prepgamesdirs
}
|