diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-08 11:53:00 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-08-08 11:53:00 +0200 |
commit | b623f5953691b2a0614e6f1f4def86bdbb9a4113 (patch) | |
tree | 18102bd36f7e22eb2ba2b9f880e4cb29346f4cb8 /distribution/posix/CMakeLists.txt | |
parent | 359b557176b9bb2ff1aed2082641eed39c358d0d (diff) |
New upstream version 5.2.0Beta2.1upstream/5.2.0Beta2.1
Diffstat (limited to 'distribution/posix/CMakeLists.txt')
-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) |