Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio/jack-capture: Add dependencies; Fix format handling code
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- gen_das_config_h.sh.orig 2022-11-04 16:32:42 UTC | ||
+++ gen_das_config_h.sh | ||
@@ -16,7 +16,7 @@ | ||
echo "#include <sndfile.h>" >temp$$.c | ||
echo "main(){return SF_FORMAT_OGG;}" >>temp$$.c | ||
echo >>temp$$.c | ||
-if gcc temp$$.c 2>/dev/null; then | ||
+if gcc $CFLAGS $LDFLAGS temp$$.c 2>/dev/null; then | ||
echo "#define HAVE_OGG 1" | ||
else | ||
echo "#define HAVE_OGG 0" | ||
@@ -26,7 +26,7 @@ fi | ||
echo "#include <lame/lame.h>" >temp$$.c | ||
echo "main(){return 0;}" >>temp$$.c | ||
echo >>temp$$.c | ||
-if gcc temp$$.c -lmp3lame 2>/dev/null; then | ||
+if gcc $CFLAGS $LDFLAGS temp$$.c -lmp3lame 2>/dev/null; then | ||
echo "#define HAVE_LAME 1" | ||
echo "//COMPILEFLAGS -lmp3lame" | ||
else | ||
@@ -37,7 +37,7 @@ fi | ||
echo "#include <lo/lo.h>" >temp$$.c | ||
echo "main(){return 0;}" >>temp$$.c | ||
echo >>temp$$.c | ||
-if pkg-config --cflags --libs liblo >/dev/null 2>/dev/null && gcc temp$$.c `pkg-config --cflags --libs liblo` 2>/dev/null ; then | ||
+if pkg-config --cflags --libs liblo >/dev/null 2>/dev/null && gcc $CFLAGS $LDFLAGS temp$$.c `pkg-config --cflags --libs liblo` 2>/dev/null ; then | ||
echo "#define HAVE_LIBLO 1" | ||
echo "//COMPILEFLAGS " `pkg-config --cflags --libs liblo` | ||
else | ||
@@ -48,7 +48,7 @@ fi | ||
echo "#include <jack/jack.h>" >temp$$.c | ||
echo "main(){return (int)jack_port_get_latency_range;}" >>temp$$.c | ||
echo >>temp$$.c | ||
-if gcc temp$$.c -ljack 2>/dev/null ; then | ||
+if gcc $CFLAGS $LDFLAGS temp$$.c -ljack 2>/dev/null ; then | ||
echo "#define NEW_JACK_LATENCY_API 1" | ||
else | ||
echo "#define NEW_JACK_LATENCY_API 0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- gen_setformat_c.sh.orig 2022-11-04 20:56:46 UTC | ||
+++ gen_setformat_c.sh | ||
@@ -63,7 +63,7 @@ for a in $ai;do | ||
esac | ||
echo "main(){return $format;}" >>temp.c | ||
echo >>temp.c | ||
- if gcc temp.c 2>/dev/null; then | ||
+ if gcc $CFLAGS $LDFLAGS temp.c 2>/dev/null; then | ||
echo " (!strcasecmp(\""$a"\",soundfile_format)) ? $format :" | ||
fi | ||
done |