diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-10-25 17:26:54 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-10-25 17:26:54 (GMT) |
commit | 2d1bcf806f5a0bbff1b13953f38ec5ab79fcd0e1 (patch) | |
tree | a4850eee33c1e4074b201f545a5a82c74ada61c6 /Modules/CPackDeb.cmake | |
parent | fec600550ee7fcea6985fcf32145e5756a9f1917 (diff) | |
download | CMake-2d1bcf806f5a0bbff1b13953f38ec5ab79fcd0e1.zip CMake-2d1bcf806f5a0bbff1b13953f38ec5ab79fcd0e1.tar.gz CMake-2d1bcf806f5a0bbff1b13953f38ec5ab79fcd0e1.tar.bz2 |
BUG: rename DEBIAN_PACKAGE_* variables to CPACK_DEBIAN_PACKAGE_* variables
to make them actually work
Alex
Diffstat (limited to 'Modules/CPackDeb.cmake')
-rw-r--r-- | Modules/CPackDeb.cmake | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake index e3f2a66..22940a2 100644 --- a/Modules/CPackDeb.cmake +++ b/Modules/CPackDeb.cmake @@ -20,63 +20,63 @@ ENDIF(NOT UNIX) # DEBIAN/control # debian policy enforce lower case for package name # Package: (mandatory) -IF(NOT DEBIAN_PACKAGE_NAME) - STRING(TOLOWER "${CPACK_PACKAGE_NAME}" DEBIAN_PACKAGE_NAME) -ENDIF(NOT DEBIAN_PACKAGE_NAME) +IF(NOT CPACK_DEBIAN_PACKAGE_NAME) + STRING(TOLOWER "${CPACK_PACKAGE_NAME}" CPACK_DEBIAN_PACKAGE_NAME) +ENDIF(NOT CPACK_DEBIAN_PACKAGE_NAME) # Version: (mandatory) -IF(NOT DEBIAN_PACKAGE_VERSION) +IF(NOT CPACK_DEBIAN_PACKAGE_VERSION) IF(NOT CPACK_PACKAGE_VERSION) MESSAGE(FATAL_ERROR "Debian package requires a package version") ENDIF(NOT CPACK_PACKAGE_VERSION) - SET(DEBIAN_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}) -ENDIF(NOT DEBIAN_PACKAGE_VERSION) + SET(CPACK_DEBIAN_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}) +ENDIF(NOT CPACK_DEBIAN_PACKAGE_VERSION) # Architecture: (mandatory) -IF(NOT DEBIAN_PACKAGE_ARCHITECTURE) +IF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE) # There is no such thing as i686 architecture on debian, you should use i386 instead # $ dpkg --print-architecture - SET(DEBIAN_PACKAGE_ARCHITECTURE i386) -ENDIF(NOT DEBIAN_PACKAGE_ARCHITECTURE) + SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386) +ENDIF(NOT CPACK_DEBIAN_PACKAGE_ARCHITECTURE) # have a look at GET_PROPERTY(result GLOBAL ENABLED_FEATURES), this returns # the successful FIND_PACKAGE() calls, maybe this can help # Depends: -IF(NOT DEBIAN_PACKAGE_DEPENDS) - MESSAGE(STATUS "DEBIAN_PACKAGE_DEPENDS not set, the package will have no dependencies.") -ENDIF(NOT DEBIAN_PACKAGE_DEPENDS) +IF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS) + MESSAGE(STATUS "CPACK_DEBIAN_PACKAGE_DEPENDS not set, the package will have no dependencies.") +ENDIF(NOT CPACK_DEBIAN_PACKAGE_DEPENDS) # Maintainer: (mandatory) -IF(NOT DEBIAN_PACKAGE_MAINTAINER) +IF(NOT CPACK_DEBIAN_PACKAGE_MAINTAINER) IF(NOT CPACK_PACKAGE_CONTACT) - MESSAGE(FATAL_ERROR "Debian package requires a maintainer for a package, set CPACK_PACKAGE_CONTACT or DEBIAN_PACKAGE_MAINTAINER") + MESSAGE(FATAL_ERROR "Debian package requires a maintainer for a package, set CPACK_PACKAGE_CONTACT or CPACK_DEBIAN_PACKAGE_MAINTAINER") ENDIF(NOT CPACK_PACKAGE_CONTACT) - SET(DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT}) -ENDIF(NOT DEBIAN_PACKAGE_MAINTAINER) + SET(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT}) +ENDIF(NOT CPACK_DEBIAN_PACKAGE_MAINTAINER) # Description: (mandatory) -IF(NOT DEBIAN_PACKAGE_DESCRIPTION) +IF(NOT CPACK_DEBIAN_PACKAGE_DESCRIPTION) IF(NOT CPACK_PACKAGE_DESCRIPTION_SUMMARY) - MESSAGE(FATAL_ERROR "Debian package requires a summary for a package, set CPACK_PACKAGE_DESCRIPTION_SUMMARY or DEBIAN_PACKAGE_DESCRIPTION") + MESSAGE(FATAL_ERROR "Debian package requires a summary for a package, set CPACK_PACKAGE_DESCRIPTION_SUMMARY or CPACK_DEBIAN_PACKAGE_DESCRIPTION") ENDIF(NOT CPACK_PACKAGE_DESCRIPTION_SUMMARY) - SET(DEBIAN_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION_SUMMARY}) -ENDIF(NOT DEBIAN_PACKAGE_DESCRIPTION) + SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION_SUMMARY}) +ENDIF(NOT CPACK_DEBIAN_PACKAGE_DESCRIPTION) # Section: (recommended) -IF(NOT DEBIAN_PACKAGE_SECTION) - SET(DEBIAN_PACKAGE_SECTION "devel") -ENDIF(NOT DEBIAN_PACKAGE_SECTION) +IF(NOT CPACK_DEBIAN_PACKAGE_SECTION) + SET(CPACK_DEBIAN_PACKAGE_SECTION "devel") +ENDIF(NOT CPACK_DEBIAN_PACKAGE_SECTION) # Priority: (recommended) -IF(NOT DEBIAN_PACKAGE_PRIORITY) - SET(DEBIAN_PACKAGE_PRIORITY "optional") -ENDIF(NOT DEBIAN_PACKAGE_PRIORITY ) +IF(NOT CPACK_DEBIAN_PACKAGE_PRIORITY) + SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") +ENDIF(NOT CPACK_DEBIAN_PACKAGE_PRIORITY ) # Recommends: -# You should set: DEBIAN_PACKAGE_RECOMMENDS +# You should set: CPACK_DEBIAN_PACKAGE_RECOMMENDS # Suggests: -# You should set: DEBIAN_PACKAGE_SUGGESTS +# You should set: CPACK_DEBIAN_PACKAGE_SUGGESTS # For debian source packages: @@ -87,8 +87,8 @@ ENDIF(NOT DEBIAN_PACKAGE_PRIORITY ) # http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-debiansourcecontrolfiles # Builds-Depends: -#IF(NOT DEBIAN_PACKAGE_BUILDS_DEPENDS) -# SET(DEBIAN_PACKAGE_BUILDS_DEPENDS +#IF(NOT CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS) +# SET(CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS # "debhelper (>> 5.0.0), libncurses5-dev, tcl8.4" # ) -#ENDIF(NOT DEBIAN_PACKAGE_BUILDS_DEPENDS) +#ENDIF(NOT CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS) |