FreeBSD Bugzilla – Attachment 150636 Details for
Bug 196021
graphics/opencv: pkg-config file is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
pkg-config patch from debian
patch-pkg-config (text/plain), 1.81 KB, created by
Koop Mast
on 2014-12-16 10:44:02 UTC
(
hide
)
Description:
pkg-config patch from debian
Filename:
MIME Type:
Creator:
Koop Mast
Created:
2014-12-16 10:44:02 UTC
Size:
1.81 KB
patch
obsolete
>Description: pkg-config is broken in OpenCV-2.4.x >Bug: http://code.opencv.org/issues/1925 >Bug-Debian: http://bugs.debian.org/721894, http://bugs.debian.org/678222 >Author: Ray Rashif >Last-Update: 2013-11-23 > >diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake >index a36b70e..a3733bc 100644 >--- cmake/OpenCVGenPkgconfig.cmake >+++ cmake/OpenCVGenPkgconfig.cmake >@@ -10,7 +10,7 @@ > # ------------------------------------------------------------------------------------------- > set(prefix "${CMAKE_INSTALL_PREFIX}") > set(exec_prefix "\${prefix}") >-set(libdir "") #TODO: need link paths for OpenCV_EXTRA_COMPONENTS >+set(libdir "\${prefix}/${OPENCV_LIB_INSTALL_PATH}") > set(includedir "\${prefix}/${OPENCV_INCLUDE_INSTALL_PATH}") > > if(CMAKE_BUILD_TYPE MATCHES "Release") >@@ -35,10 +35,11 @@ ocv_list_reverse(OpenCV_LIB_COMPONENTS) > ocv_list_reverse(OpenCV_EXTRA_COMPONENTS) > > #build the list of components >-set(OpenCV_LIB_COMPONENTS_ "") >+set(OpenCV_LIB_COMPONENTS_ "-L\${libdir}") > foreach(CVLib ${OpenCV_LIB_COMPONENTS}) > get_target_property(libpath ${CVLib} LOCATION_${CMAKE_BUILD_TYPE}) > get_filename_component(libname "${libpath}" NAME) >+ get_filename_component(lname "${libpath}" NAME_WE) > > if(INSTALL_TO_MANGLED_PATHS) > set(libname "${libname}.${OPENCV_VERSION}") >@@ -52,6 +53,8 @@ foreach(CVLib ${OpenCV_LIB_COMPONENTS}) > endif() > > set(OpenCV_LIB_COMPONENTS_ "${OpenCV_LIB_COMPONENTS_} \${exec_prefix}/${installDir}/${libname}") >+ string(REPLACE "libopencv" "-lopencv" lname "${lname}") >+ set(OpenCV_LIB_COMPONENTS_ "${OpenCV_LIB_COMPONENTS_} ${lname}") > endforeach() > > # add extra dependencies required for OpenCV >@@ -67,6 +70,8 @@ if(OpenCV_EXTRA_COMPONENTS) > > set(OpenCV_LIB_COMPONENTS "${OpenCV_LIB_COMPONENTS} ${maybe_l_prefix}${extra_component}") > >+ >+ > endforeach() > endif() >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 196021
: 150636