summaryrefslogtreecommitdiff
path: root/debian/patches/debian.patch
blob: 84387221ff20e623d5e4d97cfec0dd91b95b84c1 (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
Last-Update: 2013-08-04
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: set prefix and path to game data file

--- a/SConstruct
+++ b/SConstruct
@@ -261,10 +261,10 @@
 	class UserSettings(DXXCommon.UserSettings):
 		def __init__(self,ARGUMENTS,target):
 			DXXCommon.UserSettings.__init__(self, ARGUMENTS.ARGUMENTS)
 			# installation path
-			PREFIX = str(ARGUMENTS.get('prefix', '/usr/local'))
-			self.BIN_DIR = PREFIX + '/bin'
+			PREFIX = str(ARGUMENTS.get('prefix', '/usr'))
+			self.BIN_DIR = PREFIX + '/games'
 			self.DATA_DIR = PREFIX + '/share/games/' + target
 			# command-line parms
 			self.sharepath = str(ARGUMENTS.get('sharepath', self.DATA_DIR))
 	# Settings to apply to mingw32 builds
@@ -635,9 +635,9 @@
 	Type 'scons -c' to clean up.
 	
 	Extra options (add them to command line, like 'scons extraoption=value'):
 	
-	'sharepath=[DIR]'     (non-Mac OS *NIX only) use [DIR] for shared game data. [default: /usr/local/share/games/d2x-rebirth]
+	'sharepath=[DIR]'     (non-Mac OS *NIX only) use [DIR] for shared game data. [default: /usr/share/games/d2x-rebirth]
 	'opengl=[0/1]'        build with OpenGL support [default: 1]
 	'opengles=[0/1]'      build with OpenGL ES support [default: 0]
 	'opengles_lib=[NAME]' specify the name of the OpenGL ES library to link against
 	'sdlmixer=[0/1]'      build with SDL_Mixer support for sound and music (includes external music support) [default: 1]
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -101,9 +101,9 @@
 =========================
 
    *NIX
    ----
-   The Sharepath (/usr/local/share/games/d1x-rebirth/ by default - if not reconfigured via SCons) or
+   The Sharepath (/usr/share/games/d2x-rebirth/ by default - if not reconfigured via SCons) or
    ~/.d1x-rebirth or
    another directory specified by -hogdir via d1x.ini
 
    MacOS
bgstack15