2023-03-26 22:38:55 -04:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2020-08-15 22:55:58 -04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-04-01 02:12:36 -04:00
|
|
|
EAPI=8
|
2020-08-15 22:55:58 -04:00
|
|
|
|
2022-04-01 02:12:36 -04:00
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/michaelwillis/dragonfly-reverb.git"
|
|
|
|
EGIT_SUBMODULES=( dpf dpf/dgl/src/pugl-upstream )
|
|
|
|
else
|
2023-04-23 22:29:15 -04:00
|
|
|
DPF_REF="dc6557a3c935ae4bb68f89d8bc698a805fff788e"
|
2023-04-08 23:53:42 -04:00
|
|
|
PUGL_REF="844528e197c51603f6cef3238b4a48d23bf60eb7"
|
2022-04-01 02:12:36 -04:00
|
|
|
SRC_URI="
|
2023-04-08 23:53:42 -04:00
|
|
|
https://github.com/michaelwillis/dragonfly-reverb/archive/${PV}.tar.gz -> ${P}.tar.gz
|
|
|
|
https://github.com/DISTRHO/DPF/archive/${DPF_REF}.tar.gz -> dpf-${DPF_REF}.tar.gz
|
|
|
|
https://github.com/DISTRHO/pugl/archive/${PUGL_REF}.tar.gz -> pugl-${PUGL_REF}.tar.gz
|
2022-04-01 02:12:36 -04:00
|
|
|
"
|
2020-08-15 22:55:58 -04:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="A set of free reverb effects"
|
|
|
|
HOMEPAGE="https://michaelwillis.github.io/dragonfly-reverb/"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
2020-08-15 23:57:54 -04:00
|
|
|
DEPEND=""
|
2020-08-15 22:55:58 -04:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
virtual/jack
|
|
|
|
x11-libs/libX11
|
|
|
|
"
|
|
|
|
|
2022-04-01 02:12:36 -04:00
|
|
|
src_unpack() {
|
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
|
|
git-r3_src_unpack
|
|
|
|
else
|
|
|
|
default
|
|
|
|
rm -rf "${S}/dpf" || die
|
|
|
|
ln -s "${WORKDIR}/DPF-${DPF_REF}" "${S}/dpf" || die
|
|
|
|
rm -rf "${S}/dpf/dgl/src/pugl-upstream" || die
|
|
|
|
ln -s "${WORKDIR}/pugl-${PUGL_REF}" "${S}/dpf/dgl/src/pugl-upstream" || die
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2020-08-15 22:55:58 -04:00
|
|
|
src_compile() {
|
|
|
|
export SKIP_STRIPPING=true
|
|
|
|
default_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin bin/DragonflyEarlyReflections
|
|
|
|
dobin bin/DragonflyPlateReverb
|
|
|
|
dobin bin/DragonflyHallReverb
|
|
|
|
dobin bin/DragonflyRoomReverb
|
|
|
|
dodir /usr/$(get_libdir)/vst
|
2020-08-15 23:57:54 -04:00
|
|
|
cp "${S}/bin/DragonflyEarlyReflections-vst.so" "${D}/usr/$(get_libdir)/vst"
|
|
|
|
cp "${S}/bin/DragonflyPlateReverb-vst.so" "${D}/usr/$(get_libdir)/vst"
|
|
|
|
cp "${S}/bin/DragonflyHallReverb-vst.so" "${D}/usr/$(get_libdir)/vst"
|
|
|
|
cp "${S}/bin/DragonflyRoomReverb-vst.so" "${D}/usr/$(get_libdir)/vst"
|
2022-04-01 02:12:36 -04:00
|
|
|
dodir /usr/$(get_libdir)/vst3
|
|
|
|
cp -r "${S}/bin/DragonflyEarlyReflections.vst3" "${D}/usr/$(get_libdir)/vst3"
|
|
|
|
cp -r "${S}/bin/DragonflyPlateReverb.vst3" "${D}/usr/$(get_libdir)/vst3"
|
|
|
|
cp -r "${S}/bin/DragonflyHallReverb.vst3" "${D}/usr/$(get_libdir)/vst3"
|
|
|
|
cp -r "${S}/bin/DragonflyRoomReverb.vst3" "${D}/usr/$(get_libdir)/vst3"
|
2020-08-15 22:55:58 -04:00
|
|
|
dodir /usr/$(get_libdir)/lv2
|
2020-08-15 23:57:54 -04:00
|
|
|
cp -r "${S}/bin/DragonflyEarlyReflections.lv2" "${D}/usr/$(get_libdir)/lv2"
|
|
|
|
cp -r "${S}/bin/DragonflyPlateReverb.lv2" "${D}/usr/$(get_libdir)/lv2"
|
|
|
|
cp -r "${S}/bin/DragonflyHallReverb.lv2" "${D}/usr/$(get_libdir)/lv2"
|
|
|
|
cp -r "${S}/bin/DragonflyRoomReverb.lv2" "${D}/usr/$(get_libdir)/lv2"
|
2023-03-26 22:38:55 -04:00
|
|
|
dodir /usr/$(get_libdir)/clap
|
|
|
|
cp -r "${S}/bin/DragonflyEarlyReflections.clap" "${D}/usr/$(get_libdir)/clap"
|
|
|
|
cp -r "${S}/bin/DragonflyPlateReverb.clap" "${D}/usr/$(get_libdir)/clap"
|
|
|
|
cp -r "${S}/bin/DragonflyHallReverb.clap" "${D}/usr/$(get_libdir)/clap"
|
|
|
|
cp -r "${S}/bin/DragonflyRoomReverb.clap" "${D}/usr/$(get_libdir)/clap"
|
2020-08-15 22:55:58 -04:00
|
|
|
}
|