|
From: Darkmagister <dar...@us...> - 2010-08-26 18:01:59
|
Module: performous
Branch: master
Commit: 2dc3a433538a7007675dda42b5af4d89f209e30f
Author: Federico Pietta <f.p...@gm...>
Date: Thu Aug 26 20:02:38 2010 +0200
Fix debian package name and debian testing recognition
---
cmake/performous-packaging.cmake | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cmake/performous-packaging.cmake b/cmake/performous-packaging.cmake
index c527902..d65dd92 100644
--- a/cmake/performous-packaging.cmake
+++ b/cmake/performous-packaging.cmake
@@ -57,9 +57,13 @@ if(UNIX)
if("${LSB_DISTRIB}" MATCHES "Debian5.*")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl1.2debian, libcairo2, librsvg2-2, libboost-dev, libavcodec51, libavformat52, libswscale0, libmagick++10, libxml++2.6-2, libglew1.5")
endif("${LSB_DISTRIB}" MATCHES "Debian5.*")
+ if("${LSB_DISTRIB}" MATCHES "Debiantesting")
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl1.2debian, libcairo2, librsvg2-2, libboost-dev, libavcodec52, libavformat52, libswscale0, libmagick++10, libxml++2.6-2, libglew1.5")
+ endif("${LSB_DISTRIB}" MATCHES "Debiantesting")
if(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
message("WARNING: ${LSB_DISTRIB} not supported yet.\nPlease set deps in cmake/performous-packaging.cmake before packaging.")
endif(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
+ string(TOLOWER "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-${LSB_DISTRIB}_${CPACK_PACKAGE_ARCHITECTURE}" CPACK_PACKAGE_FILE_NAME)
endif("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
# For Fedora-based distros we want to create RPM packages.
if("${LSB_DISTRIB}" MATCHES "Fedora")
|