File: CMakeLists-packages.txt

package info (click to toggle)
yacas 1.3.6-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 7,176 kB
  • ctags: 3,520
  • sloc: cpp: 13,960; java: 12,602; sh: 11,401; makefile: 552; perl: 517; ansic: 381
file content (108 lines) | stat: -rw-r--r-- 4,792 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
if (WIN32 AND CMAKE_CROSSCOMPILING)
  install (FILES /usr/lib/gcc/i686-w64-mingw32/4.9-win32/libgcc_s_sjlj-1.dll /usr/i686-w64-mingw32/lib/libwinpthread-1.dll DESTINATION bin COMPONENT app)
endif ()


if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
    install (FILES debian/copyright DESTINATION share/doc/yacas COMPONENT app)

    find_package (UnixCommands REQUIRED)
    add_custom_target (compress_changelog ALL COMMAND ${GZIP} -9 -c ${PROJECT_SOURCE_DIR}/debian/changelog > changelog.gz)

    install (FILES ${PROJECT_BINARY_DIR}/changelog.gz DESTINATION share/doc/yacas COMPONENT app)

    find_program (RST2MAN rst2man)

    if (RST2MAN)
        add_custom_target (man ALL COMMAND ${RST2MAN} ${PROJECT_SOURCE_DIR}/yacas.1.rst | ${GZIP} -9 > yacas.1.gz)
        install (FILES ${PROJECT_BINARY_DIR}/yacas.1.gz DESTINATION share/man/man1 COMPONENT app)
    endif ()

endif ()


set (CPACK_COMPONENTS_IGNORE_GROUPS 1)
set (CPACK_COMPONENTS_ALL app doc dev)
set (CPACK_COMPONENTS_GROUPING ONE_PER_GROUP)

if (APPLE)
set (CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} framework)
set (CPACK_SET_DESTDIR TRUE) #framework goes to /Library/Frameworks without Access Denied during compilation, 
endif()



if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
  set (CPACK_GENERATOR DEB)
  execute_process (COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
  string (REGEX REPLACE "(\r?\n)+$" "" CPACK_DEBIAN_PACKAGE_ARCHITECTURE "${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  set (CPACK_PACKAGE_FILE_NAME "yacas_${YACAS_VERSION}-1_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  set (CPACK_DEBIAN_PACKAGE_DESCRIPTION "Yet Another Computer Algebra System
 Yacas is an easy to use, general purpose Computer Algebra System, a program
 for symbolic manipulation of mathematical expressions. It uses its own
 programming language designed for symbolic as well as arbitrary-precision
 numerical computations. The system has a library of scripts that implement
 many of the symbolic algebra operations; new algorithms can be easily added
 to the library. Yacas comes with extensive documentation (hundreds of pages)
 covering the scripting language, the functionality that is already implemented
 in the system, and the algorithms we used.")
  set (CPACK_DEBIAN_PACKAGE_SECTION "math")
  set (CPACK_DEBIAN_PACKAGE_RECOMMENDS yagy)
  set( CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/debian/postinst;")
elseif (WIN32 AND NOT UNIX)
  set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP 1)
  include (InstallRequiredSystemLibraries)
  install (PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin COMPONENT app)
  if(CMAKE_CL_64)
    set (CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS  "SetRegView 64")
    set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
  endif ()
  set (CPACK_GENERATOR NSIS)
  set (CPACK_NSIS_MODIFY_PATH "ON")
  set (CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
  set (CPACK_NSIS_HELP_LINK "http://yacas.sourceforge.net/")
  set (CPACK_NSIS_URL_INFO_ABOUT "http://yacas.sourceforge.net/")
  set (CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}/res/yacas.ico")
  set (CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\yacas.exe")
  set (CPACK_CREATE_DESKTOP_LINKS "yacas.exe" "yacas")
endif ()

set (CPACK_PACKAGE_NAME "yacas")
set (CPACK_PACKAGE_VENDOR "Yacas Team")
set (CPACK_PACKAGE_CONTACT "Yacas Team <yacas-devel@lists.sourceforge.net>")
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Yacas is an easy to use, general purpose computer algebra system.")
set (CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README")
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
if(APPLE)
  configure_file(
    "${PROJECT_SOURCE_DIR}/COPYING"
    "${PROJECT_BINARY_DIR}/COPYING.txt"
    @ONLY)
  configure_file(
    "${PROJECT_SOURCE_DIR}/README"
    "${PROJECT_BINARY_DIR}/README.txt"
    @ONLY)
  set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_BINARY_DIR}/COPYING.txt")
  set (CPACK_RESOURCE_FILE_README "${PROJECT_BINARY_DIR}/README.txt")
else()
  set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
  set (CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README")
endif()

set (CPACK_PACKAGE_VERSION ${YACAS_VERSION})
set (CPACK_PACKAGE_VERSION_MAJOR ${YACAS_VERSION_MAJOR})
set (CPACK_PACKAGE_VERSION_MINOR ${YACAS_VERSION_MINOR})
set (CPACK_PACKAGE_VERSION_PATCH ${YACAS_VERSION_MICRO})
set (CPACK_PACKAGE_INSTALL_DIRECTORY "yacas")
set (CPACK_PACKAGE_EXECUTABLES yacas;Yacas)
set (CPACK_STRIP_FILES TRUE)

set(CPACK_COMPONENT_APP_DISPLAY_NAME "Yacas")
set(CPACK_COMPONENT_DOC_DISPLAY_NAME "Documentation")
set(CPACK_COMPONENT_DEV_DISPLAY_NAME "Development")

set(CPACK_COMPONENT_FRAMEWORK_DISPLAY_NAME "Framework")
set(CPACK_COMPONENT_FRAMEWORK_DISABLED 1)
set(CPACK_COMPONENT_FRAMEWORK_DESCRIPTION "Yacas.framework wil be installed into /Library/Frameworks")

include (CPack)