From 8ac0667a3f738733433bbd403525a40f8935ce7e Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Sun, 7 Dec 2025 18:17:44 +0100 Subject: [PATCH] media-plugins/gmsynth-lv2: new package, add 0.6.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/966074 Signed-off-by: Nicolas PARLANT Part-of: https://github.com/gentoo/gentoo/pull/44943 Signed-off-by: Miroslav Ć ulc --- media-plugins/gmsynth-lv2/Manifest | 1 + .../files/gmsynth-lv2-0.6.3-makefile.patch | 34 ++++++++++++++ .../gmsynth-lv2/gmsynth-lv2-0.6.3.ebuild | 47 +++++++++++++++++++ media-plugins/gmsynth-lv2/metadata.xml | 11 +++++ 4 files changed, 93 insertions(+) create mode 100644 media-plugins/gmsynth-lv2/Manifest create mode 100644 media-plugins/gmsynth-lv2/files/gmsynth-lv2-0.6.3-makefile.patch create mode 100644 media-plugins/gmsynth-lv2/gmsynth-lv2-0.6.3.ebuild create mode 100644 media-plugins/gmsynth-lv2/metadata.xml diff --git a/media-plugins/gmsynth-lv2/Manifest b/media-plugins/gmsynth-lv2/Manifest new file mode 100644 index 000000000000..7c29af48e36f --- /dev/null +++ b/media-plugins/gmsynth-lv2/Manifest @@ -0,0 +1 @@ +DIST gmsynth-lv2-0.6.3.tar.gz 29724144 BLAKE2B db6d79731d42888e9709730e24acc8be123cc52d69f82c369d9e0f0d962cf825e9e86825a51563bffd5cd8a16ea4e632de3038963bf3236f712803cf66311030 SHA512 96b7491ebd8f83dfb9e3289c6736ca5518e8513b472733feb91f16199be00e2a7fc433800bcc44fe7dd3d490382492e0b2403a3efaafe8fd219a999ae813d198 diff --git a/media-plugins/gmsynth-lv2/files/gmsynth-lv2-0.6.3-makefile.patch b/media-plugins/gmsynth-lv2/files/gmsynth-lv2-0.6.3-makefile.patch new file mode 100644 index 000000000000..027a3700b46a --- /dev/null +++ b/media-plugins/gmsynth-lv2/files/gmsynth-lv2-0.6.3-makefile.patch @@ -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) diff --git a/media-plugins/gmsynth-lv2/gmsynth-lv2-0.6.3.ebuild b/media-plugins/gmsynth-lv2/gmsynth-lv2-0.6.3.ebuild new file mode 100644 index 000000000000..3bef426e4b21 --- /dev/null +++ b/media-plugins/gmsynth-lv2/gmsynth-lv2-0.6.3.ebuild @@ -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 +} diff --git a/media-plugins/gmsynth-lv2/metadata.xml b/media-plugins/gmsynth-lv2/metadata.xml new file mode 100644 index 000000000000..332f7cd1c6c8 --- /dev/null +++ b/media-plugins/gmsynth-lv2/metadata.xml @@ -0,0 +1,11 @@ + + + + + proaudio@gentoo.org + Gentoo ProAudio Project + + + x42/gmsynth.lv2 + +