2016-05-24 19:56:43 +02:00
|
|
|
# cmake file for generating distribution packages
|
|
|
|
|
2017-08-04 22:59:56 +02:00
|
|
|
IF (APPLE)
|
|
|
|
SET ( CPACK_GENERATOR "TGZ" "Bundle") # "RPM"
|
|
|
|
ELSE()
|
|
|
|
SET ( CPACK_GENERATOR "DEB" "TGZ" "STGZ") # "RPM"
|
|
|
|
ENDIF()
|
2016-05-24 19:56:43 +02:00
|
|
|
|
|
|
|
SET ( CPACK_PACKAGE_NAME "hyperion" )
|
2016-08-20 16:37:45 +02:00
|
|
|
SET ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hyperion is an open source ambient light implementation" )
|
2016-05-24 19:56:43 +02:00
|
|
|
SET ( CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md" )
|
|
|
|
SET ( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" )
|
|
|
|
|
2016-08-20 16:37:45 +02:00
|
|
|
SET ( CPACK_DEBIAN_PACKAGE_MAINTAINER "Hyperion Team")
|
|
|
|
SET ( CPACK_DEBIAN_PACKAGE_NAME "Hyperion" )
|
2017-02-08 14:36:28 +01:00
|
|
|
SET ( CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst;${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/preinst" )
|
2016-08-20 16:37:45 +02:00
|
|
|
SET ( CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://www.hyperion-project.org" )
|
2017-10-13 17:49:29 +02:00
|
|
|
SET ( CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5core5a (>= 5.2.0), libqt5network5 (>= 5.2.0), libqt5gui5 (>= 5.2.0), libqt5serialport5 (>= 5.2.0), libavahi-core7 (>= 0.6.31), libavahi-compat-libdnssd1 (>= 0.6.31), libusb-1.0-0, libpython3.4, libc6" )
|
2016-05-24 19:56:43 +02:00
|
|
|
SET ( CPACK_DEBIAN_PACKAGE_SECTION "Miscellaneous" )
|
|
|
|
|
2016-08-20 16:37:45 +02:00
|
|
|
SET ( CPACK_RPM_PACKAGE_NAME "Hyperion" )
|
2017-08-04 22:59:56 +02:00
|
|
|
SET ( CPACK_RPM_PACKAGE_URL "https://github.com/hyperion-project/hyperion.ng" )
|
2016-05-24 19:56:43 +02:00
|
|
|
SET ( CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/rpm/postinst" )
|
|
|
|
|
2017-08-04 22:59:56 +02:00
|
|
|
SET ( CPACK_PACKAGE_FILE_NAME "Hyperion")
|
|
|
|
SET ( CPACK_PACKAGE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Hyperion.icns )
|
|
|
|
SET ( CPACK_BUNDLE_NAME "Hyperion" )
|
|
|
|
SET ( CPACK_BUNDLE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Hyperion.icns )
|
|
|
|
SET ( CPACK_BUNDLE_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Info.plist )
|
|
|
|
#SET ( CPACK_BUNDLE_STARTUP_COMMAND - path to a file that will be executed when the user opens the bundle. Could be a shell-script or a binary. )
|
|
|
|
|
2016-06-24 23:22:31 +02:00
|
|
|
SET(CPACK_PACKAGE_VERSION_MAJOR "${HYPERION_VERSION_MAJOR}")
|
|
|
|
SET(CPACK_PACKAGE_VERSION_MINOR "${HYPERION_VERSION_MINOR}")
|
|
|
|
SET(CPACK_PACKAGE_VERSION_PATCH "${HYPERION_VERSION_PATCH}")
|
2016-05-24 19:56:43 +02:00
|
|
|
|
2016-08-20 16:37:45 +02:00
|
|
|
SET ( CPACK_COMPONENTS_ALL "${PLATFORM}" )
|
2016-05-24 19:56:43 +02:00
|
|
|
SET ( CPACK_ARCHIVE_COMPONENT_INSTALL ON )
|
|
|
|
SET ( CPACK_DEB_COMPONENT_INSTALL ON )
|
|
|
|
SET ( CPACK_RPM_COMPONENT_INSTALL ON )
|
|
|
|
SET ( CPACK_STRIP_FILES ON )
|
|
|
|
|
|
|
|
# no code after following line!
|
|
|
|
INCLUDE ( CPack )
|