diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-31 17:48:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-31 17:48:50 +0000 |
commit | 88e6368ac393fb69b358b60fcedf125f4724172f (patch) | |
tree | f2511a593c9c60c29d08b5d8f9684d2666bc20b4 /media-libs/zita-resampler/files | |
parent | 0c7c7c833ab740636f5a76d53ebe5bb6e0e793a8 (diff) |
gentoo auto-resync : 31:01:2024 - 17:48:49
Diffstat (limited to 'media-libs/zita-resampler/files')
-rw-r--r-- | media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch b/media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch new file mode 100644 index 000000000000..a83c2a70db72 --- /dev/null +++ b/media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch @@ -0,0 +1,86 @@ +--- a/apps/Makefile 2023-02-17 12:27:32.000000000 +0300 ++++ b/apps/Makefile 2023-02-19 15:19:08.513618954 +0300 +@@ -23,18 +23,17 @@ BINDIR ?= $(PREFIX)/bin + MANDIR ?= /usr/share/man/man1 + + VERSION = 1.10.1 +-CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" +-CXXFLAGS += -O2 -ffast-math -Wall +-CXXFLAGS += -march=native ++CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" -I ../source ++CXXFLAGS += -ffast-math -Wall + + +-all: zresample zretune zresample.1.gz zretune.1.gz ++all: zresample zretune + + + ZRESAMPLE_O = zresample.o audiofile.o dither.o + zresample: LDLIBS += -lzita-resampler -lsndfile -lrt + zresample: $(ZRESAMPLE_O) +- $(CXX) $(LDFLAGS) -o $@ $(ZRESAMPLE_O) $(LDLIBS) ++ $(CXX) -L ../source $(LDFLAGS) -o $@ $(ZRESAMPLE_O) $(LDLIBS) + $(ZRESAMPLE_O): + -include $(ZRESAMPLE_O:%.o=%.d) + +@@ -42,31 +41,24 @@ $(ZRESAMPLE_O): + ZRETUNE_O = zretune.o audiofile.o dither.o + zretune: LDLIBS += -lzita-resampler -lsndfile -lrt + zretune: $(ZRETUNE_O) +- $(CXX) $(LDFLAGS) -o $@ $(ZRETUNE_O) $(LDLIBS) ++ $(CXX) -L ../source $(LDFLAGS) -o $@ $(ZRETUNE_O) $(LDLIBS) + $(ZRETUNE_O): + -include $(ZRETUNE_O:%.o=%.d) + + +-zresample.1.gz: zresample.1 +- gzip -c zresample.1 > zresample.1.gz +- +-zretune.1.gz: zretune.1 +- gzip -c zretune.1 > zretune.1.gz +- +- + install: all + install -d $(DESTDIR)$(BINDIR) + install -d $(DESTDIR)$(MANDIR) + install -m 755 zresample $(DESTDIR)$(BINDIR) + install -m 755 zretune $(DESTDIR)$(BINDIR) +- install -m 644 zresample.1.gz $(DESTDIR)$(MANDIR) +- install -m 644 zretune.1.gz $(DESTDIR)$(MANDIR) ++ install -m 644 zresample.1 $(DESTDIR)$(MANDIR) ++ install -m 644 zretune.1 $(DESTDIR)$(MANDIR) + + uninstall: + /bin/rm -f $(DESTDIR)$(BINDIR)/zresample + /bin/rm -f $(DESTDIR)$(BINDIR)/zretune +- /bin/rm -f $(DESTDIR)$(MANDIR)/zresample.1.gz +- /bin/rm -f $(DESTDIR)$(MANDIR)/zretune.1.gz ++ /bin/rm -f $(DESTDIR)$(MANDIR)/zresample.1 ++ /bin/rm -f $(DESTDIR)$(MANDIR)/zretune.1 + + clean: + /bin/rm -f *~ *.o *.a *.d *.so *.gz zresample zretune +--- a/source/Makefile 2023-02-17 12:27:32.000000000 +0300 ++++ b/source/Makefile 2023-02-19 15:07:48.327102241 +0300 +@@ -31,10 +31,7 @@ VERSION = $(MAJVERS).$(MINVERS) + DISTDIR = zita-resampler-$(VERSION) + + CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS +-CPPFLAGS += -DENABLE_SSE2 +-#CPPFLAGS += -DENABLE_NEON +-CXXFLAGS += -Wall -fPIC -O2 -ffast-math +-CXXFLAGS += -march=native ++CXXFLAGS += -Wall -fPIC -ffast-math + LDFLAGS += + LDLIBS += + +@@ -49,6 +47,9 @@ ZITA-RESAMPLER_H = zita-resampler/resamp + zita-resampler/vresampler.h zita-resampler/cresampler.h + + ++$(ZITA-RESAMPLER_SO): $(ZITA-RESAMPLER_MIN) ++ ln -sf $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_SO) ++ + $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O) + $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP) + |