summaryrefslogtreecommitdiff
path: root/media-plugins/gmsynth-lv2
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-15 07:18:20 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-15 07:18:20 +0000
commit0f1ec237ee9ebc50d56ef6813db24bffaed34445 (patch)
tree85b8b5d989682993a5c6df6bb12f560114a128d0 /media-plugins/gmsynth-lv2
parente39be748657852ea65b1d7adf2de9ece7142d31d (diff)
downloadbaldeagleos-repo-0f1ec237ee9ebc50d56ef6813db24bffaed34445.tar.gz
baldeagleos-repo-0f1ec237ee9ebc50d56ef6813db24bffaed34445.tar.xz
baldeagleos-repo-0f1ec237ee9ebc50d56ef6813db24bffaed34445.zip
Adding metadata
Diffstat (limited to 'media-plugins/gmsynth-lv2')
-rw-r--r--media-plugins/gmsynth-lv2/Manifest1
-rw-r--r--media-plugins/gmsynth-lv2/files/gmsynth-lv2-0.6.3-makefile.patch34
-rw-r--r--media-plugins/gmsynth-lv2/gmsynth-lv2-0.6.3.ebuild47
-rw-r--r--media-plugins/gmsynth-lv2/metadata.xml10
4 files changed, 92 insertions, 0 deletions
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..2a6b92e7a17b
--- /dev/null
+++ b/media-plugins/gmsynth-lv2/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>proaudio@gentoo.org</email>
+ <name>Gentoo ProAudio Project</name>
+ </maintainer>
+
+ <origin>gentoo-staging</origin>
+</pkgmetadata> \ No newline at end of file