Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ladspa: Add at v1.17 #541

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified g/gstreamer/manifest.x86_64.bin
Binary file not shown.
6 changes: 5 additions & 1 deletion g/gstreamer/manifest.x86_64.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"binary(nasm)",
"binary(valac)",
"binary(xgettext)",
"ladspa-devel",
"lame-devel",
"pkgconfig(alsa)",
"pkgconfig(bash-completion)",
Expand Down Expand Up @@ -260,6 +261,7 @@
"/usr/lib/gstreamer-1.0/libgstjpeg.so",
"/usr/lib/gstreamer-1.0/libgstjpegformat.so",
"/usr/lib/gstreamer-1.0/libgstkms.so",
"/usr/lib/gstreamer-1.0/libgstladspa.so",
"/usr/lib/gstreamer-1.0/libgstlame.so",
"/usr/lib/gstreamer-1.0/libgstlegacyrawparse.so",
"/usr/lib/gstreamer-1.0/libgstlevel.so",
Expand Down Expand Up @@ -875,6 +877,7 @@
"soname(gstreamer-1.0/libgstjpeg.so(x86_64))",
"soname(gstreamer-1.0/libgstjpegformat.so(x86_64))",
"soname(gstreamer-1.0/libgstkms.so(x86_64))",
"soname(gstreamer-1.0/libgstladspa.so(x86_64))",
"soname(gstreamer-1.0/libgstlame.so(x86_64))",
"soname(gstreamer-1.0/libgstlegacyrawparse.so(x86_64))",
"soname(gstreamer-1.0/libgstlevel.so(x86_64))",
Expand Down Expand Up @@ -1027,6 +1030,7 @@
"binary(nasm)",
"binary(valac)",
"binary(xgettext)",
"ladspa-devel",
"lame-devel",
"pkgconfig(alsa)",
"pkgconfig(bash-completion)",
Expand Down Expand Up @@ -1744,6 +1748,6 @@
}
},
"source-name": "gstreamer",
"source-release": "6",
"source-release": "7",
"source-version": "1.24.11"
}
3 changes: 2 additions & 1 deletion g/gstreamer/stone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
name : gstreamer
version : 1.24.11
release : 6
release : 7
homepage : https://gstreamer.freedesktop.org/
upstreams :
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/archive/1.24.11/gstreamer-1.24.11.tar.gz : a7b9bf0904d3ae103291fc586679f55bd78dd96a1e871d8a58acfae7c71c7105
Expand All @@ -14,7 +14,7 @@
GStreamer can bridge to other multimedia frameworks in order to reuse existing components (e.g. codecs) and use platform input/output mechanisms.
license :
- LGPL-2.1-or-later
builddeps :

Check warning on line 17 in g/gstreamer/stone.yaml

View workflow job for this annotation

GitHub Actions / Checks

builddeps are not in order, expected: - binary(bison) - binary(cargo) - binary(flex) - binary(g-ir-scanner) - binary(glslc) - binary(nasm) - binary(valac) - binary(xgettext) - pkgconfig(alsa) - pkgconfig(bash-completion) - pkgconfig(fdk-aac) - pkgconfig(gl) - pkgconfig(glib-2.0) - pkgconfig(graphene-1.0) - pkgconfig(gudev-1.0) - pkgconfig(json-glib-1.0) - pkgconfig(lcms2) - pkgconfig(libavfilter) - pkgconfig(libcurl) - pkgconfig(libdrm) - pkgconfig(libdw) - pkgconfig(libjpeg) - pkgconfig(libpulse) - pkgconfig(libsoup-3.0) - pkgconfig(libssl) - pkgconfig(libunwind) - pkgconfig(libwebp) - pkgconfig(libxml-2.0) - pkgconfig(ogg) - pkgconfig(opus) - pkgconfig(orc-0.4) - pkgconfig(pango) - pkgconfig(vapigen) - pkgconfig(vorbis) - pkgconfig(vpx) - pkgconfig(vulkan) - pkgconfig(wayland-client) - pkgconfig(xkbcommon) - ladspa-devel - lame-devel
- binary(bison)
- binary(cargo)
- binary(flex)
Expand All @@ -24,6 +24,7 @@
- binary(xgettext)
- binary(valac)
- lame-devel
- ladspa-devel
- pkgconfig(alsa)
- pkgconfig(bash-completion)
- pkgconfig(fdk-aac)
Expand Down
Binary file added l/ladspa/manifest.x86_64.bin
Binary file not shown.
54 changes: 54 additions & 0 deletions l/ladspa/manifest.x86_64.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/** Human readable report. This is not consumed by boulder */
{
"manifest-version": "0.2",
"packages": {
"ladspa": {
"build-depends": [
"pkgconfig(sndfile)"
],
"depends": [
"interpreter(/usr/lib/ld-linux-x86-64.so.2(x86_64))",
"soname(libc++.so.1(x86_64))",
"soname(libc.so.6(x86_64))",
"soname(libm.so.6(x86_64))",
"soname(libsndfile.so.1(x86_64))"
],
"files": [
"/usr/bin/analyseplugin",
"/usr/bin/applyplugin",
"/usr/bin/listplugins",
"/usr/lib/ladspa/amp.so",
"/usr/lib/ladspa/delay.so",
"/usr/lib/ladspa/filter.so",
"/usr/lib/ladspa/noise.so",
"/usr/lib/ladspa/sine.so"
],
"name": "ladspa",
"provides": [
"binary(analyseplugin)",
"binary(applyplugin)",
"binary(listplugins)",
"soname(ladspa/amp.so(x86_64))",
"soname(ladspa/delay.so(x86_64))",
"soname(ladspa/filter.so(x86_64))",
"soname(ladspa/noise.so(x86_64))",
"soname(ladspa/sine.so(x86_64))"
]
},
"ladspa-devel": {
"build-depends": [
"pkgconfig(sndfile)"
],
"depends": [
"ladspa"
],
"files": [
"/usr/include/ladspa.h"
],
"name": "ladspa-devel"
}
},
"source-name": "ladspa",
"source-release": "1",
"source-version": "1.17"
}
6 changes: 6 additions & 0 deletions l/ladspa/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
releases:
id: 227231
rss: ~
security:
# Last checked 2025-01-13
cpe: ~
108 changes: 108 additions & 0 deletions l/ladspa/pkg/0001-Respect-build-environment.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Reilly Brogan <[email protected]>
Date: Fri, 10 Jan 2025 23:47:52 -0600
Subject: [PATCH] Respect build environment

