Lines 38-50
Link Here
|
38 |
|
38 |
|
39 |
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") |
39 |
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") |
40 |
|
40 |
|
41 |
EXECUTE_PROCESS(COMMAND "convert" "/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/src/res/oc.ico[2]" "/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-5.2.0_build/clonk.png" RESULT_VARIABLE CONVERT_RESULT) |
41 |
EXECUTE_PROCESS(COMMAND "convert" "/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/src/res/oc.ico[2]" "/usr/share/icons/hicolor/48x48/apps/clonk.png" RESULT_VARIABLE CONVERT_RESULT) |
42 |
IF(NOT ${CONVERT_RESULT} EQUAL 0) |
42 |
IF(NOT ${CONVERT_RESULT} EQUAL 0) |
43 |
MESSAGE(SEND_ERROR "Creating icon failed") |
43 |
MESSAGE(SEND_ERROR "Creating icon failed") |
44 |
ENDIF() |
44 |
ENDIF() |
45 |
|
45 |
|
46 |
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps" TYPE FILE FILES "/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-5.2.0_build/clonk.png") |
|
|
47 |
|
48 |
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") |
46 |
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") |
49 |
|
47 |
|
50 |
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") |
48 |
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") |
Lines 78-84
Link Here
|
78 |
FOREACH(CURRENT_FILE /var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Music.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Graphics.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Objects.ocd;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Tests.ocf;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Tutorial.ocf;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/BackToTheRocks.ocf;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/System.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Material.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Sound.ocg) |
76 |
FOREACH(CURRENT_FILE /var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Music.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Graphics.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Objects.ocd;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Tests.ocf;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Tutorial.ocf;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/BackToTheRocks.ocf;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/System.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Material.ocg;/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-release-5.2.0-src/planet/Sound.ocg) |
79 |
GET_FILENAME_COMPONENT(CURRENT_FILENAME "${CURRENT_FILE}" NAME) |
77 |
GET_FILENAME_COMPONENT(CURRENT_FILENAME "${CURRENT_FILE}" NAME) |
80 |
MESSAGE("Packing ${CURRENT_FILENAME}...") |
78 |
MESSAGE("Packing ${CURRENT_FILENAME}...") |
81 |
EXECUTE_PROCESS(COMMAND "/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-5.2.0_build/c4group" "/var/tmp/portage/games-puzzle/openclonk-5.2.0/image/usr/share/openclonk/${CURRENT_FILENAME}" "-p" RESULT_VARIABLE C4GROUP_RESULT) |
79 |
EXECUTE_PROCESS(COMMAND "/var/tmp/portage/games-puzzle/openclonk-5.2.0/work/openclonk-5.2.0_build/c4group" "/usr/share/openclonk/${CURRENT_FILENAME}" "-p" RESULT_VARIABLE C4GROUP_RESULT) |
82 |
IF(NOT ${C4GROUP_RESULT} EQUAL 0) |
80 |
IF(NOT ${C4GROUP_RESULT} EQUAL 0) |
83 |
MESSAGE(SEND_ERROR "Packing failed") |
81 |
MESSAGE(SEND_ERROR "Packing failed") |
84 |
ENDIF() |
82 |
ENDIF() |