summaryrefslogtreecommitdiff
blob: 78272ea76e87c12aa0fe0c01de1f41ad8e282d31 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit cmake-utils git-r3

DESCRIPTION="high performance Minecraft map renderer written in C++"
HOMEPAGE="https://mapcrafter.org/"
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="debug profile"

DEPEND=""
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}"/${P}-libdir.patch )

src_configure() {
	local mycmakeargs=(
		-DLIB_INSTALL_DIR=$(get_libdir)
		-DOPT_OPTIMIZE=Off
		-DOPT_DEBUG=$(usex debug)
		-DOPT_PROFILE=$(usex profile)
	)

	cmake-utils_src_configure
}