summaryrefslogtreecommitdiff
blob: 4c2573a12e31cb6851f54f684e2be70785cde2e9 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake xdg flag-o-matic

DESCRIPTION="Software synthesizer based on ZynAddSubFX"
HOMEPAGE="https://yoshimi.github.io/"
SRC_URI="https://github.com/${PN^}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+lv2"

BDEPEND="virtual/pkgconfig"
DEPEND="
	>=dev-libs/mxml-2.5
	media-libs/alsa-lib
	media-libs/fontconfig
	media-libs/libsndfile
	sci-libs/fftw:3.0=
	sys-libs/ncurses:0=
	sys-libs/readline:0=
	sys-libs/zlib
	virtual/jack
	x11-libs/cairo[X]
	x11-libs/fltk:1[opengl]
	lv2? ( media-libs/lv2 )
"
RDEPEND="${DEPEND}"

CMAKE_USE_DIR="${WORKDIR}/${P}/src"

DOCS=( Changelog README.txt )

PATCHES=( "${FILESDIR}/${PN}-1.7.1-fix-LV2_Descriptor.patch" )

src_prepare() {
	cmake_src_prepare
	append-cxxflags -lpthread
	append-cppflags -lpthread
}

src_configure() {
	local mycmakeargs=( -DLV2Plugin=$(usex lv2) )
	cmake_src_configure
}
src_install() {
	cmake_src_install
	mv "${D}"/usr/share/doc/yoshimi "${D}"/usr/share/doc/${P}
}