blob: 4d98dca6479287f5433b12879386d89e1477560e (
plain) (
tree)
|
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A free cross-platform MIDI file player based on libfluidsynth and Qt."
HOMEPAGE="https://cgit.chrisoft.org/QMidiPlayer.git/"
SRC_URI="
https://cgit.chrisoft.org/QMidiPlayer.git/snapshot/QMidiPlayer-${PV}.tar.xz -> ${P}.tar.xz
https://github.com/BearKidsTeam/SMELT/archive/752937d5c647b3b30c64eba0b988f388d3336766.zip -> SMELT.zip
"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+visualization +qt5 qt6"
REQUIRED_USE="^^ ( qt5 qt6 )"
DEPEND="
media-sound/fluidsynth
media-libs/rtmidi
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
dev-qt/qtdbus:5
)
qt6? (
dev-qt/qtbase[dbus,gui,widgets]
)
dev-libs/icu
visualization? (
media-libs/freetype:2=
sys-libs/zlib
media-libs/glew
media-libs/glfw
media-libs/devil[png]
)
"
BDEPEND="
dev-qt/linguist-tools
app-arch/unzip
"
src_unpack() {
if [[ -n ${A} ]]; then
unpack ${A}
fi
mv ${WORKDIR}/QMidiPlayer-${PV} ${WORKDIR}/${P}
mv ${WORKDIR}/SMELT-* ${WORKDIR}/SMELT
mv ${WORKDIR}/SMELT ${WORKDIR}/${P}/visualization/
}
src_configure() {
local mycmakeargs=(
-DBUILD_VISUALIZATION="$(usex visualization)"
-DUSE_QT6="$(usex qt6)"
)
cmake_src_configure
}
|