summaryrefslogtreecommitdiff
path: root/games-arcade/supertux/supertux-scm.ebuild
blob: b74f950cbd9a71cfe2564f4798005d4ca57544aa (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

CMAKE_IN_SOURCE_BUILD=1

inherit git-r3 cmake-utils eutils games

DESCRIPTION="Classic 2D jump'n run sidescroller game in a style similar to the original Super Mario Bros."
HOMEPAGE="http://supertux.github.io/index.html"
SRC_URI=""

EGIT_REPO_URI="https://github.com/SuperTux/supertux.git"

LICENSE="GPL-2"
SLOT="2"
KEYWORDS=""
IUSE="opengl curl debug"

RDEPEND="media-libs/libsdl2[joystick]
	media-libs/sdl2-image[png,jpeg]
	media-libs/libvorbis
	dev-games/physfs
	media-libs/openal
	media-libs/glew
	x11-libs/libXt
	dev-games/physfs
	dev-libs/boost[static-libs]
	opengl? ( virtual/opengl )
	curl? ( net-misc/curl )"
DEPEND="${RDEPEND}"

#DOCS="TODO WHATSNEW.txt data/credits.txt"

src_unpack() {
	git-r3_src_unpack
}

src_configure() {
	local mycmakeargs=(
		-DWERROR=OFF
		-DINSTALL_SUBDIR_BIN=games/bin
		-DINSTALL_SUBDIR_DOC=share/doc/${P}
		$(cmake-utils_use_enable opengl OPENGL)
		$(cmake-utils_use_enable debug SQDBG)
		$(cmake-utils_use debug DEBUG)
	)

	cmake-utils_src_configure
}

src_compile() {
	cmake-utils_src_compile
}

src_install() {
	cmake-utils_src_install
	prepgamesdirs
}