pkgsrc/sysutils/kfilemetadata5/patches/patch-cmake_FindFFmpeg.cmake
markd fbf7865a51 Add KDE Frameworks 5.21.0 packages:
baloo5 - Framework for searching and managing metadata
kdbusaddons - Addons to QtDBus
kfilemetadata5 - Library for extracting file metadata
solid - Hardware integration and detection
2016-05-26 09:17:14 +00:00

27 lines
859 B
CMake

$NetBSD: patch-cmake_FindFFmpeg.cmake,v 1.1 2016/05/26 09:17:14 markd Exp $
Fix broken prefix
--- cmake/FindFFmpeg.cmake.orig 2016-02-06 13:44:51.000000000 +0000
+++ cmake/FindFFmpeg.cmake
@@ -89,16 +89,16 @@ macro(find_component _component _pkgconf
find_path(${_component}_INCLUDE_DIRS ${_header}
HINTS
- ${PC_LIB${_component}_INCLUDEDIR}
- ${PC_LIB${_component}_INCLUDE_DIRS}
+ ${PC_${_component}_INCLUDEDIR}
+ ${PC_${_component}_INCLUDE_DIRS}
PATH_SUFFIXES
ffmpeg
)
find_library(${_component}_LIBRARIES NAMES ${_library}
HINTS
- ${PC_LIB${_component}_LIBDIR}
- ${PC_LIB${_component}_LIBRARY_DIRS}
+ ${PC_${_component}_LIBDIR}
+ ${PC_${_component}_LIBRARY_DIRS}
)
set(${_component}_DEFINITIONS ${PC_${_component}_CFLAGS_OTHER} CACHE STRING "The ${_component} CFLAGS.")