Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ddc1b965
Commit
ddc1b965
authored
Jan 30, 2015
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Debian changelog installation step for Debian package generation.
parent
a7e97603
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
OpenCVPackaging.cmake
cmake/OpenCVPackaging.cmake
+32
-3
changelog.Debian.in
cmake/templates/changelog.Debian.in
+4
-0
No files found.
cmake/OpenCVPackaging.cmake
View file @
ddc1b965
...
@@ -14,7 +14,7 @@ machine perception in the commercial products. Being a BSD-licensed product,
...
@@ -14,7 +14,7 @@ machine perception in the commercial products. Being a BSD-licensed product,
OpenCV makes it easy for businesses to utilize and modify the code."
)
OpenCV makes it easy for businesses to utilize and modify the code."
)
set
(
CPACK_PACKAGE_VENDOR
"OpenCV Foundation"
)
set
(
CPACK_PACKAGE_VENDOR
"OpenCV Foundation"
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/LICENSE"
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/LICENSE"
)
set
(
CPACK_PACKAGE_CONTACT
"
admin@opencv.org
"
)
set
(
CPACK_PACKAGE_CONTACT
"
OpenCV Developers <admin@opencv.org>
"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
"
${
OPENCV_VERSION_MAJOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
"
${
OPENCV_VERSION_MAJOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"
${
OPENCV_VERSION_MINOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"
${
OPENCV_VERSION_MINOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
"
${
OPENCV_VERSION_PATCH
}
"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
"
${
OPENCV_VERSION_PATCH
}
"
)
...
@@ -135,6 +135,36 @@ if(NOT OPENCV_CUSTOM_PACKAGE_LAYOUT)
...
@@ -135,6 +135,36 @@ if(NOT OPENCV_CUSTOM_PACKAGE_LAYOUT)
set
(
CPACK_samples_COMPONENT_INSTALL TRUE
)
set
(
CPACK_samples_COMPONENT_INSTALL TRUE
)
endif
(
NOT OPENCV_CUSTOM_PACKAGE_LAYOUT
)
endif
(
NOT OPENCV_CUSTOM_PACKAGE_LAYOUT
)
if
(
CPACK_GENERATOR STREQUAL
"DEB"
)
find_program
(
GZIP_TOOL NAMES
"gzip"
PATHS
"/bin"
"/usr/bin"
"/usr/local/bin"
)
if
(
NOT GZIP_TOOL
)
message
(
FATAL_ERROR
"Unable to find 'gzip' program"
)
endif
()
execute_process
(
COMMAND
"date"
"-R"
OUTPUT_VARIABLE CHANGELOG_PACKAGE_DATE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set
(
CHANGELOG_PACKAGE_VERSION
"
${
CPACK_PACKAGE_VERSION
}
"
)
set
(
ALL_COMPONENTS
"libs"
"dev"
"docs"
"python"
"java"
"samples"
)
foreach
(
comp
${
ALL_COMPONENTS
}
)
if
(
CPACK_
${
comp
}
_COMPONENT_INSTALL
)
set
(
DEBIAN_CHANGELOG_OUT_FILE
"
${
CMAKE_BINARY_DIR
}
/deb-packages-gen/
${
comp
}
/changelog.Debian"
)
set
(
DEBIAN_CHANGELOG_OUT_FILE_GZ
"
${
CMAKE_BINARY_DIR
}
/deb-packages-gen/
${
comp
}
/changelog.Debian.gz"
)
set
(
CHANGELOG_PACKAGE_NAME
"
${
CPACK_COMPONENT_
${
comp
}
_DISPLAY_NAME
}
"
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/templates/changelog.Debian.in"
"
${
DEBIAN_CHANGELOG_OUT_FILE
}
"
@ONLY
)
execute_process
(
COMMAND
"
${
GZIP_TOOL
}
"
"-cf9"
"
${
DEBIAN_CHANGELOG_OUT_FILE
}
"
OUTPUT_FILE
"
${
DEBIAN_CHANGELOG_OUT_FILE_GZ
}
"
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
"
)
install
(
FILES
"
${
DEBIAN_CHANGELOG_OUT_FILE_GZ
}
"
DESTINATION
"share/doc/
${
CPACK_COMPONENT_
${
comp
}
_DISPLAY_NAME
}
"
COMPONENT
"
${
comp
}
"
)
endif
()
endforeach
()
endif
()
include
(
CPack
)
include
(
CPack
)
ENDif
(
EXISTS
"
${
CMAKE_ROOT
}
/Modules/CPack.cmake"
)
ENDif
(
EXISTS
"
${
CMAKE_ROOT
}
/Modules/CPack.cmake"
)
\ No newline at end of file
cmake/templates/changelog.Debian.in
0 → 100644
View file @
ddc1b965
@CHANGELOG_PACKAGE_NAME@ (@CPACK_PACKAGE_VERSION@) unstable; urgency=low
* Debian changelog stub. See upstream changelog or release notes in user
documentation for more details.
-- @CPACK_PACKAGE_CONTACT@ @CHANGELOG_PACKAGE_DATE@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment