blob: 10b3381e1cd2c1465a89b7e5cdd0117815edd9b3 (
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
|
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/alemart/opensurge"
else
MY_PV="${PV//_p/-}"
SRC_URI="https://github.com/alemart/opensurge/archive/v${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_PV}/"
fi
DESCRIPTION="fun 2D retro platformer inspired by old-school Sonic games"
HOMEPAGE="http://opensurge2d.org/"
LICENSE="GPL-3"
SLOT="0"
# Allegro:5 libs to USE
# - image: jpeg,png
# - primitives: opengl
# - font+ttf: truetype
# - acodec+audio: alsa/openal/oss/pulseaudio (present in REQUIRED_USE)
# - dialog: gtk
DEPEND="
>=media-libs/allegro-5.2.5:=
media-libs/allegro[jpeg,png,opengl,truetype,gtk]
dev-games/surgescript:=
"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i '/INSTALL(TARGETS "${GAME_UNIXNAME}" /s/"${CMAKE_INSTALL_PREFIX}/\0\/bin/' \
CMakeLists.txt || die "Failed fixing executable target"
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DGAME_DATADIR="/usr/share/games/${PN}"
-DCMAKE_INSTALL_PREFIX="/usr"
)
cmake-utils_src_configure
}
|