diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-22 14:05:41 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-22 14:05:41 +0200 |
commit | b55285a77da0e0b829e4ce8d7e09debaabc68e15 (patch) | |
tree | f622559ef65bbdd3e1c5bdb06098a8f89eec0563 /distribution/posix | |
parent | d3897ce090dbeb220ed2c782f095597e417cf3cc (diff) | |
parent | d1ae75703e1ed81d65ea16946dcdb77e7a13adc9 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'distribution/posix')
-rw-r--r-- | distribution/posix/CMakeLists.txt | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/distribution/posix/CMakeLists.txt b/distribution/posix/CMakeLists.txt index 96636b0..3356005 100644 --- a/distribution/posix/CMakeLists.txt +++ b/distribution/posix/CMakeLists.txt @@ -1,6 +1,6 @@ # Setup packaging ... set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "XTrackCAD is a CAD program for designing model railroad layouts.") -set(CPACK_GENERATOR "RPM" "STGZ") +set(CPACK_GENERATOR "DEB" "RPM" "STGZ") set(CPACK_SOURCE_GENERATOR "TGZ" "TBZ2" "ZIP") set(CPACK_PACKAGE_RELEASE 1) set(CPACK_RPM_PACKAGE_LICENSE "GPL") @@ -17,12 +17,18 @@ set(CPACK_PROJECT_CONFIG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/package.txt) set(CPACK_PACKAGE_VENDOR "XTrackCAD Fork Project") # common dependencies for all Linux builds -set(CPACK_RPM_PACKAGE_REQUIRES "glibc gtk2") +set(CPACK_RPM_PACKAGE_REQUIRES "glibc gtk2 zip zlib") + +set(CPACK_RPM_BUILDREQUIRES + "gcc, cmake >= 2.4.7, pkgconfig, gtk2-devel" + "gettext, gettext-devel, glibc-devel" +) # Add dependency to webkitgtk if configured if(NOT XTRKCAD_USE_BROWSER) - set(CPACK_RPM_PACKAGE_REQUIRES - "${CPACK_RPM_PACKAGE_REQUIRES} webkitgtk") + set(CPACK_RPM_PACKAGE_REQUIRES + "${CPACK_RPM_PACKAGE_REQUIRES} webkitgtk") +# message(AUTHOR_WARNING "Add dependency to webkitgtk for viewing help!") endif() # exclude these directories from the rpm @@ -40,5 +46,33 @@ set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION set(CPACK_RPM_CHANGELOG_FILE "${CMAKE_CURRENT_SOURCE_DIR}////changelog.txt") +set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) + +set(CPACK_DEBIAN_PACKAGE_NAME "XTrkCad") + +set(CPACK_DEBIAN_PACKAGE_VERSION "1:${XTRKCAD_VERSION}") + +set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") + +set(CPACK_DEBIAN_PACKAGE_DEPENDS "zip") + +set(CPACK_DEBIAN_PACKAGE_MAINTAINER "xtrkcad@sillub.com") + +set(CPACK_PACKAGE_CONTACT "xtrkcad@sillub.com") + +set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "XTrkCad description") + +set(CPACK_DEBIAN_PACKAGE_SECTION "contrib/graphics") + +set(CPACK_DEBIAN_PACKAGE_COMPRESSION "gzip") + +set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") + +set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "xtrkcad.org") + +set(CPACK_PACKAGE_EXECUTABLES "xtrkcad;XTrkCad-5.2.1-Beta") + +set(CPACK_CREATE_DESKTOP_LINKS "xtrkcad") + include(CPack) |