Line
Link Here
|
0 |
-- wesnoth-1.6.1-orig/CMakeLists.txt |
0 |
++ wesnoth-1.6.1/CMakeLists.txt |
Lines 259-283
Link Here
|
259 |
# Install desktop file so wesnoth appears in the application start menu with an icon |
259 |
# Install desktop file so wesnoth appears in the application start menu with an icon |
260 |
# |
260 |
# |
261 |
if(ENABLE_DESKTOP_ENTRY AND ENABLE_GAME) |
261 |
if(ENABLE_DESKTOP_ENTRY AND ENABLE_GAME) |
262 |
# do some crude string replacing to have the real binary name in the .desktop file (read in original .desktop file, replace the Exec= line with the correct value and output the generated file) |
262 |
install(FILES icons/wesnoth.desktop DESTINATION ${DESKTOPDIR} ) |
263 |
file(READ icons/wesnoth.desktop wesnoth-desktop-orig) |
|
|
264 |
#string(REGEX REPLACE "(\nName.*=.*)\n" "\\1 (${BINARY_SUFFIX})\n" wesnoth-desktop-modified ${wesnoth-desktop-orig} ) |
265 |
string(REPLACE "Exec=wesnoth" "Exec=${BINARY_PREFIX}wesnoth${BINARY_SUFFIX}" wesnoth-desktop-modified ${wesnoth-desktop-orig} ) |
266 |
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth${BINARY_SUFFIX}.desktop ${wesnoth-desktop-modified} ) |
267 |
|
268 |
#execute_process(COMMAND sed "-i" "'s/^\(Name.*=.*\)$/\1TEST/g'" ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth${BINARY_SUFFIX}.desktop ) |
269 |
#exec_program(sed ARGS "-i" "'s/^\(Name.*=.*\)$/\1TEST/g'" ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth${BINARY_SUFFIX}.desktop ) |
270 |
# install the generated .desktop file |
271 |
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth${BINARY_SUFFIX}.desktop DESTINATION ${DESKTOPDIR} ) |
272 |
install(FILES icons/wesnoth-icon.png DESTINATION ${ICONDIR} ) |
263 |
install(FILES icons/wesnoth-icon.png DESTINATION ${ICONDIR} ) |
273 |
|
264 |
|
274 |
if(ENABLE_EDITOR) |
265 |
if(ENABLE_EDITOR) |
275 |
# do some crude string replacing to have the real binary name in the .desktop file (read in original .desktop file, replace the Exec= line with the correct value and output the generated file) |
266 |
install(FILES icons/wesnoth_editor.desktop DESTINATION ${DESKTOPDIR} ) |
276 |
file(READ icons/wesnoth_editor.desktop wesnoth-editor-desktop-orig) |
|
|
277 |
string(REPLACE "Exec=wesnoth -e" "Exec=${BINARY_PREFIX}wesnoth${BINARY_SUFFIX} -e" wesnoth-editor-desktop-modified ${wesnoth-editor-desktop-orig} ) |
278 |
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth_editor${BINARY_SUFFIX}.desktop ${wesnoth-editor-desktop-modified} ) |
279 |
# install the generated .desktop file |
280 |
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_PREFIX}wesnoth_editor${BINARY_SUFFIX}.desktop DESTINATION ${DESKTOPDIR} ) |
281 |
install(FILES icons/wesnoth_editor-icon.png DESTINATION ${ICONDIR} ) |
267 |
install(FILES icons/wesnoth_editor-icon.png DESTINATION ${ICONDIR} ) |
282 |
endif(ENABLE_EDITOR) |
268 |
endif(ENABLE_EDITOR) |
283 |
endif(ENABLE_DESKTOP_ENTRY AND ENABLE_GAME) |
269 |
endif(ENABLE_DESKTOP_ENTRY AND ENABLE_GAME) |
284 |
-- wesnoth-1.6.1-orig/icons/wesnoth.desktop |
270 |
++ wesnoth-1.6.1/icons/wesnoth.desktop |
Lines 1-5
Link Here
|
1 |
[Desktop Entry] |
1 |
[Desktop Entry] |
2 |
Version=1.6 |
2 |
Version=1.0 |
3 |
Type=Application |
3 |
Type=Application |
4 |
Name=Battle for Wesnoth |
4 |
Name=Battle for Wesnoth |
5 |
Name[af]=Die Stryd vir Wesnoth |
5 |
Name[af]=Die Stryd vir Wesnoth |
Lines 52-58
Link Here
|
52 |
Comment[sr]=Фантазијска стратешка игра на потезе |
52 |
Comment[sr]=Фантазијска стратешка игра на потезе |
53 |
Comment[sr@latin]=Fantazijska strateška igra na poteze |
53 |
Comment[sr@latin]=Fantazijska strateška igra na poteze |
54 |
Comment[tr]=Fantastik, sırayla oynanan bir strateji oyunu |
54 |
Comment[tr]=Fantastik, sırayla oynanan bir strateji oyunu |
55 |
Icon=wesnoth-icon.png |
55 |
Icon=wesnoth-icon |
56 |
Exec=wesnoth |
56 |
Exec=wesnoth |
57 |
Categories=Game;StrategyGame; |
57 |
Categories=Game;StrategyGame; |
58 |
|
58 |
++ wesnoth-1.6.1/icons/wesnoth_editor.desktop |
59 |
-- wesnoth-1.6.1-orig/icons/wesnoth_editor.desktop |
|
|
Lines 1-5
Link Here
|
1 |
[Desktop Entry] |
1 |
[Desktop Entry] |
2 |
Version=1.6 |
2 |
Version=1.0 |
3 |
Type=Application |
3 |
Type=Application |
4 |
Name=Battle for Wesnoth Map Editor |
4 |
Name=Battle for Wesnoth Map Editor |
5 |
Name[cs]=Editor map Bitvy o Wesnoth |
5 |
Name[cs]=Editor map Bitvy o Wesnoth |
Lines 31-37
Link Here
|
31 |
Comment[sr]=Уређивач за мапе намењене Боју за Веснот |
31 |
Comment[sr]=Уређивач за мапе намењене Боју за Веснот |
32 |
Comment[sr@latin]=Uređivač za mape namenjene Boju za Vesnot |
32 |
Comment[sr@latin]=Uređivač za mape namenjene Boju za Vesnot |
33 |
Comment[tr]=Wesnoth savaşı haritaları için harita düzenleyici |
33 |
Comment[tr]=Wesnoth savaşı haritaları için harita düzenleyici |
34 |
Icon=wesnoth_editor-icon.png |
34 |
Icon=wesnoth_editor-icon |
35 |
Exec=wesnoth -e |
35 |
Exec=wesnoth -e |
36 |
Categories=Game;StrategyGame; |
36 |
Categories=Game;StrategyGame; |
37 |
|
|
|