shithub: sox

Download patch

ref: 6b6a766c20d01ef57072def21d52ad26bc5f620b
parent: 6fa0f577dab703fc3c682eb8ab604aa6912a4577
author: robs <robs>
date: Tue Sep 2 02:57:22 EDT 2008

fix mp3 inclusion

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -99,6 +99,10 @@
 optional3(HAVE_FFMPEG ffmpeg/avformat.h avformat av_open_input_file avutil av_rescale_q avcodec avcodec_decode_audio2 ffmpeg)
 optional(HAVE_WAVPACK wavpack/wavpack.h wavpack WavpackGetSampleRate wavpack)
 
+if (HAVE_LAME_LAME_H OR HAVE_MAD_H)
+  set(HAVE_MP3 1)
+endif (HAVE_LAME_LAME_H OR HAVE_MAD_H)
+
 configure_file(sox.pc.in sox.pc @ONLY)
 install_files(/lib/pkgconfig FILES sox.pc)
 
--- a/src/soxconfig.h.cmake
+++ b/src/soxconfig.h.cmake
@@ -17,6 +17,7 @@
 #cmakedefine HAVE_LTDL_H              1
 #cmakedefine HAVE_MACHINE_SOUNDCARD_H 1
 #cmakedefine HAVE_MAD_H               1
+#cmakedefine HAVE_MP3                 1
 #cmakedefine HAVE_OGG_VORBIS          1
 #cmakedefine HAVE_POPEN               1
 #cmakedefine HAVE_PNG                 1