You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/yoshimi/yoshimi-1.5.10.2.ebuild

52 lines
1.0 KiB

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils xdg
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-1.0.17
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"
PATCHES=( "${FILESDIR}"/${P}-cxxflags.patch )
DOCS=( Changelog README.txt )
src_prepare() {
cmake-utils_src_prepare
# respect doc dir
sed -e "s#/doc/yoshimi#/doc/${PF}#" -i src/CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-DLV2Plugin=$(usex lv2)
)
cmake-utils_src_configure
}