|
From: Peque <ms...@us...> - 2010-08-23 06:02:40
|
Module: performous
Branch: master
Commit: 3f3e4fce05c2e473b197d3db72dfc2fc220bcea0
Author: Miguel Sánchez de León Peque <msd...@gm...>
Date: Mon Aug 23 07:43:18 2010 +0200
Fedora 13 supported for packaging
---
cmake/performous-packaging.cmake | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/cmake/performous-packaging.cmake b/cmake/performous-packaging.cmake
index 04fb4c2..c527902 100644
--- a/cmake/performous-packaging.cmake
+++ b/cmake/performous-packaging.cmake
@@ -64,6 +64,13 @@ if(UNIX)
# For Fedora-based distros we want to create RPM packages.
if("${LSB_DISTRIB}" MATCHES "Fedora")
set(CPACK_GENERATOR "RPM")
+ set(CPACK_RPM_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
+ set(CPACK_RPM_PACKAGE_VERSION "${PROJECT_VERSION}")
+ set(CPACK_RPM_PACKAGE_RELEASE "1")
+ set(CPACK_RPM_PACKAGE_GROUP "Amusements/Games")
+ set(CPACK_RPM_PACKAGE_LICENSE "GPLv3+")
+ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A karaoke, band and dancing game")
+ set(CPACK_RPM_PACKAGE_DESCRIPTION "Performous is a karaoke, band and dancing game where one or more players perform a song and the game scores their performances. Supports songs in UltraStar, Frets on Fire and StepMania formats. Microphones and instruments from SingStar, Guitar Hero and Rock Band as well as some dance pads are autodetected.")
# We need to alter the architecture names as per distro rules
if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
set(CPACK_PACKAGE_ARCHITECTURE i386)
@@ -72,11 +79,11 @@ if(UNIX)
set(CPACK_PACKAGE_ARCHITECTURE amd64)
endif("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
# Set the dependencies based on the distro version
- if("${LSB_DISTRIB}" MATCHES "Fedora12")
- set(CPACK_RPM_PACKAGE_REQUIRES "gettext, gtk2, cairo, librsvg2, libsigc++20, glibmm24, libxml++, ImageMagick-c++, boost, SDL, glew, ffmpeg, pulseaudio-libs")
- endif("${LSB_DISTRIB}" MATCHES "Fedora12")
+ if("${LSB_DISTRIB}" MATCHES "Fedora13")
+ set(CPACK_RPM_PACKAGE_REQUIRES "gettext, gtk2, cairo, librsvg2, libsigc++20, glibmm24, libxml++, ImageMagick-c++, boost, SDL, glew, ffmpeg, pulseaudio-libs, portaudio, opencv")
+ endif("${LSB_DISTRIB}" MATCHES "Fedora13")
if(NOT CPACK_RPM_PACKAGE_REQUIRES)
- message("WARNING: ${LSB_DISTRIB} not supported yet.\nPlease set deps in cmake/performous-packaging.cmake before packaging.")
+ message("WARNING: ${LSB_DISTRIB} is not supported.\nPlease set deps in cmake/performous-packaging.cmake before packaging.")
endif(NOT CPACK_RPM_PACKAGE_REQUIRES)
endif("${LSB_DISTRIB}" MATCHES "Fedora")
set(CPACK_SYSTEM_NAME "${LSB_DISTRIB}-${CPACK_PACKAGE_ARCHITECTURE}")
|