You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
3.3 KiB

  1. Index: squeezelite-1.9.1-1130/Makefile
  2. ===================================================================
  3. --- squeezelite-1.9.1-1130.orig/Makefile
  4. +++ squeezelite-1.9.1-1130/Makefile
  5. @@ -17,7 +17,7 @@ OPT_NO_FAAD = -DNO_FAAD
  6. SOURCES = \
  7. main.c slimproto.c buffer.c stream.c utils.c \
  8. output.c output_alsa.c output_pa.c output_stdout.c output_pack.c decode.c \
  9. - flac.c pcm.c mad.c vorbis.c mpg.c
  10. + flac.c pcm.c vorbis.c mpg.c
  11. SOURCES_DSD = dsd.c dop.c dsd2pcm/dsd2pcm.c
  12. SOURCES_FF = ffmpeg.c
  13. @@ -30,7 +30,7 @@ SOURCES_FAAD = faad.c
  14. LINK_LINUX = -ldl
  15. LINK_RPI = -lwiringPi
  16. -LINKALL = -lFLAC -lmad -lvorbisfile -lmpg123
  17. +LINKALL = -lFLAC -lvorbisfile -lmpg123
  18. LINKALL_FF = -lavcodec -lavformat -lavutil
  19. LINKALL_RESAMPLE = -lsoxr
  20. LINKALL_IR = -llirc_client
  21. Index: squeezelite-1.9.1-1130/decode.c
  22. ===================================================================
  23. --- squeezelite-1.9.1-1130.orig/decode.c
  24. +++ squeezelite-1.9.1-1130/decode.c
  25. @@ -176,11 +176,7 @@ void decode_init(log_level level, const
  26. if (!strstr(exclude_codecs, "pcm") && (!include_codecs || (order_codecs = strstr(include_codecs, "pcm"))))
  27. sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_pcm());
  28. - // try mad then mpg for mp3 unless command line option passed
  29. - if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mad")) &&
  30. - (!include_codecs || (order_codecs = strstr(include_codecs, "mp3")) || (order_codecs = strstr(include_codecs, "mad"))))
  31. - sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_mad());
  32. - else if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mpg")) &&
  33. + if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mpg")) &&
  34. (!include_codecs || (order_codecs = strstr(include_codecs, "mp3")) || (order_codecs = strstr(include_codecs, "mpg"))))
  35. sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_mpg());
  36. Index: squeezelite-1.9.1-1130/main.c
  37. ===================================================================
  38. --- squeezelite-1.9.1-1130.orig/main.c
  39. +++ squeezelite-1.9.1-1130/main.c
  40. @@ -44,7 +44,7 @@
  41. #else
  42. #define CODECS_DSD ""
  43. #endif
  44. -#define CODECS_MP3 " (mad,mpg for specific mp3 codec)"
  45. +#define CODECS_MP3 ""
  46. #define CODECS CODECS_BASE CODECS_AAC CODECS_FF CODECS_DSD CODECS_MP3
  47. Index: squeezelite-1.9.1-1130/squeezelite.h
  48. ===================================================================
  49. --- squeezelite-1.9.1-1130.orig/squeezelite.h
  50. +++ squeezelite-1.9.1-1130/squeezelite.h
  51. @@ -163,7 +163,6 @@
  52. #if LINUX
  53. #define LIBFLAC "libFLAC.so.8"
  54. -#define LIBMAD "libmad.so.0"
  55. #define LIBMPG "libmpg123.so.0"
  56. #define LIBVORBIS "libvorbisfile.so.3"
  57. #define LIBTREMOR "libvorbisidec.so.1"
  58. @@ -177,7 +176,6 @@
  59. #if OSX
  60. #define LIBFLAC "libFLAC.8.dylib"
  61. -#define LIBMAD "libmad.0.dylib"
  62. #define LIBMPG "libmpg123.0.dylib"
  63. #define LIBVORBIS "libvorbisfile.3.dylib"
  64. #define LIBTREMOR "libvorbisidec.1.dylib"
  65. @@ -190,7 +188,6 @@
  66. #if WIN
  67. #define LIBFLAC "libFLAC.dll"
  68. -#define LIBMAD "libmad-0.dll"
  69. #define LIBMPG "libmpg123-0.dll"
  70. #define LIBVORBIS "libvorbisfile.dll"
  71. #define LIBTREMOR "libvorbisidec.dll"
  72. @@ -203,7 +200,6 @@
  73. #if FREEBSD
  74. #define LIBFLAC "libFLAC.so.11"
  75. -#define LIBMAD "libmad.so.2"
  76. #define LIBMPG "libmpg123.so.0"
  77. #define LIBVORBIS "libvorbisfile.so.6"
  78. #define LIBTREMOR "libvorbisidec.so.1"