sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / games / qgo / fix-paths.patch
blobc1d1e399ec1a4784607555b12b5e13d0d9afd7fe
1 diff --git a/src/defines.h b/src/defines.h
2 index 5d40955..82d0627 100644
3 --- a/src/defines.h
4 +++ b/src/defines.h
5 @@ -48,7 +48,7 @@
6 * GNUgo default level
7 */
8 #define DEFAULT_ENGINE "gnugo"
9 -#define DEFAULT_ENGINE_PATH "/usr/games/"
10 +#define DEFAULT_ENGINE_PATH ""
11 #define DEFAULT_ENGINE_OPTIONS "--mode gtp --quiet --level 10"
14 @@ -220,8 +220,8 @@ extern QString applicationPath;
15 #define SOUND_PATH_PREFIX "qGo.app/Contents/Resources/Sounds/"
16 #define TRANSLATIONS_PATH "qGo.app/Contents/Resources/Translations/"
17 #else
18 - #define SOUND_PATH_PREFIX "/usr/share/qgo/sounds/"
19 - #define TRANSLATIONS_PATH "/usr/share/qgo/languages"
20 + #define SOUND_PATH_PREFIX "/@out@/share/qgo/sounds/"
21 + #define TRANSLATIONS_PATH "/@out@/share/qgo/languages"
22 #endif
24 #endif
25 diff --git a/src/src.pro b/src/src.pro
26 index f989ce7..b7d691f 100644
27 --- a/src/src.pro
28 +++ b/src/src.pro
29 @@ -165,17 +165,17 @@ SOURCES += displayboard.cpp \
30 newgamedialog.cpp
32 unix*:!macx-* {
33 - QGO_INSTALL_PATH = /usr/share/qgo
34 - QGO_INSTALL_BIN_PATH = /usr/bin
35 + QGO_INSTALL_PATH = @out@/share/qgo
36 + QGO_INSTALL_BIN_PATH = /@out@/bin
38 - icon.path = /usr/share/pixmaps
39 + icon.path = @out@/share/pixmaps
40 icon.files = resources/pics/qgo.png
41 icon.files += resources/pics/qgo_16x16.xpm
42 icon.files += resources/pics/qgo_32x32.xpm
43 icon.files += resources/pics/qgo_48x48.png
44 icon.files += resources/pics/qgo_48x48.xpm
45 INSTALLS += icon
46 - desktopfile.path = /usr/share/applications
47 + desktopfile.path = @out@/share/applications
48 desktopfile.files = qgo.desktop
49 INSTALLS += desktopfile