]> git.decadent.org.uk Git - ion3.git/blob - debian/patches/201_fix-paths.diff
Update patches for ion-3rc-20070708.
[ion3.git] / debian / patches / 201_fix-paths.diff
1 #! /bin/sh -e
2 if [ $# -ne 1 ]; then
3     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
4     exit 1
5 fi
6 case "$1" in
7     -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
8     -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
9     *)
10         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11         exit 1;;
12 esac
13
14 exit 0
15 @DPATCH@                                                                                                                                                       
16 diff -Nur ion-3ds-20060519.orig/system.mk ion-3ds-20060519/system.mk
17 --- ion-3ds-20060519.orig/system.mk     2006-05-18 18:06:53.000000000 -0500
18 +++ ion-3ds-20060519/system.mk  2006-05-18 23:51:23.000000000 -0500
19 @@ -7,7 +7,7 @@
20  ## Installation paths
21  ##
22  
23 -PREFIX=/usr/local
24 +PREFIX=/usr
25  
26  # Unless you are creating a package conforming to some OS's standards, you
27  # probably do not want to modify the following directories:
28 @@ -15,7 +15,7 @@
29  # Main binaries
30  BINDIR=$(PREFIX)/bin
31  # Configuration .lua files
32 -ETCDIR=$(PREFIX)/etc/ion3
33 +ETCDIR=/etc/X11/ion3
34  # Some .lua files and ion-* shell scripts
35  SHAREDIR=$(PREFIX)/share/ion3
36  # Manual pages
37 @@ -27,11 +27,11 @@
38  # Nothing at the moment
39  LIBDIR=$(PREFIX)/lib
40  # Modules
41 -MODULEDIR=$(LIBDIR)/ion3/mod
42 +MODULEDIR=$(LIBDIR)/ion3
43  # Compiled Lua source code
44  LCDIR=$(LIBDIR)/ion3/lc
45  # ion-completefile (does not belong in SHAREDIR being a binary file)
46 -EXTRABINDIR=$(LIBDIR)/ion3/bin
47 +EXTRABINDIR=$(LIBDIR)/ion3
48  # For ion-completeman system-wide cache
49  VARDIR=/var/cache/ion3
50  # Message catalogs
51 @@ -56,18 +56,18 @@
52  
53  # If you have installed Lua 5.1 from the official tarball without changing
54  # paths, this should do it.
55 -LUA_DIR=/usr/local
56 -LUA_LIBS = -L$(LUA_DIR)/lib -llua
57 -LUA_INCLUDES = -I$(LUA_DIR)/include
58 -LUA=$(LUA_DIR)/bin/lua
59 -LUAC=$(LUA_DIR)/bin/luac
60 +#LUA_DIR=/usr/local
61 +#LUA_LIBS = -L$(LUA_DIR)/lib -llua
62 +#LUA_INCLUDES = -I$(LUA_DIR)/include
63 +#LUA=$(LUA_DIR)/bin/lua
64 +#LUAC=$(LUA_DIR)/bin/luac
65  
66  # If you are using the Debian packages, the following settings should be
67  # what you want.
68 -#LUA_LIBS=`pkg-config --libs lua5.1`
69 -#LUA_INCLUDES=`pkg-config --cflags lua5.1`
70 -#LUA=/usr/bin/lua5.1
71 -#LUAC=/usr/bin/luac5.1
72 +LUA_LIBS=`pkg-config --libs lua5.1`
73 +LUA_INCLUDES=`pkg-config --cflags lua5.1`
74 +LUA=`which lua5.1`
75 +LUAC=`which luac5.1`
76  
77  
78  ##
79 @@ -104,7 +104,7 @@
80  # asprintf and vasprintf in the c library. (gnu libc has.)
81  # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
82  # in sprintf_2.2/ is used.
83 -#HAS_SYSTEM_ASPRINTF=1
84 +HAS_SYSTEM_ASPRINTF=1
85  
86  # If you're on an archaic system (such as relatively recent *BSD releases)
87  # without even dummy multibyte/widechar and localisation support, you may 
88 @@ -140,14 +140,14 @@
89  
90  #C89_SOURCE=-ansi
91  
92 -#POSIX_SOURCE=-D_POSIX_C_SOURCE=200112L
93 +POSIX_SOURCE=-D_POSIX_C_SOURCE=200112L
94  
95  # Most systems
96 -#XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
97 +XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
98  # SunOS, (Irix)
99  #XOPEN_SOURCE=-D__EXTENSIONS__
100  
101 -#C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
102 +C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
103  
104  # The -DCF_HAS_VA_COPY option should allow for some optimisations, and 
105  # in some cases simply defining