upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / faust / repos / community-x86_64 / faust-2.54.9-sound2faust_makefile.patch
blob551dd1e8b3e2a6610a7ee92c47451da63ef7f139
1 From 2ec1754dc9863f87cc193d3e33b05fbe52ac4036 Mon Sep 17 00:00:00 2001
2 From: David Runge <dave@sleepmap.de>
3 Date: Tue, 20 Dec 2022 21:41:18 +0100
4 Subject: [PATCH] Revert "Correct and document sound2reader Makefile."
6 This reverts commit d1fe8570d2d77839359c0cd6c13bb4abc0c7efb5.
7 ---
8 tools/sound2faust/Makefile | 7 +++++--
9 1 file changed, 5 insertions(+), 2 deletions(-)
11 diff --git a/tools/sound2faust/Makefile b/tools/sound2faust/Makefile
12 index 3f7114263..5d779d158 100644
13 --- a/tools/sound2faust/Makefile
14 +++ b/tools/sound2faust/Makefile
15 @@ -12,20 +12,23 @@ LIBS = -lwsock32
16 EXE = .exe
17 endif
19 -all : static
20 +all : sound2faust sound2file
22 sound2faust : sound2faust.cpp
24 $(CXX) -O3 $(LDFLAGS) sound2faust.cpp -I../../architecture $(shell pkg-config --cflags --static --libs sndfile) -o sound2faust $(LIBS)
26 sound2file : sound2file.cpp
28 $(CXX) -O3 $(LDFLAGS) sound2file.cpp -I../../architecture $(shell pkg-config --cflags --static --libs sndfile) -o sound2file $(LIBS)
30 static:
31 - # To compile libsndfile in static mode and no external libs: ./configure --enable-static=yes --enable-dynamic=no --disable-external-libs
33 $(CXX) -O3 $(LDFLAGS) sound2faust.cpp -I../../architecture $(shell pkg-config --cflags sndfile) /usr/local/lib/libsndfile.a -o sound2faust
34 $(CXX) -O3 $(LDFLAGS) sound2file.cpp -I../../architecture $(shell pkg-config --cflags sndfile) /usr/local/lib/libsndfile.a -o sound2file
36 install :
38 ([ -e sound2faust ]) && install sound2faust $(prefix)/bin/ || echo sound2faust not found
39 ([ -e sound2file ]) && install sound2file $(prefix)/bin/ || echo sound2file not found
40 ([ -e sound2reader ]) && install sound2reader $(prefix)/bin/ || echo sound2reader not found
41 --
42 2.39.0