mirror of
https://github.com/opencv/opencv.git
synced 2025-01-13 00:01:27 +08:00
Several fixes for lintian varnings
(cherry picked from commit 634ffed488
)
This commit is contained in:
parent
c821cb1489
commit
77585bf8af
@ -1,3 +1,6 @@
|
|||||||
|
# Use patched version of CPACK to build accurate set of Debian packages
|
||||||
|
# https://github.com/asmorkalov/CMake/tree/deb_generator_improvement
|
||||||
|
|
||||||
if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
||||||
set(CPACK_set_DESTDIR "on")
|
set(CPACK_set_DESTDIR "on")
|
||||||
|
|
||||||
@ -18,6 +21,8 @@ OpenCV makes it easy for businesses to utilize and modify the code.")
|
|||||||
set(CPACK_PACKAGE_VERSION "${OPENCV_VCSVERSION}")
|
set(CPACK_PACKAGE_VERSION "${OPENCV_VCSVERSION}")
|
||||||
endif(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
endif(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
||||||
|
|
||||||
|
set(CPACK_STRIP_FILES 1)
|
||||||
|
|
||||||
#arch
|
#arch
|
||||||
if(X86)
|
if(X86)
|
||||||
set(CPACK_DEBIAN_ARCHITECTURE "i386")
|
set(CPACK_DEBIAN_ARCHITECTURE "i386")
|
||||||
@ -90,24 +95,31 @@ endif()
|
|||||||
if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
||||||
set(CPACK_COMPONENT_libs_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}")
|
set(CPACK_COMPONENT_libs_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}")
|
||||||
set(CPACK_COMPONENT_libs_DESCRIPTION "Open Computer Vision Library")
|
set(CPACK_COMPONENT_libs_DESCRIPTION "Open Computer Vision Library")
|
||||||
|
set(CPACK_COMPONENT_libs_SECTION "libs")
|
||||||
|
|
||||||
set(CPACK_COMPONENT_python_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-python")
|
set(CPACK_COMPONENT_python_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-python")
|
||||||
set(CPACK_COMPONENT_python_DESCRIPTION "Python bindings for Open Source Computer Vision Library")
|
set(CPACK_COMPONENT_python_DESCRIPTION "Python bindings for Open Source Computer Vision Library")
|
||||||
|
set(CPACK_COMPONENT_python_SECTION "python")
|
||||||
|
|
||||||
set(CPACK_COMPONENT_java_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-java")
|
set(CPACK_COMPONENT_java_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-java")
|
||||||
set(CPACK_COMPONENT_java_DESCRIPTION "Java bindings for Open Source Computer Vision Library")
|
set(CPACK_COMPONENT_java_DESCRIPTION "Java bindings for Open Source Computer Vision Library")
|
||||||
|
set(CPACK_COMPONENT_java_SECTION "java")
|
||||||
|
|
||||||
set(CPACK_COMPONENT_dev_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-dev")
|
set(CPACK_COMPONENT_dev_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-dev")
|
||||||
set(CPACK_COMPONENT_dev_DESCRIPTION "Development files for Open Source Computer Vision Library")
|
set(CPACK_COMPONENT_dev_DESCRIPTION "Development files for Open Source Computer Vision Library")
|
||||||
|
set(CPACK_COMPONENT_dev_SECTION "libdevel")
|
||||||
|
|
||||||
set(CPACK_COMPONENT_docs_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-docs")
|
set(CPACK_COMPONENT_docs_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-docs")
|
||||||
set(CPACK_COMPONENT_docs_DESCRIPTION "Documentation for Open Source Computer Vision Library")
|
set(CPACK_COMPONENT_docs_DESCRIPTION "Documentation for Open Source Computer Vision Library")
|
||||||
|
set(CPACK_COMPONENT_docs_SECTION "doc")
|
||||||
|
|
||||||
set(CPACK_COMPONENT_samples_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-samples")
|
set(CPACK_COMPONENT_samples_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-samples")
|
||||||
set(CPACK_COMPONENT_samples_DESCRIPTION "Samples for Open Source Computer Vision Library")
|
set(CPACK_COMPONENT_samples_DESCRIPTION "Samples for Open Source Computer Vision Library")
|
||||||
|
set(CPACK_COMPONENT_samples_SECTION "devel")
|
||||||
|
|
||||||
set(CPACK_COMPONENT_tests_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-tests")
|
set(CPACK_COMPONENT_tests_DISPLAY_NAME "lib${CMAKE_PROJECT_NAME}-tests")
|
||||||
set(CPACK_COMPONENT_tests_DESCRIPTION "Accuracy and performance tests for Open Source Computer Vision Library")
|
set(CPACK_COMPONENT_tests_DESCRIPTION "Accuracy and performance tests for Open Source Computer Vision Library")
|
||||||
|
set(CPACK_COMPONENT_tests_SECTION "misc")
|
||||||
endif(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
endif(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
||||||
|
|
||||||
if(NOT OPENCV_CUSTOM_PACKAGE_LAYOUT)
|
if(NOT OPENCV_CUSTOM_PACKAGE_LAYOUT)
|
||||||
|
Loading…
Reference in New Issue
Block a user