diff options
Diffstat (limited to 'meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch')
-rw-r--r-- | meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch b/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch index 3aeda7d44..3ed3468d5 100644 --- a/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch +++ b/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch | |||
@@ -1,24 +1,25 @@ | |||
1 | diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake | 1 | Index: git/cmake/OpenCVGenPkgconfig.cmake |
2 | index b8cb8777c06b..75281ee964fd 100644 | 2 | =================================================================== |
3 | --- a/cmake/OpenCVGenPkgconfig.cmake | 3 | --- git.orig/cmake/OpenCVGenPkgconfig.cmake |
4 | +++ b/cmake/OpenCVGenPkgconfig.cmake | 4 | +++ git/cmake/OpenCVGenPkgconfig.cmake |
5 | @@ -27,7 +27,7 @@ macro(fix_prefix lst isown) | 5 | @@ -31,7 +31,7 @@ macro(fix_prefix lst isown) |
6 | get_filename_component(libdir "${item}" PATH) | 6 | get_filename_component(libdir "${item}" PATH) |
7 | get_filename_component(libname "${item}" NAME_WE) | 7 | get_filename_component(_libname "${item}" NAME) |
8 | string(REGEX REPLACE "^lib(.*)" "\\1" libname "${libname}") | 8 | ocv_get_libname(libname "${_libname}") |
9 | - list(APPEND _lst "-L${libdir}" "-l${libname}") | 9 | - list(APPEND _lst "-L${libdir}" "-l${libname}") |
10 | + list(APPEND _lst "-l${libname}") | 10 | + list(APPEND _lst "-l${libname}") |
11 | else() | 11 | else() |
12 | list(APPEND _lst "-l${item}") | 12 | list(APPEND _lst "-l${item}") |
13 | endif() | 13 | endif() |
14 | @@ -66,10 +66,14 @@ ocv_list_unique(_3rdparty) | 14 | @@ -124,11 +124,14 @@ ocv_list_unique(_extra) |
15 | ocv_list_unique(_3rdparty) | ||
15 | 16 | ||
16 | set(OPENCV_PC_LIBS | 17 | set(OPENCV_PC_LIBS |
17 | "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}" | 18 | - "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}" |
18 | + "-L\${exec_prefix}/${OPENCV_3P_LIB_INSTALL_PATH}" | 19 | + "-L\${exec_prefix}/${OPENCV_3P_LIB_INSTALL_PATH}" |
19 | "${_modules}" | 20 | "${_modules}" |
20 | ) | 21 | ) |
21 | if (BUILD_SHARED_LIBS) | 22 | if(BUILD_SHARED_LIBS) |
22 | - set(OPENCV_PC_LIBS_PRIVATE "${_extra}") | 23 | - set(OPENCV_PC_LIBS_PRIVATE "${_extra}") |
23 | + set(OPENCV_PC_LIBS_PRIVATE | 24 | + set(OPENCV_PC_LIBS_PRIVATE |
24 | + "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}" | 25 | + "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}" |