blob: 9189f6c73d3bb471abc24970a2f23094c96f0c62 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic xdg
DESCRIPTION="Fast paced, arcade-style, top-scrolling space shooter"
HOMEPAGE="https://chromium-bsu.sourceforge.io"
SRC_URI="mirror://sourceforge/chromium-bsu/${P}.tar.gz"
LICENSE="Clarified-Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="openal"
RDEPEND="
media-libs/libsdl2[joystick,opengl,video]
media-libs/quesoglc
media-libs/sdl2-image[png]
virtual/glu
virtual/libintl
virtual/opengl
openal? (
media-libs/freealut
media-libs/openal
)
!openal? (
media-libs/libsdl2[sound]
media-libs/sdl2-mixer
)"
DEPEND="${RDEPEND}"
BDEPEND="sys-devel/gettext"
src_configure() {
append-cppflags -DWITH_JOYSTICK
local econfargs=(
$(use_enable openal)
--docdir="${EPREFIX}"/usr/share/${PF}/html
# there's other build-time alternatives but most are deprecated/dead
# or with some issues, simply stick to the newly added SDL2 support
--disable-{ftgl,glpng,glut,sdl,sdlimage,sdlmixer}
)
econf "${econfargs[@]}"
}
src_compile() {
emake LDFLAGS="${LDFLAGS}"
}
|