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

EAPI=6

inherit cmake-utils

DESCRIPTION="Vtk plug-in for sci-mathematics/axel"
HOMEPAGE="http://dtk.inria.fr/axel/"
SRC_URI="https://timeraider4u.github.io/distfiles/files/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="~sci-libs/dtk-${PV}
	~sci-mathematics/axel-${PV}
	>=sci-libs/vtk-6.0.0[qt5,rendering]"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}/${PV}/CMakeLists.txt.patch"
	"${FILESDIR}/${PV}/axlVtkView-CMakeLists.txt.patch"
)

src_configure() {
	local mycmakeargs=(
		-DAXL=ON
		-DAXEL_USED=ON
		-DDTK_USED=ON
		-DBUILD_FOR_RELEASE=ON
		-Daxel-sdk_VERSION_MAJOR=2
		-Daxel-sdk_VERSION_MINOR=4
		-Daxel-sdk_VERSION_PATCH=0
		-DVTK_QT_VERSION:STRING=5
		-DVTKVIEW_USED=ON
	)
	cmake-utils_src_configure
}