blob: fb904b8d29a6e23013ef924186020ff5215565ab (
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
65
66
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop toolchain-funcs
DESCRIPTION="Retro-style, abstract, 2D shooter"
HOMEPAGE="https://transcend.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
S="${WORKDIR}/Transcend_${PV}_UnixSource"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
media-libs/freeglut
media-libs/portaudio
virtual/glu
virtual/opengl"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-system-portaudio.patch
)
src_prepare() {
default
rm -r ${PN^}/portaudio || die
sed -e "s|\"levels\"|\"${EPREFIX}/usr/share/${PN}/levels\"|" \
-i ${PN^}/game/{LevelDirectoryManager,game}.cpp || die
}
src_configure() {
cd ${PN^} || die
platformSelection=1 ./configure || die
}
src_compile() {
tc-export PKG_CONFIG
local emakeargs=(
GXX="$(tc-getCXX)"
OPTIMIZE_FLAG="${CXXFLAGS}"
LINK_FLAGS="${LDFLAGS}"
)
emake -C ${PN^}/game "${emakeargs[@]}"
}
src_install() {
cd ${PN^} || die
newbin game/${PN^} ${PN}
insinto /usr/share/${PN}
doins -r levels
dodoc doc/{how_to_play.txt,changeLog.txt}
make_desktop_entry ${PN} ${PN^} applications-games
}
|