1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake multibuild
8 DESCRIPTION
="Phonon Backend using MPV Player(libmpv)"
9 HOMEPAGE
="https://github.com/OpenProgger/phonon-mpv"
11 https://github.com/OpenProgger/phonon-mpv/archive/refs/tags/v${PV}.tar.gz
20 REQUIRED_USE
="|| ( qt5 qt6 )"
23 >=media-libs/phonon-4.12.0[qt5=,qt6=]
24 >=media-video/mpv-0.29.0:=
32 dev-qt/qtbase:6[gui,opengl,widgets,X]
37 kde-frameworks/extra-cmake-modules
42 MULTIBUILD_VARIANTS
=( $
(usev qt5
) $
(usev qt6
) )
48 -DQT_MAJOR_VERSION=${MULTIBUILD_VARIANT/qt/}
49 -DPHONON_BUILD_${MULTIBUILD_VARIANT^^}=ON
51 if [[ ${MULTIBUILD_VARIANT} == qt6
]]; then
52 mycmakeargs
+=( -DPHONON_BUILD_QT5=OFF
)
54 mycmakeargs
+=( -DPHONON_BUILD_QT6=OFF
)
58 multibuild_foreach_variant myconfigure
62 multibuild_foreach_variant cmake_src_compile
66 multibuild_foreach_variant cmake_src_install