]> git.decadent.org.uk Git - ion3.git/blob - debian/patches/201_build-config.diff
Remove executable permission from patches
[ion3.git] / debian / patches / 201_build-config.diff
1 Index: ion3-20080707/system.mk
2 ===================================================================
3 --- ion3-20080707.orig/system.mk        2008-07-07 16:39:16.000000000 +0100
4 +++ ion3-20080707/system.mk     2008-07-11 00:31:29.000000000 +0100
5 @@ -8,7 +8,7 @@
6  
7  # Installation path prefix. Unless you know what you're doing, the default
8  # of /usr/local is likely the correct choice.
9 -PREFIX=/usr/local
10 +PREFIX=/usr
11  
12  # Unless you are creating a package conforming to some OS's standards, you
13  # probably do not want to modify the following directories:
14 @@ -16,7 +16,7 @@
15  # Main binaries
16  BINDIR=$(PREFIX)/bin
17  # Configuration .lua files
18 -ETCDIR=$(PREFIX)/etc/ion3
19 +ETCDIR=/etc/X11/ion3
20  # Some .lua files and ion-* shell scripts
21  SHAREDIR=$(PREFIX)/share/ion3
22  # Manual pages
23 @@ -28,11 +28,11 @@
24  # Nothing at the moment
25  LIBDIR=$(PREFIX)/lib
26  # Modules
27 -MODULEDIR=$(LIBDIR)/ion3/mod
28 +MODULEDIR=$(LIBDIR)/ion3
29  # Compiled Lua source code
30  LCDIR=$(LIBDIR)/ion3/lc
31  # ion-completefile (does not belong in SHAREDIR being a binary file)
32 -EXTRABINDIR=$(LIBDIR)/ion3/bin
33 +EXTRABINDIR=$(LIBDIR)/ion3
34  # For ion-completeman system-wide cache
35  VARDIR=/var/cache/ion3
36  # Message catalogs
37 @@ -62,18 +62,18 @@
38  
39  # If you have installed Lua 5.1 from the official tarball without changing
40  # paths, this should do it.
41 -LUA_DIR=/usr/local
42 -LUA_LIBS = -L$(LUA_DIR)/lib -llua
43 -LUA_INCLUDES = -I$(LUA_DIR)/include
44 -LUA=$(LUA_DIR)/bin/lua
45 -LUAC=$(LUA_DIR)/bin/luac
46 +#LUA_DIR=/usr/local
47 +#LUA_LIBS = -L$(LUA_DIR)/lib -llua
48 +#LUA_INCLUDES = -I$(LUA_DIR)/include
49 +#LUA=$(LUA_DIR)/bin/lua
50 +#LUAC=$(LUA_DIR)/bin/luac
51  
52  # If you are using the Debian packages, the following settings should be
53  # what you want.
54 -#LUA_LIBS=`pkg-config --libs lua5.1`
55 -#LUA_INCLUDES=`pkg-config --cflags lua5.1`
56 -#LUA=/usr/bin/lua5.1
57 -#LUAC=/usr/bin/luac5.1
58 +LUA_LIBS=`pkg-config --libs lua5.1`
59 +LUA_INCLUDES=`pkg-config --cflags lua5.1`
60 +LUA=`which lua5.1`
61 +LUAC=`which luac5.1`
62  
63  
64  ##
65 @@ -127,7 +127,7 @@
66  # You may uncomment this if you know that your system C libary provides
67  # asprintf and  vasprintf. (GNU libc does.) If HAS_SYSTEM_ASPRINTF is not
68  # defined, an implementation provided in libtu/sprintf_2.2/ is used. 
69 -#HAS_SYSTEM_ASPRINTF=1
70 +HAS_SYSTEM_ASPRINTF=1
71  
72  # The following setting is needed with GNU libc for clock_gettime and the
73  # monotonic clock. Other systems may not need it, or may not provide a
74 @@ -172,11 +172,11 @@
75  POSIX_SOURCE=-D_POSIX_C_SOURCE=200112L
76  
77  # Most systems
78 -#XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
79 +XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
80  # SunOS, (Irix)
81  #XOPEN_SOURCE=-D__EXTENSIONS__
82  
83 -#C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
84 +C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
85  
86  # The -DCF_HAS_VA_COPY option should allow for some optimisations, and 
87  # in some cases simply defining