summaryrefslogtreecommitdiff
path: root/media-sound/qmidiplayer/qmidiplayer-0.8.8.0.ebuild
blob: 71e2d1af118c71cb32d5085f4a3ab195207ec8c7 (plain) (blame)
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
# 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"

DEPEND="
	media-sound/fluidsynth
	media-libs/rtmidi
	dev-qt/qtcore:5
	dev-qt/qtgui:5
	dev-qt/qtwidgets:5
	dev-qt/qtdbus:5
	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_prepare() {
	mv ${WORKDIR}/QMidiPlayer-${PV} ${WORKDIR}/${P}
	mv ${WORKDIR}/SMELT ${WORKDIR}/${P}/visualization/
}

src_configure() {
	local mycmakeargs=(
		-DBUILD_VISUALIZATION="$(usex visualization)"
		-DUSE_QT6="OFF"
	)
	cmake_src_configure
}