shithub: sox

Download patch

ref: 38f670fa005634b12ae0dbdc47acb300fd526788
parent: f2b143be6231f0ac07be9c98dd4268b3ef56a6a3
author: Mans Rullgard <mans@mansr.com>
date: Sun Aug 2 08:27:24 EDT 2020

build: drop cmake support

The cmake support is outdated and broken.  Delete it.

--- a/.gitignore
+++ b/.gitignore
@@ -24,9 +24,5 @@
 sox.pc
 README
 Docs.Features
-
-CMakeCache.txt
-CMakeFiles
-cmake_install.cmake
 *.a
 tags
--- a/CMakeLists.txt
+++ /dev/null
@@ -1,203 +1,0 @@
-cmake_minimum_required(VERSION 2.4)
-include(CheckIncludeFiles)
-include(CheckFunctionExists)
-include(CheckLibraryExists)
-
-macro(optional variable header library function source)
-  check_include_files(${header} ${variable}1)
-  if (${variable}1)
-    check_library_exists(${library} ${function} "" ${variable})
-    if (${variable})
-      set(optional_srcs ${optional_srcs} ${source})
-      set(optional_libs ${optional_libs} ${library})
-    endif (${variable})
-  endif (${variable}1)
-endmacro(optional)
-
-macro(optional2 variable header library1 function1 library2 function2 source)
-  check_include_files(${header} ${variable}1)
-  if (${variable}1)
-    check_library_exists(${library1} ${function1} "" ${variable}2)
-    if (${variable}2)
-      check_library_exists(${library2} ${function2} "" ${variable})
-      if (${variable})
-	set(optional_srcs ${optional_srcs} ${source})
-	set(optional_libs ${optional_libs} ${library1} ${library2})
-      endif (${variable})
-    endif (${variable}2)
-  endif (${variable}1)
-endmacro(optional2)
-
-macro(optional3 variable header library1 function1 library2 function2 library3 function3 source)
-  check_include_files(${header} ${variable}1)
-  if (${variable}1)
-    check_library_exists(${library1} ${function1} "" ${variable}2)
-    if (${variable}2)
-      check_library_exists(${library2} ${function2} "" ${variable}3)
-      if (${variable}3)
-	check_library_exists(${library3} ${function3} "" ${variable})
-        if (${variable})
-          set(optional_srcs ${optional_srcs} ${source})
-          set(optional_libs ${optional_libs} ${library1} ${library2} ${library3})
-        endif (${variable})
-      endif (${variable}3)
-    endif (${variable}2)
-  endif (${variable}1)
-endmacro(optional3)
-
-macro(optional4 variable header library1 function1 library2 function2 library3 function3 library4 function4 source)
-  check_include_files(${header} ${variable}1)
-  if (${variable}1)
-    check_library_exists(${library1} ${function1} "" ${variable}2)
-    if (${variable}2)
-      check_library_exists(${library2} ${function2} "" ${variable}3)
-      if (${variable}3)
-	check_library_exists(${library3} ${function3} "" ${variable}4)
-	if (${variable}4)
-	  check_library_exists(${library4} ${function4} "" ${variable})
-	  if (${variable})
-	    set(optional_srcs ${optional_srcs} ${source})
-	    set(optional_libs ${optional_libs} ${library1} ${library2} ${library3} ${library4})
-	  endif (${variable})
-	endif (${variable}4)
-      endif (${variable}3)
-    endif (${variable}2)
-  endif (${variable}1)
-endmacro(optional4)
-
-project(sox C)
-
-if(CMAKE_COMPILER_IS_GNUCC)
-	add_definitions(-fstack-protector -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-format -Wno-long-long)
-endif(CMAKE_COMPILER_IS_GNUCC)
-
-include(TestBigEndian)
-
-check_include_files("byteswap.h"         HAVE_BYTESWAP_H)
-check_include_files("inttypes.h"         HAVE_INTTYPES_H)
-check_include_files("fenv.h"             HAVE_FENV_H)
-check_include_files("glob.h"             HAVE_GLOB_H)
-check_include_files("io.h"               HAVE_IO_H)
-#check_include_files("ltdl.h"             HAVE_LTDL_H) # no plug-ins as yet
-check_include_files("stdint.h"           HAVE_STDINT_H)
-check_include_files("string.h"           HAVE_STRING_H)
-check_include_files("strings.h"          HAVE_STRINGS_H)
-check_include_files("sys/stat.h"         HAVE_SYS_STAT_H)
-check_include_files("sys/time.h"         HAVE_SYS_TIME_H)
-check_include_files("sys/timeb.h"        HAVE_SYS_TIMEB_H)
-check_include_files("sys/types.h"        HAVE_SYS_TYPES_H)
-check_include_files("sys/utsname.h"      HAVE_SYS_UTSNAME_H)
-check_include_files("termios.h"          HAVE_TERMIOS_H)
-check_include_files("unistd.h"           HAVE_UNISTD_H)
-
-check_function_exists("fmemopen"         HAVE_FMEMOPEN)
-check_function_exists("fseeko"           HAVE_FSEEKO)
-check_function_exists("gettimeofday"     HAVE_GETTIMEOFDAY)
-check_function_exists("mkstemp"          HAVE_MKSTEMP)
-check_function_exists("popen"            HAVE_POPEN)
-check_function_exists("strcasecmp"       HAVE_STRCASECMP)
-check_function_exists("strrstr"          HAVE_STRRSTR)
-check_function_exists("vsnprintf"        HAVE_VSNPRINTF)
-
-test_big_endian(WORDS_BIGENDIAN)
-
-optional(NEED_LIBM math.h m pow "")
-if(NEED_LIBM)
-  set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} -lm)
-  optional(HAVE_LRINT math.h m lrint "")
-else(NEED_LIBM)
-  check_function_exists("lrint" HAVE_LRINT)
-endif(NEED_LIBM)
-optional(EXTERNAL_GSM gsm/gsm.h gsm gsm_create "")
-optional(EXTERNAL_LPC10 lpc10/lpc10.h lpc10 lpc10_create "")
-optional(HAVE_ALSA alsa/asoundlib.h asound snd_pcm_open alsa)
-optional(HAVE_AMRNB amrnb/sp_dec.h amrnb Decoder_Interface_init amr-nb)
-optional(HAVE_AMRWB amrwb/dec.h amrwb D_IF_init amr-wb)
-if(CMAKE_COMPILER_IS_GNUCC)
-  optional(HAVE_GOMP omp.h gomp omp_get_thread_num "")
-  if(HAVE_GOMP)
-    add_definitions(-fopenmp)
-  endif(HAVE_GOMP)
-endif(CMAKE_COMPILER_IS_GNUCC)
-optional(HAVE_ID3TAG id3tag.h id3tag id3_file_open "")
-optional(HAVE_SNDIO sndio.h sndio sio_open sndio)
-optional(HAVE_AO ao/ao.h ao ao_play ao)
-optional(HAVE_FLAC FLAC/all.h FLAC FLAC__stream_encoder_new flac)
-optional(HAVE_MAD_H mad.h mad mad_stream_buffer mp3)
-optional(HAVE_LAME_LAME_H lame/lame.h mp3lame lame_get_lametag_frame mp3)
-if (NOT HAVE_LAME_LAME_H)
-  optional(HAVE_LAME_LAME_H lame.h mp3lame lame_get_lametag_frame mp3)
-endif (NOT HAVE_LAME_LAME_H)
-optional(HAVE_TWOLAME_H twolame.h twolame twolame_init mp3)
-optional(HAVE_MAGIC magic.h magic magic_open "")
-optional2(HAVE_PNG png.h png png_set_rows z uncompress spectrogram)
-if (HAVE_PNG)
-  check_library_exists(z uncompress "" spectrogram1)
-  if (${spectrogram1})
-    set(optional_libs ${optional_libs} z)
-  endif (${spectrogram1})
-endif (HAVE_PNG)
-optional2(HAVE_PULSEAUDIO pulse/simple.h pulse-simple pa_simple_new pulse pa_strerror pulseaudio)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual sndfile)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual caf)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual fap)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual mat4)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual mat5)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual paf)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual pvf)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual sd2)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual w64)
-optional(HAVE_SNDFILE sndfile.h sndfile sf_open_virtual xi)
-optional(HAVE_SPEEXDSP speex/speex_preprocess.h speexdsp speex_preprocess_run speexdsp)
-optional(HAVE_SUN_AUDIOIO_H sun/audioio.h c ioctl sunaudio)
-if (NOT HAVE_SUN_AUDIOIO_H)
-  optional(HAVE_SYS_AUDIOIO_H sys/audioio.h c ioctl sunaudio)
-endif (NOT HAVE_SUN_AUDIOIO_H)
-optional(HAVE_SYS_SOUNDCARD_H sys/soundcard.h c ioctl oss)
-if (NOT HAVE_SYS_SOUNDCARD_H)
-  optional(HAVE_MACHINE_SOUNDCARD_H machine/soundcard.h ossaudio _oss_ioctl oss)
-endif (NOT HAVE_SYS_SOUNDCARD_H)
-optional(HAVE_WAVEAUDIO mmsystem.h winmm waveInGetDevCapsA waveaudio)
-optional4(HAVE_OGG_VORBIS vorbis/codec.h ogg ogg_stream_flush vorbis vorbis_analysis_headerout vorbisfile ov_clear vorbisenc vorbis_encode_init_vbr vorbis)
-optional3(HAVE_OPUS opusfile.h ogg ogg_stream_flush opus opus_encoder_create opusfile op_open_callbacks opus)
-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)
-
-set(CMAKE_REQUIRED_LIBRARIES mp3lame m)
-check_function_exists("lame_set_VBR_quality" HAVE_LAME_SET_VBR_QUALITY)
-
-if (HAVE_SUN_AUDIOIO_H OR HAVE_SYS_AUDIOIO_H)
-  set(HAVE_SUN_AUDIO 1)
-endif (HAVE_SUN_AUDIOIO_H OR HAVE_SYS_AUDIOIO_H)
-
-if (HAVE_SYS_SOUNDCARD_H OR HAVE_MACHINE_SOUNDCARD_H)
-  set(HAVE_OSS 1)
-endif (HAVE_SYS_SOUNDCARD_H OR HAVE_MACHINE_SOUNDCARD_H)
-
-configure_file(sox.pc.in sox.pc @ONLY)
-install_files(/lib/pkgconfig FILES sox.pc)
-
-subdirs(src)
-
-if (NOT EXTERNAL_GSM)
-  add_subdirectory(libgsm)
-endif (NOT EXTERNAL_GSM)
-
-if (NOT EXTERNAL_LPC10)
-  add_subdirectory(lpc10)
-endif (NOT EXTERNAL_LPC10)
-
-if(APPLE)
-	find_library(COREAUDIO_LIBRARY CoreAudio)
-	mark_as_advanced(COREAUDIO_LIBRARY)
-	if(COREAUDIO_LIBRARY)
-		set(HAVE_COREAUDIO 1)
-		set(optional_srcs ${optional_srcs} coreaudio)
-	endif(COREAUDIO_LIBRARY)
-	set(optional_libs ${optional_libs} ${COREAUDIO_LIBRARY})
-endif(APPLE)
-
-
--- a/INSTALL
+++ b/INSTALL
@@ -2,12 +2,10 @@
                            ----------------
 
 SoX should compile and run on any POSIX compatible system (Linux, BSD,
-Solaris, Xcode on Mac OS X, Cygwin on MS-Windows, etc.).  Some
-non-POSIX compilers (such as MSVC) are supported via the `CMake' build
-utility.  For other compilers/systems, it is often possible to
-manually construct a custom `soxconfig.h' and `Makefile' for that
-system (the minimum requirements are 32-bit CPU, 64-bit FPU, C89
-compiler).
+Solaris, Xcode on Mac OS X, Cygwin on MS-Windows, etc.).  For other
+compilers/systems, it is often possible to manually construct a custom
+`soxconfig.h' and `Makefile' for that system (the minimum requirements
+are 32-bit CPU, 64-bit FPU, C89 compiler).
 
 Note that the `play', `rec', and `soxi' programs are in fact just
 copies-of or links-to (depending on OS) `sox'.
@@ -214,19 +212,10 @@
 Visual Studio 2010 (msvc10), or the Windows SDK 7.1, you may be able to use the
 preconfigured solution found in the sox\msvc9 (VS2008) or sox\msvc10 (VS2010 or
 Windows SDK 7.1) folder. See sox\msvc9\readme.txt or sox\msvc10\readme.txt for
-details on building using the corresponding Microsoft C compiler. If the
-preconfigured solution doesn't work for you, build with CMake as follows:
+details on building using the corresponding Microsoft C compiler.
 
-o Install cmake (http://www.cmake.org/HTML/Download.html)
-o Install any optional libraries to use with SoX
-o Unpack the SoX sources (...tar.gz) to say c:\sox
-o Type cd c:\sox
-o Type cmake -G "compiler" .   (type cmake --help for list of compilers)
 
-This should generate project build files for use with Visual C.
 
-
-
 Appendix: How To Compile SoX with MP3 Support on Win32
 ------------------------------------------------------
 
@@ -246,9 +235,6 @@
 
 o Microsoft Windows (Win32, Win2000, XP, Win2003, Vista, etc.).
 
-o CMake (Cross Platform Make) version 2.4
-  available on [http://www.cmake.org]
-
 o Microsoft Visual Stuio 2008 (earlier versions should also work).
 
 o SoX source distribution version 14.0.1
@@ -302,31 +288,6 @@
   (...\[somewhere]\lameforsox).  Add in the "Library files" collection the
   folder containing mad.lib and the folder containing the lame libraries
   mp3lame.lib and mpglib.lib (...\[somewhere]\lameforsox).
-
-o Edit the CMakeLists.txt in the SoX top directory:
-  Add
-  set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} mpglib)
-  after some blank lines beneath the statement
-  if(NEED_LIBM)
-  set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} -lm)
-  endif(NEED_LIBM)
-
-o Open the windows command line console and change into the SoX top directory.
-
-o Execute cmake like this:
-  cmake.exe ./ -G "Visual Studio 9 2008"
-
-o If the Visual Studio settings are done as described above the following cmake
-  output should appear:
-  ...
-  include files HAVE_MAD_H1 - found
-  mad_stream_buffer in madmad_stream_buffer in mad - found
-  ...
-  include files HAVE_LAME_LAME_H1 - found
-  lame_init in mp3lamelame_init in mp3lame - found
-  ...
-
-o If not check CMakeFiles\CMakeError.log.
 
 o Open Visual Studio and open the SoX solution file in the SoX top directory
   (sox.sln).
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,7 @@
 # prefix to ensure they are added to the distribution.
 dist_man_MANS = sox.1 soxi.1 soxformat.7 libsox.3
 EXTRA_DIST = sox.txt soxi.txt soxformat.txt libsox.txt \
-	     CMakeLists.txt sox.pc.in LICENSE.GPL LICENSE.LGPL \
+	     sox.pc.in LICENSE.GPL LICENSE.LGPL \
 	     cygbuild README.win32 README.osx scripts/batch-example.bat \
 	     README.sh FEATURES.in
 
--- a/libgsm/CMakeLists.txt
+++ /dev/null
@@ -1,1 +1,0 @@
-add_library(gsm add code decode gsm_create gsm_decode gsm_destroy gsm_encode gsm_option long_term lpc preprocess rpe short_term table)
--- a/libgsm/Makefile.am
+++ b/libgsm/Makefile.am
@@ -29,7 +29,7 @@
 if EXTERNAL_GSM
 EXTRA_DIST = add.c code.c decode.c long_term.c lpc.c preprocess.c \
 	     rpe.c gsm_destroy.c gsm_decode.c gsm_encode.c gsm_create.c \
-	     gsm_option.c short_term.c table.c private.h gsm.h CMakeLists.txt \
+	     gsm_option.c short_term.c table.c private.h gsm.h \
 	     aliases.h
 else
 noinst_LTLIBRARIES = libgsm.la
@@ -37,5 +37,4 @@
 libgsm_la_SOURCES = add.c code.c decode.c long_term.c lpc.c preprocess.c \
 		rpe.c gsm_destroy.c gsm_decode.c gsm_encode.c gsm_create.c \
 		gsm_option.c short_term.c table.c private.h aliases.h
-EXTRA_DIST = CMakeLists.txt
 endif
--- a/lpc10/CMakeLists.txt
+++ /dev/null
@@ -1,4 +1,0 @@
-include_directories(${CMAKE_CURRENT_BINARY_DIR})
-
-add_library(lpc10 analys bsynz chanwr dcbias decode deemp difmag dyptrk encode energy f2clib ham84 hp100 invert irc2pc ivfilt lpcdec lpcenc lpcini lpfilt median mload onset pitsyn placea placev preemp prepro random rcchk synths tbdm voicin vparms)
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src)
--- a/lpc10/Makefile.am
+++ b/lpc10/Makefile.am
@@ -3,7 +3,7 @@
   decode.c deemp.c difmag.c dyptrk.c encode.c energy.c f2c.h f2clib.c \
   ham84.c hp100.c invert.c irc2pc.c ivfilt.c lpcdec.c lpcenc.c lpcini.c \
   lpfilt.c median.c mload.c onset.c pitsyn.c placea.c placev.c preemp.c \
-  prepro.c random.c rcchk.c synths.c tbdm.c voicin.c vparms.c lpc10.h CMakeLists.txt
+  prepro.c random.c rcchk.c synths.c tbdm.c voicin.c vparms.c lpc10.h
 else
 noinst_LTLIBRARIES = liblpc10.la
 noinst_HEADERS = lpc10.h
@@ -16,5 +16,4 @@
 if HAVE_LIBLTDL
 AM_LDFLAGS=-avoid-version -module
 endif
-EXTRA_DIST = CMakeLists.txt
 endif
--- a/release.sh
+++ b/release.sh
@@ -1,10 +1,9 @@
 #!/bin/sh
 #
 # Before a release:
-# * Update configure.ac, src/soxconfig.h.cmake, and possibly ChangeLog and
+# * Update configure.ac and possibly ChangeLog and
 #   src/sox.h (SOX_LIB_VERSION_CODE) to match release #. If this is a
-#   release candidate, add "rcN" to end of version in configure.ac and
-#   src/soxconfig.h.cmake.
+#   release candidate, add "rcN" to end of version in configure.ac.
 # * Update date strings and possibly copyright years in man pages.
 # * Tag files to release using following form: git tag sox-14.4.0rc1
 #
--- a/src/CMakeLists.txt
+++ /dev/null
@@ -1,174 +1,0 @@
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}config.h)
-
-include_directories(${CMAKE_CURRENT_BINARY_DIR})
-
-if(CMAKE_COMPILER_IS_GNUCC)
-  execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
-    OUTPUT_VARIABLE ver)
-  string(REGEX REPLACE "([0-9]+)\\.([0-9]+).*" "\\1" major "${ver}")
-  string(REGEX REPLACE "([0-9]+)\\.([0-9]+).*" "\\2" minor "${ver}")
-  math(EXPR ver "100 * ${major} + ${minor}")
-  if(${ver} LESS 403)
-    add_definitions(-Wconversion)
-  else(${ver} LESS 403)
-    add_definitions(-Wtraditional-conversion)
-  endif(${ver} LESS 403)
-  #add_definitions(-Werror)
-endif(CMAKE_COMPILER_IS_GNUCC)
-
-if (NOT EXTERNAL_GSM)
-  set(optional_libs ${optional_libs} gsm)
-endif (NOT EXTERNAL_GSM)
-
-set(effects_srcs
-  bend
-  biquad
-  biquads
-  chorus
-  compand
-  compandt
-  contrast
-  dcshift
-  delay
-  dft_filter
-  dither
-  divide
-  downsample
-  earwax
-  echo
-  echos
-  fade
-  fft4g
-  fir
-  firfit
-  flanger
-  gain
-  hilbert
-  input
-  loudness
-  mcompand
-  noiseprof
-  noisered
-  output
-  overdrive
-  pad
-  phaser
-  rate
-  remix
-  repeat
-  reverb
-  reverse
-  silence
-  sinc
-  skeleff
-  speed
-  splice
-  stat
-  stats
-  stretch
-  swap
-  synth
-  tempo
-  tremolo
-  trim
-  upsample
-  vad
-  vol
-)
-set(formats_srcs
-  8svx
-  adpcm
-  adpcms
-  aifc-fmt
-  aiff
-  aiff-fmt
-  al-fmt
-  au
-  avr
-  cdr
-  cvsd
-  cvsd-fmt
-  dat
-  dvms-fmt
-  f4-fmt
-  f8-fmt
-  g711
-  g721
-  g723_24
-  g723_40
-  g72x
-  gsm
-  gsrt
-  hcom
-  htk
-  ima-fmt
-  ima_rw
-  la-fmt
-  lpc10
-  lu-fmt
-  maud
-  nulfile
-  prc
-  raw
-  raw-fmt
-  s1-fmt
-  s2-fmt
-  s3-fmt
-  s4-fmt
-  sf
-  skelform
-  smp
-  sounder
-  soundtool
-  sox-fmt
-  sphere
-  tx16w
-  u1-fmt
-  u2-fmt
-  u3-fmt
-  u4-fmt
-  ul-fmt
-  voc
-  vox
-  vox-fmt
-  wav
-  wve
-  xa
-)
-
-# Uncomment for bit-rot detection on linux
-#set(formats_srcs ${formats_srcs} coreaudio sndio sunaudio waveaudio)
-#add_definitions(-Ibit-rot)
-
-add_library(lib${PROJECT_NAME}
-  effects                 formats_i               libsox_i
-  effects_i               ${formats_srcs}         ${optional_srcs}
-  effects_i_dsp           getopt
-  ${effects_srcs}         util
-  formats                 libsox                  xmalloc
-)
-add_executable(${PROJECT_NAME} ${PROJECT_NAME}.c)
-target_link_libraries(${PROJECT_NAME} lib${PROJECT_NAME} lpc10 ${optional_libs})
-add_executable(sox_sample_test sox_sample_test.c)
-add_executable(example0 example0.c)
-target_link_libraries(example0 lib${PROJECT_NAME} lpc10 ${optional_libs})
-add_executable(example1 example1.c)
-target_link_libraries(example1 lib${PROJECT_NAME} lpc10 ${optional_libs})
-add_executable(example2 example2.c)
-target_link_libraries(example2 lib${PROJECT_NAME} lpc10 ${optional_libs})
-add_executable(example3 example3.c)
-target_link_libraries(example3 lib${PROJECT_NAME} lpc10 ${optional_libs})
-add_executable(example4 example4.c)
-target_link_libraries(example4 lib${PROJECT_NAME} lpc10 ${optional_libs})
-add_executable(example5 example5.c)
-target_link_libraries(example5 lib${PROJECT_NAME} lpc10 ${optional_libs})
-add_executable(example6 example6.c)
-target_link_libraries(example6 lib${PROJECT_NAME} lpc10 ${optional_libs})
-find_program(LN ln)
-if (LN)
-  add_custom_target(rec ALL ${LN} -sf sox rec DEPENDS sox)
-  add_custom_target(play ALL ${LN} -sf sox play DEPENDS sox)
-  add_custom_target(soxi ALL ${LN} -sf sox soxi DEPENDS sox)
-endif (LN)
-find_program(CTAGS NAMES exuberant-ctags ctags)
-add_custom_target(tags ${CTAGS} --recurse --extra=fq ${CMAKE_CURRENT_SOURCE_DIR})
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -141,7 +141,6 @@
 example6_LDADD = ${sox_LDADD}
 
 EXTRA_DIST = monkey.wav optional-fmts.am \
-	     CMakeLists.txt soxconfig.h.cmake \
 	     tests.sh testall.sh tests.bat testall.bat test-comments
 
 all: sox$(EXEEXT) play$(EXEEXT) rec$(EXEEXT) soxi$(EXEEXT) sox_sample_test$(EXEEXT) example0$(EXEEXT) example1$(EXEEXT) example2$(EXEEXT) example3$(EXEEXT) example4$(EXEEXT) example5$(EXEEXT) example6$(EXEEXT)
--- a/src/soxconfig.h.cmake
+++ /dev/null
@@ -1,58 +1,0 @@
-#define PACKAGE_VERSION "14.4.2"
-
-#cmakedefine EXTERNAL_GSM             1
-#cmakedefine EXTERNAL_LPC10           1
-#cmakedefine HAVE_ALSA                1
-#cmakedefine HAVE_AMRNB               1
-#cmakedefine HAVE_AMRWB               1
-#cmakedefine HAVE_AO                  1
-#cmakedefine HAVE_BYTESWAP_H          1
-#cmakedefine HAVE_COREAUDIO           1
-#cmakedefine HAVE_FENV_H              1
-#cmakedefine HAVE_FLAC                1
-#cmakedefine HAVE_FMEMOPEN            1
-#cmakedefine HAVE_FSEEKO              1
-#cmakedefine HAVE_GETTIMEOFDAY        1
-#cmakedefine HAVE_GLOB_H              1
-#define HAVE_GSM                      1
-#cmakedefine HAVE_ID3TAG              1
-#cmakedefine HAVE_INTTYPES_H          1
-#cmakedefine HAVE_IO_H                1
-#cmakedefine HAVE_LAME_LAME_H         1
-#cmakedefine HAVE_LAME_SET_VBR_QUALITY 1
-#define HAVE_LPC10                    1
-#cmakedefine HAVE_LRINT               1
-#cmakedefine HAVE_LTDL_H              1
-#cmakedefine HAVE_MACHINE_SOUNDCARD_H 1
-#cmakedefine HAVE_MAD_H               1
-#cmakedefine HAVE_MAGIC               1
-#cmakedefine HAVE_MKSTEMP             1
-#cmakedefine HAVE_MP3                 1
-#cmakedefine HAVE_OGG_VORBIS          1
-#cmakedefine HAVE_OSS                 1
-#cmakedefine HAVE_PNG                 1
-#cmakedefine HAVE_POPEN               1
-#cmakedefine HAVE_PULSEAUDIO          1
-#cmakedefine HAVE_SNDFILE             1
-#cmakedefine HAVE_SNDFILE_1_0_18      1
-#cmakedefine HAVE_SNDIO               1
-#cmakedefine HAVE_SPEEXDSP            1
-#cmakedefine HAVE_STDINT_H            1
-#cmakedefine HAVE_STRCASECMP          1
-#cmakedefine HAVE_STRING_H            1
-#cmakedefine HAVE_STRINGS_H           1
-#cmakedefine HAVE_STRRSTR             1
-#cmakedefine HAVE_SUN_AUDIO           1
-#cmakedefine HAVE_SUN_AUDIOIO_H       1
-#cmakedefine HAVE_SYS_AUDIOIO_H       1
-#cmakedefine HAVE_SYS_SOUNDCARD_H     1
-#cmakedefine HAVE_SYS_STAT_H          1
-#cmakedefine HAVE_SYS_TIMEB_H         1
-#cmakedefine HAVE_SYS_TIME_H          1
-#cmakedefine HAVE_SYS_TYPES_H         1
-#cmakedefine HAVE_SYS_UTSNAME_H       1
-#cmakedefine HAVE_TERMIOS_H           1
-#cmakedefine HAVE_UNISTD_H            1
-#cmakedefine HAVE_VSNPRINTF           1
-#cmakedefine HAVE_WAVPACK             1
-#cmakedefine WORDS_BIGENDIAN          1