blob: 78f19694617d4150638b8ed704ff11b4daf07682 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop
DESCRIPTION="Rework of Sasteroids using SDL"
HOMEPAGE="https://sdlsas.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/sdlsas/SDLSasteroids-${PV}.tar.gz"
S="${WORKDIR}/SDLSasteroids-${PV}"
LICENSE="sdlsasteroids GPL-2+ public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
media-libs/sdl-mixer
media-libs/libsdl[sound,joystick,video]
media-libs/sdl-image[png]
media-libs/sdl-ttf
virtual/opengl
virtual/glu"
RDEPEND="${DEPEND}"
src_prepare() {
default
eapply \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-ldflags.patch
sed -i \
-e 's/make /$(MAKE) /' \
-e 's/--strip//' \
Makefile || die
sed -i \
-e '/^CC/d' \
-e 's/g++/$(CXX)/' \
-e 's/CC/CXX/' \
-e 's/CFLAGS/CXXFLAGS/' \
src/Makefile || die
}
src_compile() {
emake \
GAMEDIR="/usr/share/${PN}" \
OPTS="${CXXFLAGS}"
}
src_install() {
dodir /usr/share/man/man6/
emake \
GAMEDIR="${D}/usr/share/${PN}" \
BINDIR="${D}/usr/bin" \
MANDIR="${D}/usr/share/man/" \
install
dodoc ChangeLog README README.xast TODO description
newicon graphics/sprite/bigast.png ${PN}.png
make_desktop_entry sasteroids "Sasteroids" ${PN}
}
|