[packages/xmms-effect-defx] Rel 2
arekm
arekm at pld-linux.org
Sun Mar 15 18:24:55 CET 2026
commit aa3831e8a20a0e0146b77a51ac3ca7260fbd16e3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 18:24:48 2026 +0100
Rel 2
xmms-effect-defx-modern-build.patch | 59 +++++++++++++++++++++++++++++++++++++
xmms-effect-defx.spec | 7 +++--
2 files changed, 64 insertions(+), 2 deletions(-)
---
diff --git a/xmms-effect-defx.spec b/xmms-effect-defx.spec
index ffd175a..622069f 100644
--- a/xmms-effect-defx.spec
+++ b/xmms-effect-defx.spec
@@ -2,11 +2,12 @@ Summary: DeFX Multi-effects processor Plug-in for XMMS
Summary(pl.UTF-8): Procesor efektów DeFX - wtyczka dla XMMS
Name: xmms-effect-defx
Version: 0.9.9
-Release: 1
+Release: 2
License: GPL
Group: X11/Applications/Sound
Source0: http://dl.sourceforge.net/defx/xmms-defx-%{version}.tar.gz
# Source0-md5: 89d1e2dce6fcb8eedada91891366a9ba
+Patch0: %{name}-modern-build.patch
URL: http://defx.sourceforge.net/
BuildRequires: rpmbuild(macros) >= 1.125
BuildRequires: xmms-devel >= 1.2.3
@@ -33,11 +34,13 @@ pogrupowanych w 4 oddzielne moduły:
%prep
%setup -q -n xmms-defx-%{version}
+%patch -P0 -p1
%build
%{__make} \
CC="%{__cc}" \
- CFLAGS="-c %{rpmcflags} -fPIC -ffast-math `gtk-config --cflags`"
+ CFLAGS="-c %{rpmcflags} -fPIC -ffast-math `gtk-config --cflags`" \
+ LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/xmms-effect-defx-modern-build.patch b/xmms-effect-defx-modern-build.patch
new file mode 100644
index 0000000..d746a47
--- /dev/null
+++ b/xmms-effect-defx-modern-build.patch
@@ -0,0 +1,59 @@
+Fix missing C headers and honor RPM linker flags.
+
+This keeps the legacy build working with current toolchains without
+changing plugin behavior.
+
+diff -urN a/Makefile new/Makefile
+--- a/Makefile 2026-03-15 17:09:11.029824186 +0100
++++ b/Makefile 2026-03-15 17:09:11.034469869 +0100
+@@ -7,7 +7,7 @@
+ all: $(DEFX)
+
+ $(DEFX): $(COMMONLIBS)
+- $(CC) $(LIBDIR) -shared src/plugin.o -o $@ $(COMMONLIBS)
++ $(CC) $(LDFLAGS) $(LIBDIR) -shared src/plugin.o -o $@ $(COMMONLIBS)
+ cp $(DEFX) ..
+
+ clean :
+diff -urN a/src/config.c new/src/config.c
+--- a/src/config.c 2026-03-15 17:09:11.038152577 +0100
++++ b/src/config.c 2026-03-15 17:09:11.041737069 +0100
+@@ -1,4 +1,5 @@
+ /* Configuration save/restore routines */
++#include <string.h>
+ #include <stdlib.h>
+ #include <xmms/configfile.h>
+ #include "config.h"
+diff -urN a/src/fx/mod.c new/src/fx/mod.c
+--- a/src/fx/mod.c 2026-03-15 17:09:11.043507655 +0100
++++ b/src/fx/mod.c 2026-03-15 17:09:11.047331787 +0100
+@@ -1,5 +1,6 @@
+ /* Chorus, Flange and Phaser module */
+
++#include <stdlib.h>
+ #include <math.h>
+ #include <fx/fx.h>
+
+diff -urN a/src/gui/gui.c new/src/gui/gui.c
+--- a/src/gui/gui.c 2026-03-15 17:09:11.049586611 +0100
++++ b/src/gui/gui.c 2026-03-15 17:09:11.053240824 +0100
+@@ -7,6 +7,7 @@
+ #include <gui/pan.h>
+ #include <gui/reverb.h>
+ #include <config.h>
++#include <fx/fx.h>
+ #include <plugin.h>
+
+ #define nPanels 4
+diff -urN a/src/gui/mod.c new/src/gui/mod.c
+--- a/src/gui/mod.c 2026-03-15 17:09:11.055006742 +0100
++++ b/src/gui/mod.c 2026-03-15 17:09:11.058516707 +0100
+@@ -43,7 +43,7 @@
+ }
+
+ /* change FX type */
+-static gui_mod_type(GtkRadioButton *w, gpointer data){
++static void gui_mod_type(GtkRadioButton *w, gpointer data){
+ if (GTK_TOGGLE_BUTTON(w)->active) {
+ type=(int)data;
+ defx_param(FX_MOD,nLevels+1,type);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xmms-effect-defx.git/commitdiff/aa3831e8a20a0e0146b77a51ac3ca7260fbd16e3
More information about the pld-cvs-commit
mailing list