Files
gentoo/media-plugins/tap-plugins/files/tap-plugins-1.0.1-makefile.patch
Miroslav Šulc 3afa3e73cc media-plugins/tap-plugins: bump to 1.0.1 + added live
based on work of RarogCmex <denis7774@gmail.com> - thanks

Bug: https://github.com/gentoo/gentoo/pull/14834
Bug: https://bugs.gentoo.org/709282
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2020-08-24 12:41:49 +02:00

48 lines
1.5 KiB
Diff

diff --git a/Makefile b/Makefile
index 54049cd..86f7175 100644
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,8 @@
# Change this if you want to install somewhere else. In particular
# you may wish to remove the middle "local/" part of the path.
-INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
-INSTALL_LRDF_DIR = /usr/local/share/ladspa/rdf/
+#INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
+#INSTALL_LRDF_DIR = /usr/local/share/ladspa/rdf/
# NO EDITING below this line is required
# if all you want to do is install and use the plugins.
@@ -37,13 +37,15 @@ INSTALL_LRDF_DIR = /usr/local/share/ladspa/rdf/
OS := $(shell uname -s)
CC = gcc
-CFLAGS = -I. -O3 -Wall -fomit-frame-pointer -funroll-loops -ffast-math -c -fPIC -DPIC
+CFLAGS = -I. -Wall -fomit-frame-pointer -funroll-loops -ffast-math -c -fPIC -DPIC
ifeq ($(OS),Darwin)
-LDFLAGS = -nostartfiles -shared -Wl,-install_name,symbolic -lc -lm
+LDFLAGS = -nostartfiles -shared -Wl,-install_name,symbolic -lc -lm $(EXTRA_LDFLAGS)
else
-LDFLAGS = -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt
+LDFLAGS = -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt $(EXTRA_LDFLAGS)
endif
+EXTRA_LDFLAGS =
MODULES = $(wildcard *.c)
+LIBADD = -lc -lm -lrt
all: $(MODULES:%.c=%.so)
@@ -54,10 +56,10 @@ tap_dynamics_m.o: tap_dynamics_presets.h
tap_dynamics_st.o: tap_dynamics_presets.h
%.o: %.c tap_utils.h ladspa.h
- $(CC) $(CFLAGS) $< -o $@
+ $(CC) $(CFLAGS) $(OPT_CFLAGS) $< -o $@
%.so: %.o
- $(CC) -o $@ $< $(LDFLAGS)
+ $(CC) $(LDFLAGS) -o $@ $< $(LIBADD)
# OTHER TARGETS