aboutsummaryrefslogtreecommitdiff
blob: 332d7d06b03c01032efd1396d6695889ecc3de44 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit cmake-utils

DESCRIPTION="The secret chronicles of Dr. M."
HOMEPAGE="TSC"
SRC_URI="https://github.com/Secretchronicles/${PN}/archive/v${PV}.tar.gz -> ${PF}.tar.gz"

LICENSE="custom"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc nls"

DEPEND="dev-ruby/rake
	doc? ( media-gfx/graphviz
	dev-ruby/kramdown
	dev-ruby/coderay
	app-doc/doxygen
	dev-ruby/rdoc )
	${RDEPEND}"
RDEPEND="
	>=dev-games/cegui-0.7
	media-libs/devil
	nls? ( sys-devel/gettext )
	dev-libs/libpng:0
	media-libs/sdl-image
	media-libs/sdl-mixer
	media-libs/sdl-ttf
	dev-libs/libpcre
	dev-cpp/libxmlpp:2.6
	media-libs/freetype
	dev-libs/boost[threads]
	media-libs/glew
	virtual/opengl
	x11-libs/libX11
	"

S="${WORKDIR}/TSC-${PV}/tsc"

src_configure() {
	local mycmakeargs=(
		-DFIXED_DATA_DIR="${EPREFIX}/usr/share/tsc/"
		-DBINARY_DIR="${EPREFIX}/usr/bin/"
		-DPREFIX="${EPREFIX}/usr"
		$(cmake-utils_use_enable nls)
	)

	cmake-utils_src_configure
}