]> git.pld-linux.org Git - packages/crafty.git/blob - crafty-paths.patch
- fix building on x32
[packages/crafty.git] / crafty-paths.patch
1 --- chess.h.org 2010-11-08 19:07:43.000000000 +0100
2 +++ chess.h     2012-05-07 20:13:11.000000000 +0200
3 @@ -110,13 +110,13 @@
4  #    define UNIX        /* system is unix-based                       */
5  #  endif
6  #  if !defined(BOOKDIR)
7 -#    define     BOOKDIR        "."
8 +#    define     BOOKDIR        "/usr/share/crafty"
9  #  endif
10  #  if !defined(LOGDIR)
11  #    define      LOGDIR        "."
12  #  endif
13  #  if !defined(TBDIR)
14 -#    define       TBDIR     "./TB"
15 +#    define       TBDIR     "/usr/share/crafty/TB"
16  #  endif
17  #  if !defined(RCDIR)
18  #    define       RCDIR        "."
19 @@ -684,7 +684,7 @@
20  #    include "inline32.h"
21  #  endif
22  #  if defined(UNIX)
23 -#    define SPEAK "./speak "
24 +#    define SPEAK "/usr/bin/crafty-speak "
25  #  else
26  #    define SPEAK ".\\Speak.exe "
27  #  endif
28 --- option.c.orig       2010-03-04 03:11:14.000000000 +0100
29 +++ option.c    2010-03-06 22:15:00.000000000 +0100
30 @@ -1038,7 +1038,7 @@
31      char *readstat = (char *) -1;
32      int lines = 0;
33  
34 -    helpfile = fopen("crafty.hlp", "r");
35 +    helpfile = fopen("/usr/share/crafty/crafty.hlp", "r");
36      if (!helpfile) {
37        printf("ERROR.  Unable to open \"crafty.hlp\" -- help unavailable\n");
38        return (1);
This page took 0.07876 seconds and 3 git commands to generate.