Skip to content

Commit f443d13

Browse files
committed
Package icons and dependencies for Linux
* Added icons and desktop shortcuts for Linux * Added lines for dependencies (may be modified by the packager) for DEB and RPM packages
1 parent a582e89 commit f443d13

File tree

14 files changed

+20
-0
lines changed

14 files changed

+20
-0
lines changed

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ add_subdirectory(wish)
6464
add_subdirectory(stdlib)
6565
add_subdirectory(platform-test)
6666

67+
# Add launcher and icons
68+
if(UNIX)
69+
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/distrib/share/" DESTINATION share)
70+
endif()
71+
6772
# General CPack configuration
6873

6974
string(TOLOWER "${CMAKE_SYSTEM_NAME}" MOZART_SYSTEM_NAME)
@@ -98,6 +103,13 @@ string(REGEX REPLACE "-(alpha|beta|rc)\\." "~\\1"
98103
CPACK_DEBIAN_PACKAGE_VERSION "${MOZART_PROP_OZ_VERSION}")
99104
set(CPACK_DEBIAN_PACKAGE_SECTION "devel")
100105
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
106+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "tcl8.5, tk8.5, emacs")
107+
108+
# Configuration of the RPM generator
109+
110+
set(CPACK_RPM_PACKAGE_ARCHITECTURE "${MOZART_PROP_PLATFORM_ARCH}")
111+
set(CPACK_RPM_PACKAGE_REQUIRES "tcl >= 8.5, tk >= 8.5, emacs")
112+
set(CPACK_RPM_PACKAGE_GROUP "Development/Languages")
101113

102114
# Finally include CPack
103115
include(CPack)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Name=Mozart Programming System
4+
Exec=oz %u
5+
Terminal=false
6+
Type=Application
7+
Icon=oz
8+
Categories=Development;
9.05 KB
Loading
949 Bytes
Loading
14 KB
Loading
1.47 KB
Loading
1.58 KB
Loading
15.9 KB
Loading
2.31 KB
Loading
2.51 KB
Loading

0 commit comments

Comments
 (0)