opnsense-ports/audio/codec2/files/patch-CMakeLists.txt

39 lines
1.1 KiB
Plaintext

--- CMakeLists.txt.orig 2018-09-04 06:22:53 UTC
+++ CMakeLists.txt
@@ -14,6 +14,7 @@ mark_as_advanced(CLEAR
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_LIBDIR
+ CMAKE_INSTALL_LIBEXECDIR
)
#
@@ -114,7 +115,7 @@ option(INSTALL_EXAMPLES "Install example
if(INSTALL_EXAMPLES)
install(DIRECTORY octave raw script wav
USE_SOURCE_PERMISSIONS
- DESTINATION ${CMAKE_INSTALL_DATADIR}/codec2)
+ DESTINATION share/examples/codec2)
endif()
@@ -179,6 +180,18 @@ if(UNITTEST)
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
#
message(STATUS "Looking for samplerate...")