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