mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Closes: https://bugs.gentoo.org/966074 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44943 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
48 lines
1021 B
Bash
48 lines
1021 B
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="General MIDI Sample Player Plugin"
|
|
HOMEPAGE="https://x42-plugins.com/x42/x42-gmsynth"
|
|
SRC_URI="https://github.com/x42/gmsynth.lv2/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${P/-lv2/.lv2}"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="cpu_flags_x86_sse2"
|
|
|
|
DEPEND="
|
|
dev-libs/glib:2
|
|
>=media-libs/lv2-1.18.6
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-0.6.3-makefile.patch
|
|
)
|
|
|
|
src_compile() {
|
|
tc-export PKG_CONFIG CC
|
|
MYEMAKEARGS=(
|
|
gmsynth_VERSION="${PV}"
|
|
HAVE_SSE="$(usex cpu_flags_x86_sse2)"
|
|
# not standard but aligned with the path used by ardour
|
|
# https://lv2plug.in/pages/filesystem-hierarchy-standard.html
|
|
LV2DIR="${EPREFIX}/usr/$(get_libdir)/lv2"
|
|
PREFIX="${EPREFIX}/usr"
|
|
STRIP="true"
|
|
)
|
|
emake "${MYEMAKEARGS[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
emake "${MYEMAKEARGS[@]}" DESTDIR="${D}" install
|
|
}
|