Commit 83795367 authored by Mike Gabriel's avatar Mike Gabriel

debian/patches: Add 2001_detect-ffmpeg-on-Debian.patch. Facilitate building...

debian/patches: Add 2001_detect-ffmpeg-on-Debian.patch. Facilitate building FreeRDP with FFmpeg in Debian. (Closes: #758338).
parent 93e1e056
Description: Use pkg-config to determine FFmpeg linker flags
Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Last-Update: <2014-08-11>
--- freerdp-1.0.2.orig/cmake/FindFFmpeg.cmake
+++ freerdp-1.0.2/cmake/FindFFmpeg.cmake
@@ -17,11 +17,13 @@ endif ( PKG_CONFIG_FOUND )
# avcodec
find_path(AVCODEC_INCLUDE_DIR libavcodec/avcodec.h PATHS ${AVCODEC_INCLUDE_DIRS})
-find_library(AVCODEC_LIBRARY avcodec PATHS ${AVCODEC_LIBRARY_DIRS})
+string(REPLACE "-l" "" avc_name "${AVCODEC_LIBRARIES}")
+find_library(AVCODEC_LIBRARY ${avc_name} avcodec PATHS ${AVCODEC_LIBRARY_DIRS})
# avutil
find_path(AVUTIL_INCLUDE_DIR libavutil/avutil.h PATHS ${AVUTIL_INCLUDE_DIRS})
-find_library(AVUTIL_LIBRARY avutil PATHS ${AVUTIL_LIBRARY_DIRS})
+string(REPLACE "-l" "" avu_name "${AVUTIL_LIBRARIES}")
+find_library(AVUTIL_LIBRARY ${avu_name} avutil PATHS ${AVUTIL_LIBRARY_DIRS})
if(AVCODEC_INCLUDE_DIR AND AVCODEC_LIBRARY)
set(AVCODEC_FOUND TRUE)
1001_hide-internal-symbols.patch
1002_update-pkg-config-file.patch
2001_detect-ffmpeg-on-Debian.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment