ports/audio/codec2/files/patch-CMakeLists.txt
Diane Bruce ced2e58719 Update to 0.7
1. Make the 700 bit/s codec sound better, to improve speech quality on
   low SNR HF channels (beneath 0dB).
2. Develop a higher quality mode in the 2000 to 3000 bit/s range, that
    can be used on HF channels with modest SNRs (around 10dB)
2017-08-06 01:07:22 +00:00

36 lines
1.3 KiB
Text

--- CMakeLists.txt.orig 2017-07-18 14:11:40 UTC
+++ CMakeLists.txt
@@ -14,6 +14,7 @@ mark_as_advanced(CLEAR
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_LIBDIR
+ CMAKE_INSTALL_LIBEXECDIR
)
#
@@ -164,13 +165,24 @@ if(UNITTEST)
# Find speex library
#
message(STATUS "Looking for Speex DSP library.")
- find_path(SPEEXDSP_INCLUDE_DIR speex/speex.h)
+ find_path(SPEEXDSP_INCLUDE_DIR speex/speex_preprocess.h)
find_library(SPEEXDSP_LIBRARY speexdsp)
message(STATUS " Speex DSP headers: ${SPEEXDSP_INCLUDE_DIR}")
message(STATUS " Speex DSP library: ${SPEEXDSP_LIBRARY}")
if(NOT SPEEXDSP_INCLUDE_DIR AND NOT SPEEXDSP_LIBRARY)
message(FATAL_ERROR "Speex DSP library not found!")
endif()
+ #
+ # Find samplerate library
+ #
+ message(STATUS "Looking for samplerate library.")
+ find_path(SAMPLERATE_INCLUDE_DIR samplerate.h)
+ find_library(SAMPLERATE_LIBRARY samplerate)
+ message(STATUS " samplerate headers: ${SAMPLERATE_INCLUDE_DIR}")
+ message(STATUS " samplerate library: ${SAMPLERATE_LIBRARY}")
+ if(NOT SAMPLERATE_INCLUDE_DIR AND NOT SAMPLERATE_LIBRARY)
+ message(FATAL_ERROR "samplerate library not found!")
+ endif()
#
# Samplerate Library