This was largely adapted from Debian, but basically this makes it so that ladspa uses the toolchain set in the build environment and all appropriate flags.

Additionally we specify the PLUGINS_DIR variable so that we can pass in the final path to the ladspa plugin directory so that listplugins works correctly.

---
src/Makefile | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 774930a..98d8959 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -15,10 +15,10 @@ INSTALL_BINARY_DIR = /usr/bin/

INCLUDES = -I.
LIBRARIES = -ldl -lm -lsndfile
-CFLAGS = $(INCLUDES) -Wall -Werror -O2 -fPIC \
- -DDEFAULT_LADSPA_PATH=$(INSTALL_PLUGINS_DIR)
+MANDATORY = $(INCLUDES) -fPIC -DDEFAULT_LADSPA_PATH=$(PLUGINS_DIR)
+CFLAGS ?= -Wall -Werror -O2
BINFLAGS = -fPIE -pie
-CXXFLAGS = $(CFLAGS)
+CXXFLAGS ?= -Wall -Werror -O2
PLUGINS = ../plugins/amp.so \
../plugins/delay.so \
../plugins/filter.so \
@@ -27,8 +27,8 @@ PLUGINS = ../plugins/amp.so \
PROGRAMS = ../bin/analyseplugin \
../bin/applyplugin \
../bin/listplugins
-CC = cc
-CPP = c++
+CC ?= cc
+CXX ?= c++

###############################################################################
#
@@ -36,25 +36,25 @@ CPP = c++
#

../plugins/%.so: plugins/%.c ladspa.h gcc_exports.map
- $(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
+ $(CC) $(MANDATORY) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
$(CC) -o ../plugins/$*.so \
plugins/$*.o \
-shared \
- $(CFLAGS) \
+ $(LDFLAGS) \
-fvisibility=hidden \
-fvisibility-inlines-hidden \
- -s \
-Wl,--version-script=gcc_exports.map

../plugins/%.so: plugins/%.cpp ladspa.h gcc_exports.map
- $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
- $(CPP) -o ../plugins/$*.so \
+ $(CXX) $(MANDATORY) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
+ $(CXX) -o ../plugins/$*.so \
plugins/$*.o \
-shared \
- $(CXXFLAGS) \
+ $(MANDATORY) \
+ $(LDFLAGS) \
+ $(LIBRARIES) \
-fvisibility=hidden \
-fvisibility-inlines-hidden \
- -s \
-Wl,--version-script=gcc_exports.map

###############################################################################
@@ -105,23 +105,29 @@ targets: $(PLUGINS) $(PROGRAMS)
# PROGRAMS
#

+%.o: %.c
+ $(CC) $(CFLAGS) $(MANDATORY) -c -o $@ $<
+
../bin/applyplugin: applyplugin.o load.o default.o
$(CC) $(CFLAGS) $(BINFLAGS) \
-o ../bin/applyplugin \
applyplugin.o load.o default.o \
- $(LIBRARIES)
+ $(LIBRARIES) \
+ $(LDFLAGS)

../bin/analyseplugin: analyseplugin.o load.o default.o
$(CC) $(CFLAGS) $(BINFLAGS) \
-o ../bin/analyseplugin \
analyseplugin.o load.o default.o \
- $(LIBRARIES)
+ $(LIBRARIES) \
+ $(LDFLAGS)

../bin/listplugins: listplugins.o search.o
$(CC) $(CFLAGS) $(BINFLAGS) \
-o ../bin/listplugins \
listplugins.o search.o \
- $(LIBRARIES)
+ $(LIBRARIES) \
+ $(LDFLAGS)

###############################################################################
#
30 changes: 30 additions & 0 deletions l/ladspa/stone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# SPDX-FileCopyrightText: © 2020-2025 Serpent OS Developers
#
# SPDX-License-Identifier: MPL-2.0
#
name : ladspa
version : 1.17
release : 1
homepage : https://www.ladspa.org
upstreams :
- http://www.ladspa.org/download/ladspa_sdk_1.17.tgz : 27d24f279e4b81bd17ecbdcc38e4c42991bb388826c0b200067ce0eb59d3da5b
summary : Linux Audio Developer's Simple Plugin API
description : |
Linux Audio Developer's Simple Plugin API
license : LGPL-2.1-or-later
builddeps :
- pkgconfig(sndfile)
tuning :
- lto: full
# 2025-01-13 bindnow prevents filter.so from showing up in the output of listplugins
- bindnow: false
setup : |
%patch %(pkgdir)/0001-Respect-build-environment.patch
build : |
%make -C src targets PLUGINS_DIR="%(libdir)/ladspa"
install : |
%make_install -C src \
INSTALL_BINARY_DIR="%(installroot)/%(bindir)/" \
INSTALL_INCLUDE_DIR="%(installroot)/%(includedir)/" \
INSTALL_PLUGINS_DIR="%(installroot)/%(libdir)/ladspa"
Loading