mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Cleanup
- .deb work - update package creation - added hyperion package icon - remove V4L2 warning for OSX build
This commit is contained in:
23
cmake/FindDebBuilder.cmake
Normal file
23
cmake/FindDebBuilder.cmake
Normal file
@@ -0,0 +1,23 @@
|
||||
# - Find package for .deb building
|
||||
# Find the .deb building executable and extract the version number
|
||||
#
|
||||
# OUTPUT Variables
|
||||
#
|
||||
# DEB_BUILDER_FOUND
|
||||
# True if the deb builder package was found
|
||||
# DEB_BUILDER_EXECUTABLE
|
||||
# The deb builder executable location
|
||||
# DEB_BUILDER_VERSION
|
||||
# A string denoting the version of deb builder that has been found
|
||||
|
||||
find_program ( DEB_BUILDER_EXECUTABLE dpkg-deb )
|
||||
|
||||
if ( DEB_BUILDER_EXECUTABLE )
|
||||
SET( DEB_BUILDER_FOUND TRUE )
|
||||
execute_process ( COMMAND ${DEB_BUILDER_EXECUTABLE} --version OUTPUT_VARIABLE DEB_VERSION_RAW ERROR_QUIET )
|
||||
if (DEB_VERSION_RAW)
|
||||
string ( REGEX REPLACE "^RPM-Version ([0-9]+.[0-9]+.[0-9]+),.*" "\\1" DEB_BUILDER_VERSION ${DEB_VERSION_RAW})
|
||||
else ()
|
||||
set ( DEB_BUILDER_VERSION "unknown" )
|
||||
endif()
|
||||
endif ()
|
Reference in New Issue
Block a user