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.

64 lines
1.5 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit xdg cmake
DESCRIPTION="FM synthesizer plugin based on OPL3 sound chip emulation"
HOMEPAGE="https://github.com/jpcima/ADLplug"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jpcima/adlplug.git"
KEYWORDS=""
else
SRC_URI="https://github.com/jpcima/adlplug/releases/download/v${PV}/ADLplug-${PV}.tar.xz"
KEYWORDS="~amd64"
S="${WORKDIR}/ADLplug-${PV}"
fi
LICENSE="Boost-1.0 GPL-3 GPL-2 LGPL-2.1"
SLOT="0"
RESTRICT="mirror"
IUSE="lv2 nsm standalone vst"
REQUIRED_USE="
|| ( lv2 standalone vst )
nsm? ( standalone )
"
DEPEND="media-libs/alsa-lib
media-libs/freetype
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXinerama
x11-libs/libXrandr
standalone? ( virtual/jack )
nsm? (
media-libs/liblo
media-sound/new-session-manager
)
"
RDEPEND="${DEPEND}"
PATCHES="${FILESDIR}/adlplug-juce-fix-gcc9-compatibility.patch"
src_configure() {
local mycmakeargs=(
-DADLplug_CHIP=OPL3
-DADLplug_LV2="$(usex lv2)"
-DADLplug_VST2="$(usex vst)"
-DADLplug_Standalone="$(usex standalone)"
-DADLplug_Jack="$(usex standalone)"
)
cmake_src_configure
}
#src_install() {
# Ensure installdir standards are adhered to
# See https://lv2plug.in/pages/filesystem-hierarchy-standard.html
#emake DESTDIR="${D}" PREFIX="/usr" LV2DIR="/usr/lib/lv2"
# cmake --install /usr/lib/lv2
#}