blob: 7dd511a1fd8f3923b24e6fa523ea652ef109d7ae (
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
|
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build
DESCRIPTION="Qt module and API for defining 3D content in Qt QuickTools"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
elif [[ ${QT6_BUILD_TYPE} == live ]]; then
EGIT_SUBMODULES=() # skip qtquick3d-assimp
fi
IUSE="opengl vulkan"
RDEPEND="
~dev-qt/qtbase-${PV}:6[concurrent,gui,opengl=,vulkan=,widgets]
~dev-qt/qtdeclarative-${PV}:6
~dev-qt/qtquicktimeline-${PV}:6
~dev-qt/qtshadertools-${PV}:6
media-libs/assimp:=
sys-libs/zlib:=
"
DEPEND="
${RDEPEND}
test? ( ~dev-qt/qtbase-${PV}:6[network] )
vulkan? ( dev-util/vulkan-headers )
"
PATCHES=(
"${FILESDIR}"/${PN}-6.6.2-gcc14.patch
"${FILESDIR}"/${PN}-6.6.2-x32abi.patch
"${FILESDIR}"/${PN}-6.7.2-gcc15.patch
)
CMAKE_SKIP_TESTS=(
# needs off-by-default assimp[collada] that is masked on some profiles,
# not worth the extra trouble
tst_qquick3dassetimport
)
src_configure() {
local mycmakeargs=(
# TODO: if someone wants it, openxr should likely have its own
# USE and be packaged rather than use the bundled copy
-DQT_FEATURE_quick3dxr_openxr=OFF
-DQT_FEATURE_system_assimp=ON
-DQT_FEATURE_system_openxr=ON
)
qt6-build_src_configure
}
|