media-plugins/gmsynth-lv2: new package, add 0.6.3

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>
This commit is contained in:
Nicolas PARLANT 2025-12-07 18:17:44 +01:00 committed by Miroslav Šulc
parent 88adb5ef8e
commit 8ac0667a3f
No known key found for this signature in database
GPG Key ID: 65D0F770B26B469C
4 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST gmsynth-lv2-0.6.3.tar.gz 29724144 BLAKE2B db6d79731d42888e9709730e24acc8be123cc52d69f82c369d9e0f0d962cf825e9e86825a51563bffd5cd8a16ea4e632de3038963bf3236f712803cf66311030 SHA512 96b7491ebd8f83dfb9e3289c6736ca5518e8513b472733feb91f16199be00e2a7fc433800bcc44fe7dd3d490382492e0b2403a3efaafe8fd219a999ae813d198

View File

@ -0,0 +1,34 @@
respect userflags
--- a/Makefile
+++ b/Makefile
@@ -17,18 +17,12 @@ gmsynth_VERSION?=$(shell git describe --tags HEAD 2>/dev/null | sed 's/-g.*$$//;
###############################################################################
-MACHINE=$(shell uname -m)
-ifneq (,$(findstring x64,$(MACHINE)))
- HAVE_SSE=yes
-endif
-ifneq (,$(findstring 86,$(MACHINE)))
- HAVE_SSE=yes
-endif
+HAVE_SSE ?= yes
ifeq ($(HAVE_SSE),yes)
- OPTIMIZATIONS ?= -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG
+ OPTIMIZATIONS ?= -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer -fno-finite-math-only -DNDEBUG
else
- OPTIMIZATIONS ?= -fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG
+ OPTIMIZATIONS ?= -fomit-frame-pointer -fno-finite-math-only -DNDEBUG
endif
###############################################################################
@@ -166,7 +160,7 @@ DSP_DEPS = $(DSP_SRC)
$(BUILDDIR)$(LV2NAME)$(LIB_EXT): $(DSP_DEPS) Makefile
@mkdir -p $(BUILDDIR)
- $(CC) $(CPPFLAGS) $(CFLAGS) -std=gnu99 \
+ $(CC) $(CPPFLAGS) -std=gnu99 $(CFLAGS) \
-o $(BUILDDIR)$(LV2NAME)$(LIB_EXT) $(DSP_SRC) \
-shared $(LV2LDFLAGS) $(LDFLAGS) $(LOADLIBES)
$(STRIP) $(STRIPFLAGS) $(BUILDDIR)$(LV2NAME)$(LIB_EXT)

View File

@ -0,0 +1,47 @@
# 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
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>proaudio@gentoo.org</email>
<name>Gentoo ProAudio Project</name>
</maintainer>
<upstream>
<remote-id type="github">x42/gmsynth.lv2</remote-id>
</upstream>
</pkgmetadata>