96f028ba96
Copy from KDE:KDE4:Factory:Desktop/opencv based on submit request 37978 from user dirkmueller OBS-URL: https://build.opensuse.org/request/show/37978 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencv?expand=0&rev=5
155 lines
7.0 KiB
Diff
155 lines
7.0 KiB
Diff
diff -urN OpenCV-2.1.0-orig/3rdparty/flann/CMakeLists.txt OpenCV-2.1.0/3rdparty/flann/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/3rdparty/flann/CMakeLists.txt 2010-04-06 04:24:34.000000000 +0300
|
|
+++ OpenCV-2.1.0/3rdparty/flann/CMakeLists.txt 2010-04-13 17:05:44.000000000 +0300
|
|
@@ -89,8 +89,8 @@
|
|
INSTALL (
|
|
TARGETS flann # flann_s
|
|
RUNTIME DESTINATION bin
|
|
- LIBRARY DESTINATION lib
|
|
- ARCHIVE DESTINATION lib
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
|
)
|
|
|
|
# INSTALL (
|
|
diff -urN OpenCV-2.1.0-orig/CMakeLists.txt OpenCV-2.1.0/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/CMakeLists.txt 2010-04-06 04:24:37.000000000 +0300
|
|
+++ OpenCV-2.1.0/CMakeLists.txt 2010-04-13 17:05:45.000000000 +0300
|
|
@@ -467,8 +467,8 @@
|
|
|
|
string(REGEX MATCH "[0-9].[0-9]" PYTHON_VERSION_MAJOR_MINOR "${PYTHON_VERSION_FULL}")
|
|
if(UNIX)
|
|
- set(PYTHON_PLUGIN_INSTALL_PATH lib/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages/opencv)
|
|
- set(PYTHON_PACKAGES_PATH lib/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages)
|
|
+ set(PYTHON_PLUGIN_INSTALL_PATH lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages/opencv)
|
|
+ set(PYTHON_PACKAGES_PATH lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages)
|
|
endif()
|
|
if(WIN32)
|
|
get_filename_component(PYTHON_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${PYTHON_VERSION_MAJOR_MINOR}\\InstallPath]" ABSOLUTE CACHE)
|
|
@@ -932,7 +932,7 @@
|
|
# Set CMAKE_INCLUDE_DIRS_CONFIGCMAKE to the list of include directories:
|
|
|
|
set(CMAKE_INCLUDE_DIRS_CONFIGCMAKE "${CMAKE_INSTALL_PREFIX}/include/opencv")
|
|
-set(CMAKE_LIB_DIRS_CONFIGCMAKE "${CMAKE_INSTALL_PREFIX}/lib")
|
|
+set(CMAKE_LIB_DIRS_CONFIGCMAKE "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
|
|
|
|
#exec_program(${CMAKE_COMMAND} ARGS "-E make_directory \"${CMAKE_BINARY_DIR}/unix-install/\"")
|
|
exec_program(mkdir ARGS "-p \"${CMAKE_BINARY_DIR}/unix-install/\"")
|
|
@@ -965,19 +965,19 @@
|
|
# Part 2/2: ${BIN_DIR}/unix-install/opencv.pc -> For use *with* "make install"
|
|
# prefix=/usr
|
|
# exec_prefix=${prefix}
|
|
-# libdir=${exec_prefix}/lib
|
|
+# libdir=${exec_prefix}/lib${LIB_SUFFIX}
|
|
# includedir=${prefix}/include/opencv
|
|
# -------------------------------------------------------------------------------------------
|
|
set(prefix ${CMAKE_INSTALL_PREFIX})
|
|
set(exec_prefix "\${prefix}")
|
|
-set(libdir "\${exec_prefix}/lib")
|
|
+set(libdir "\${exec_prefix}/lib${LIB_SUFFIX}")
|
|
set(includedir "\${prefix}/include")
|
|
set(VERSION ${OPENCV_VERSION})
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/opencv.pc.cmake.in" "${CMAKE_BINARY_DIR}/unix-install/opencv.pc" @ONLY IMMEDIATE)
|
|
|
|
if(UNIX)
|
|
- install(FILES ${CMAKE_BINARY_DIR}/unix-install/opencv.pc DESTINATION lib/pkgconfig)
|
|
+ install(FILES ${CMAKE_BINARY_DIR}/unix-install/opencv.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
|
|
endif()
|
|
|
|
|
|
diff -urN OpenCV-2.1.0-orig/interfaces/ffopencv/CMakeLists.txt OpenCV-2.1.0/interfaces/ffopencv/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/interfaces/ffopencv/CMakeLists.txt 2010-04-06 04:24:40.000000000 +0300
|
|
+++ OpenCV-2.1.0/interfaces/ffopencv/CMakeLists.txt 2010-04-13 17:06:05.000000000 +0300
|
|
@@ -40,6 +40,6 @@
|
|
|
|
install(TARGETS ${the_target}
|
|
RUNTIME DESTINATION bin COMPONENT main
|
|
- ARCHIVE DESTINATION lib COMPONENT main
|
|
- LIBRARY DESTINATION lib COMPONENT main
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
)
|
|
diff -urN OpenCV-2.1.0-orig/src/cv/CMakeLists.txt OpenCV-2.1.0/src/cv/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/src/cv/CMakeLists.txt 2010-04-06 04:24:42.000000000 +0300
|
|
+++ OpenCV-2.1.0/src/cv/CMakeLists.txt 2010-04-13 17:07:32.000000000 +0300
|
|
@@ -71,8 +71,8 @@
|
|
|
|
install(TARGETS ${the_target}
|
|
RUNTIME DESTINATION bin COMPONENT main
|
|
- LIBRARY DESTINATION lib COMPONENT main
|
|
- ARCHIVE DESTINATION lib COMPONENT main)
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
|
|
|
|
install(FILES ${lib_hdrs}
|
|
DESTINATION include/opencv
|
|
diff -urN OpenCV-2.1.0-orig/src/cvaux/CMakeLists.txt OpenCV-2.1.0/src/cvaux/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/src/cvaux/CMakeLists.txt 2010-04-06 04:24:43.000000000 +0300
|
|
+++ OpenCV-2.1.0/src/cvaux/CMakeLists.txt 2010-04-13 17:07:31.000000000 +0300
|
|
@@ -76,8 +76,8 @@
|
|
|
|
install(TARGETS ${the_target}
|
|
RUNTIME DESTINATION bin COMPONENT main
|
|
- LIBRARY DESTINATION lib COMPONENT main
|
|
- ARCHIVE DESTINATION lib COMPONENT main)
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
|
|
|
|
install(FILES ${aux_hdrs_ext}
|
|
DESTINATION include/opencv
|
|
diff -urN OpenCV-2.1.0-orig/src/cxcore/CMakeLists.txt OpenCV-2.1.0/src/cxcore/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/src/cxcore/CMakeLists.txt 2010-04-06 04:24:44.000000000 +0300
|
|
+++ OpenCV-2.1.0/src/cxcore/CMakeLists.txt 2010-04-13 17:07:30.000000000 +0300
|
|
@@ -71,8 +71,8 @@
|
|
|
|
install(TARGETS ${the_target}
|
|
RUNTIME DESTINATION bin COMPONENT main
|
|
- LIBRARY DESTINATION lib COMPONENT main
|
|
- ARCHIVE DESTINATION lib COMPONENT main)
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
|
|
|
|
# install each module headers separately
|
|
install(FILES ${lib_hdrs}
|
|
diff -urN OpenCV-2.1.0-orig/src/highgui/CMakeLists.txt OpenCV-2.1.0/src/highgui/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/src/highgui/CMakeLists.txt 2010-04-06 04:24:44.000000000 +0300
|
|
+++ OpenCV-2.1.0/src/highgui/CMakeLists.txt 2010-04-13 17:07:28.000000000 +0300
|
|
@@ -282,8 +282,8 @@
|
|
|
|
install(TARGETS ${the_target}
|
|
RUNTIME DESTINATION bin COMPONENT main
|
|
- LIBRARY DESTINATION lib COMPONENT main
|
|
- ARCHIVE DESTINATION lib COMPONENT main)
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
|
|
|
|
install(FILES ${highgui_ext_hdrs}
|
|
DESTINATION include/opencv
|
|
diff -urN OpenCV-2.1.0-orig/src/ml/CMakeLists.txt OpenCV-2.1.0/src/ml/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/src/ml/CMakeLists.txt 2010-04-06 04:24:45.000000000 +0300
|
|
+++ OpenCV-2.1.0/src/ml/CMakeLists.txt 2010-04-13 17:07:20.000000000 +0300
|
|
@@ -61,8 +61,8 @@
|
|
|
|
install(TARGETS ${the_target}
|
|
RUNTIME DESTINATION bin COMPONENT main
|
|
- LIBRARY DESTINATION lib COMPONENT main
|
|
- ARCHIVE DESTINATION lib COMPONENT main)
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
|
|
|
|
install(FILES ${lib_hdrs}
|
|
DESTINATION include/opencv
|
|
diff -urN OpenCV-2.1.0-orig/tests/cxts/CMakeLists.txt OpenCV-2.1.0/tests/cxts/CMakeLists.txt
|
|
--- OpenCV-2.1.0-orig/tests/cxts/CMakeLists.txt 2010-04-06 04:24:46.000000000 +0300
|
|
+++ OpenCV-2.1.0/tests/cxts/CMakeLists.txt 2010-04-13 17:07:11.000000000 +0300
|
|
@@ -63,6 +63,6 @@
|
|
if(WIN32)
|
|
install(TARGETS ${the_target}
|
|
RUNTIME DESTINATION bin COMPONENT main
|
|
- LIBRARY DESTINATION lib COMPONENT main
|
|
- ARCHIVE DESTINATION lib COMPONENT main)
|
|
+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
|
|
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
|
|
endif()
|