diff options
| author | Petr Mrázek | 2011-04-02 02:34:21 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-04-02 02:34:21 +0200 |
| commit | 42366c238fa9537ee8c1a287a89cdb34915eb83e (patch) | |
| tree | 3b3469b74b9bd28191f74772e5e3fc736e7b3e23 /CMakeLists.txt | |
| parent | 6abd2d76bb581c006b9a93e1cb8087454e36532d (diff) | |
| download | dfhack-42366c238fa9537ee8c1a287a89cdb34915eb83e.tar.gz dfhack-42366c238fa9537ee8c1a287a89cdb34915eb83e.tar.bz2 dfhack-42366c238fa9537ee8c1a287a89cdb34915eb83e.tar.xz | |
Simple packaging scripts
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c580cd8e..eddbebbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,7 @@ SET( DFHACK_INSTALL ${DFHACK_INST_DEFAULT} CACHE STRING 'portable' for a portable zip or tar.gz package (windows default) 'linux' for generic packaging and system installs on linux (linux default) 'ubuntu-10.10' for ubuntu maverick package.") + SET( MEMXML_DATA_PATH . CACHE PATH "Path to a valid Memory.xml file. This is baked into the library, so when you package DFHack for linux, set it to the right path.") @@ -104,7 +105,7 @@ IF(${DFHACK_INSTALL} STREQUAL "linux") SET(DFHACK_DOXYGEN_DESTINATION share/dfhack/doc/doxygen) ENDIF() -IF(${DFHACK_INSTALL} STREQUAL "ubuntu-10.10") +IF(${DFHACK_INSTALL} STREQUAL "ubuntu-10.10" OR ${DFHACK_INSTALL} STREQUAL "debian") if(WIN32) MESSAGE(FATAL_ERROR "WTF are you doing?") endif() @@ -123,7 +124,7 @@ IF(${DFHACK_INSTALL} STREQUAL "ubuntu-10.10") SET(DFHACK_DEVDOC_DESTINATION usr/share/dfhack/doc) SET(DFHACK_DOXYGEN_DESTINATION usr/share/dfhack/doc/doxygen) INSTALL(FILES - "${CMAKE_CURRENT_SOURCE_DIR}/package/ubuntu-10.10/99-dfhack.conf" + "${CMAKE_CURRENT_SOURCE_DIR}/package/${DFHACK_INSTALL}/99-dfhack.conf" DESTINATION etc/sysctl.d) ENDIF() @@ -220,7 +221,7 @@ FUNCTION(GET_DEBIAN_ARCHITECTURE arch) SET(${arch} ${dpkgarch} PARENT_SCOPE) ENDFUNCTION() -IF(${DFHACK_INSTALL} STREQUAL "ubuntu-10.10") +IF(${DFHACK_INSTALL} STREQUAL "ubuntu-10.10" OR ${DFHACK_INSTALL} STREQUAL "debian") SET(CPACK_GENERATOR "DEB") #wtf, wtf, wtf. force them to be empty @@ -232,11 +233,11 @@ IF(${DFHACK_INSTALL} STREQUAL "ubuntu-10.10") SET(CPACK_DEBIAN_PACKAGE_SECTION "Games") # yep. magma. SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") # very. SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) # find deps automatically! hopefully... maybe... - SET(INSTSCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/package/ubuntu-10.10") + SET(INSTSCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/package/${DFHACK_INSTALL}") SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${INSTSCRIPT}/postinst;${INSTSCRIPT}/preinst;${INSTSCRIPT}/postrm") GET_DEBIAN_ARCHITECTURE(PKG_ARCHITECTURE) - set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${DFHACK_VERSION}-${DFHACK_REVISION}_${PKG_ARCHITECTURE}") + set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${DFHACK_VERSION}-${DFHACK_REVISION}_${DFHACK_INSTALL}-${PKG_ARCHITECTURE}") INCLUDE(CPack) ENDIF() |
