|
From: Peque <ms...@us...> - 2010-01-08 20:50:42
|
Module: performous
Branch: master
Commit: 009ad8ebb7fa763aade8d95a8cab85a3d47fc442
Author: Miguel Sánchez de León Peque <peq...@ho...>
Date: Fri Jan 8 21:45:08 2010 +0100
Added Fedora 12 to the supported distros in performous-packaging.cmake (needs to be checked)
---
cmake/performous-packaging.cmake | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/cmake/performous-packaging.cmake b/cmake/performous-packaging.cmake
index 9c0a1b7..5900e86 100644
--- a/cmake/performous-packaging.cmake
+++ b/cmake/performous-packaging.cmake
@@ -69,6 +69,24 @@ if(UNIX)
message("WARNING: ${LSB_DISTRIB} not supported yet.\nPlease set deps in cmake/performous-packaging.cmake before packaging.")
endif(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
endif("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
+ # For Fedora-based distros we want to create RPM packages.
+ if("${LSB_DISTRIB}" MATCHES "Fedora")
+ set(CPACK_GENERATOR "RPM")
+ # 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)
+ endif("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
+ if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
+ 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(NOT CPACK_RPM_PACKAGE_REQUIRES)
+ message("WARNING: ${LSB_DISTRIB} not supported yet.\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}")
message(STATUS "Detected ${CPACK_SYSTEM_NAME}. Use make package to build packages (${CPACK_GENERATOR}).")
endif(UNIX)
|