--- CMakeLists.txt.orig	2018-02-23 21:39:25 UTC
+++ CMakeLists.txt
@@ -1,7 +1,7 @@
 # SoX Resampler Library       Copyright (c) 2007-18 robs@users.sourceforge.net
 # Licence for this file: LGPL v2.1                  See LICENCE for details.
 
-cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
 
 project (soxr C)
 set (DESCRIPTION_SUMMARY
@@ -129,7 +129,7 @@ if (WITH_AVFFT)
 if (WITH_AVFFT)
   find_package (LibAVCodec REQUIRED)
   if (AVCODEC_FOUND)
-    include_directories (${AVCODEC_INCLUDE_DIRS})
+    include_directories (${AVCODEC_INCLUDES})
     set (LIBS ${LIBS} ${AVCODEC_LIBRARIES})
   endif ()
 endif ()
@@ -268,7 +268,6 @@ install (FILES
 
 install (FILES
   ${CMAKE_CURRENT_SOURCE_DIR}/README
-  ${CMAKE_CURRENT_SOURCE_DIR}/LICENCE
   ${CMAKE_CURRENT_SOURCE_DIR}/NEWS
   DESTINATION ${DOC_INSTALL_DIR})
 
