summaryrefslogtreecommitdiffstats
path: root/games/wormblast/wormblast.patch
blob: b4f501d93e59cf629f55a6f41dc1f568e2f99c86 (plain)
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
--- wormblast-2.0.2/src/game/game.original.cc	2014-04-17 04:44:16.025841490 +0300
+++ wormblast-2.0.2/src/game/game.cc	2014-04-17 04:45:16.415086521 +0300
@@ -54,6 +54,7 @@
 // **** C++ standard includes ****
 
 #include <cmath>
+#include <unistd.h>
 
 using std::tan;
 
--- wormblast-2.0.2/src/gui_new/about_dlg.original.hh	2014-04-17 05:19:09.918664228 +0300
+++ wormblast-2.0.2/src/gui_new/about_dlg.hh	2014-04-17 05:58:16.569327057 +0300
@@ -24,7 +24,7 @@
 #include <QWidget>
 #include <QResizeEvent>
 
-#include "ui_about.h"
+#include "../../build/src/gui_new/ui_about.h"
 
 //! The about box
 class AboutDlg : public QDialog
--- wormblast-2.0.2/src/gui_new/highscores_dlg.original.hh	2014-04-17 06:01:56.538577063 +0300
+++ wormblast-2.0.2/src/gui_new/highscores_dlg.hh	2014-04-17 06:03:11.096644959 +0300
@@ -21,7 +21,7 @@
 #define HIGHSCORES_DLG_HH
 
 #include <QDialog>
-#include "ui_highscores.h"
+#include "../../build/src/gui_new/ui_highscores.h"
 #include "config.hh"
 
 //! Dialog that shows high scores for one-player and two-player games
--- wormblast-2.0.2/src/gui_new/settings_dlg.original.hh	2014-04-17 06:06:55.647837683 +0300
+++ wormblast-2.0.2/src/gui_new/settings_dlg.hh	2014-04-17 06:07:21.624512930 +0300
@@ -23,7 +23,7 @@
 #include <QDialog>
 #include <QWidget>
 
-#include "ui_settings.h"
+#include "../../build/src/gui_new/ui_settings.h"
 #include "config.hh"
 
 //! The settings dialog
--- wormblast-2.0.2/CMakeLists.original.txt	2014-04-17 06:39:16.678571460 +0300
+++ wormblast-2.0.2/CMakeLists.txt	2014-04-17 07:09:17.741055080 +0300
@@ -17,7 +17,7 @@
 
 # Set install dirs
 set(CMAKE_INSTALL_PREFIX /usr)
-set(DEST_PATH /opt/WormBlast)
+set(DEST_PATH /usr/share/games/WormBlast)
 set(DATA_PATH ${DEST_PATH}/data)
 set(BIN_PATH ${DEST_PATH}/bin)
 add_definitions(-DGAME_BINARY_PATH="${BIN_PATH}/wormblast-game.x")
@@ -57,8 +57,8 @@
 add_subdirectory(src/gui_new)
 
 # Install binaries & data
-install(PROGRAMS bin/game/wormblast-game.x DESTINATION ${BIN_PATH})
-install(PROGRAMS bin/gui/wormblast DESTINATION ${BIN_PATH})
+install(PROGRAMS build/bin/game/wormblast-game.x DESTINATION ${BIN_PATH})
+install(PROGRAMS build/bin/gui/wormblast DESTINATION ${BIN_PATH})
 install(FILES data/sounds.map data/textures.map data/verasans.map DESTINATION ${DATA_PATH})
 install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.jpg")
 install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.png")
--- wormblast-2.0.2/data/wormblast.desktop.original	2014-04-17 07:14:57.288810149 +0300
+++ wormblast-2.0.2/data/wormblast.desktop	2014-04-17 07:16:06.055950441 +0300
@@ -2,7 +2,7 @@
 Name=WormBlast
 Comment[fi]=Action matopeli 1-2 pelaajalle
 Comment=Worm action game for 1-2 players
-Exec=/opt/WormBlast/bin/wormblast
+Exec=wormblast
 Icon=wormblast-32
 Terminal=false
 Type=Application