File: game_installdir.patch

package info (click to toggle)
maelstrom 3.0.7-4
  • links: PTS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 4,948 kB
  • sloc: cpp: 10,947; sh: 3,406; ansic: 2,781; makefile: 175
file content (20 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Pino Toscano <pino@debian.org>
Description: Fix the location of the game datadir
 Respect the --datadir parameter.
Last-Update: 2021-12-29

--- a/configure.in
+++ b/configure.in
@@ -102,10 +102,10 @@ case "$target" in
         ;;
     *-*-beos*)
         ac_default_prefix=/boot/beos
-        GAME_INSTALLDIR="\$(prefix)/games/$PACKAGE"
+        GAME_INSTALLDIR="\$(datadir)/$PACKAGE"
         ;;
     *)
-        GAME_INSTALLDIR="\$(prefix)/games/$PACKAGE"
+        GAME_INSTALLDIR="\$(datadir)/$PACKAGE"
         ;;
 esac
 AC_SUBST(GAME_INSTALLDIR)