2010-09-04 20:55:29 +02:00
|
|
|
execute_process(COMMAND date "+%a %b %d %Y"
|
2010-06-25 00:07:04 +02:00
|
|
|
OUTPUT_VARIABLE RPM_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
2010-05-03 15:58:41 +02:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/clementine.spec.in
|
2010-10-24 15:16:44 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/clementine.spec @ONLY)
|
2010-05-03 15:58:41 +02:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/maketarball.sh.in
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/maketarball.sh @ONLY)
|
2013-10-05 12:23:16 +02:00
|
|
|
|
|
|
|
# Create two installers, one for the normal version, one for the portable one
|
|
|
|
# Create normal installer
|
|
|
|
set(PORTABLE ";")
|
|
|
|
set(NORMAL "")
|
2010-05-03 15:58:41 +02:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/windows/clementine.nsi.in
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/windows/clementine.nsi @ONLY)
|
2013-10-05 12:23:16 +02:00
|
|
|
|
|
|
|
# Create portable installer
|
|
|
|
set(PORTABLE "")
|
|
|
|
set(NORMAL ";")
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/windows/clementine.nsi.in
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/windows/clementine-portable.nsi @ONLY)
|
|
|
|
|
|
|
|
|
2010-05-03 15:58:41 +02:00
|
|
|
# windows/windres.rc is done by src/CMakeLists.txt
|
2010-10-14 21:46:11 +02:00
|
|
|
|
2010-12-18 21:07:29 +01:00
|
|
|
if(EXISTS /etc/lsb-release)
|
|
|
|
file(READ "/etc/lsb-release" LSB_RELEASE_CONTENTS)
|
|
|
|
string(REGEX MATCH "DISTRIB_ID=Ubuntu" IS_UBUNTU ${LSB_RELEASE_CONTENTS})
|
|
|
|
if(IS_UBUNTU)
|
|
|
|
set(INSTALL_UBUNTU_ICONS_DEFAULT ON)
|
|
|
|
else(IS_UBUNTU)
|
|
|
|
set(INSTALL_UBUNTU_ICONS_DEFAULT OFF)
|
|
|
|
endif(IS_UBUNTU)
|
|
|
|
else(EXISTS /etc/lsb-release)
|
|
|
|
set(INSTALL_UBUNTU_ICONS_DEFAULT OFF)
|
|
|
|
endif(EXISTS /etc/lsb-release)
|
|
|
|
|
|
|
|
option(INSTALL_UBUNTU_ICONS "Install the Ubuntu themed monochrome panel icons" ${INSTALL_UBUNTU_ICONS_DEFAULT})
|
2010-10-14 21:46:11 +02:00
|
|
|
|
|
|
|
if (NOT APPLE)
|
|
|
|
install(FILES clementine_64.png
|
|
|
|
DESTINATION share/icons/hicolor/64x64/apps/
|
2015-04-20 18:06:34 +02:00
|
|
|
RENAME clementine.png
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES clementine_128.png
|
|
|
|
DESTINATION share/icons/hicolor/128x128/apps/
|
|
|
|
RENAME clementine.png
|
2010-10-14 21:46:11 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES ../data/icon.svg
|
|
|
|
DESTINATION share/icons/hicolor/scalable/apps/
|
2015-04-20 18:06:34 +02:00
|
|
|
RENAME clementine.svg
|
2010-10-14 21:46:11 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES clementine.desktop
|
|
|
|
DESTINATION share/applications
|
|
|
|
)
|
|
|
|
|
2012-03-14 14:08:19 +01:00
|
|
|
install(FILES clementine-itms.protocol
|
|
|
|
clementine-itpc.protocol
|
|
|
|
clementine-feed.protocol
|
|
|
|
clementine-zune.protocol
|
2016-05-29 14:56:18 +02:00
|
|
|
DESTINATION share/kservices5
|
2012-03-11 20:04:01 +01:00
|
|
|
)
|
|
|
|
|
2014-06-01 12:36:05 +02:00
|
|
|
install(FILES clementine.appdata.xml
|
|
|
|
DESTINATION share/appdata
|
|
|
|
)
|
|
|
|
|
2010-12-18 21:07:29 +01:00
|
|
|
if(INSTALL_UBUNTU_ICONS)
|
|
|
|
foreach(icon clementine-panel.png clementine-panel-grey.png)
|
|
|
|
foreach(theme ubuntu-mono-dark ubuntu-mono-light)
|
|
|
|
install(FILES icons/${theme}/${icon}
|
|
|
|
DESTINATION share/icons/${theme}/apps/24/
|
|
|
|
)
|
|
|
|
endforeach(theme)
|
|
|
|
endforeach(icon)
|
|
|
|
endif(INSTALL_UBUNTU_ICONS)
|
2010-10-14 21:46:11 +02:00
|
|
|
endif (NOT APPLE)
|