1 |
|
# Copyright 1999-2023 Gentoo Authors
|
|
1 |
# Copyright 2021-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
if [[ ${PV} != *9999* ]]; then
|
7 |
|
KEYWORDS="amd64 ~arm arm64 ~riscv x86"
|
8 |
|
fi
|
9 |
|
inherit qt5-build
|
|
6 |
inherit qt6-build
|
|
7 |
|
|
8 |
DESCRIPTION="3D rendering module for the Qt6 framework"
|
10 |
9 |
|
11 |
|
DESCRIPTION="3D rendering module for the Qt5 framework"
|
|
10 |
if [[ ${QT6_BUILD_TYPE} == release ]]; then
|
|
11 |
KEYWORDS="amd64"
|
|
12 |
elif [[ ${QT6_BUILD_TYPE} == live ]]; then
|
|
13 |
EGIT_SUBMODULES=() # skip qtquick3d-assimp
|
|
14 |
fi
|
12 |
15 |
|
13 |
|
# TODO: tools
|
14 |
|
IUSE="gamepad gles2-only qml vulkan"
|
|
16 |
IUSE="gles2-only qml vulkan"
|
15 |
17 |
|
16 |
18 |
RDEPEND="
|
17 |
|
=dev-qt/qtconcurrent-${QT5_PV}*
|
18 |
|
=dev-qt/qtcore-${QT5_PV}*
|
19 |
|
=dev-qt/qtgui-${QT5_PV}*:5=[vulkan=]
|
20 |
|
=dev-qt/qtnetwork-${QT5_PV}*
|
21 |
|
>=media-libs/assimp-4.0.0:=
|
22 |
|
gamepad? ( =dev-qt/qtgamepad-${QT5_PV}* )
|
23 |
|
qml? ( =dev-qt/qtdeclarative-${QT5_PV}*[gles2-only=] )
|
|
19 |
~dev-qt/qtbase-${PV}:6[concurrent,gles2-only=,gui,network,opengl,vulkan=]
|
|
20 |
~dev-qt/qtshadertools-${PV}:6
|
|
21 |
media-libs/assimp:=
|
|
22 |
qml? ( ~dev-qt/qtdeclarative-${PV}:6 )
|
24 |
23 |
"
|
25 |
|
DEPEND="${RDEPEND}
|
|
24 |
DEPEND="
|
|
25 |
${RDEPEND}
|
26 |
26 |
vulkan? ( dev-util/vulkan-headers )
|
27 |
27 |
"
|
28 |
28 |
|
29 |
|
src_prepare() {
|
30 |
|
rm -r src/3rdparty/assimp/src/{code,contrib,include} || die
|
31 |
|
|
32 |
|
qt_use_disable_mod gamepad gamepad src/input/frontend/frontend.pri
|
33 |
|
qt_use_disable_mod qml quick src/src.pro
|
34 |
|
|
35 |
|
qt5-build_src_prepare
|
36 |
|
}
|
37 |
|
|
38 |
29 |
src_configure() {
|
39 |
|
local myqmakeargs=(
|
40 |
|
--
|
41 |
|
-system-assimp
|
|
30 |
local mycmakeargs=(
|
|
31 |
$(cmake_use_find_package qml Qt6Qml)
|
|
32 |
-DQT_FEATURE_qt3d_system_assimp=ON
|
42 |
33 |
)
|
43 |
|
qt5-build_src_configure
|
|
34 |
|
|
35 |
qt6-build_src_configure
|
44 |
36 |
}
|