]> git.decadent.org.uk Git - ion3.git/blob - debian/patches/201_build-config.diff
c58cdf2c8c08e6806102886619d01218a288585c
[ion3.git] / debian / patches / 201_build-config.diff
1 --- ion3.orig/system.mk
2 +++ ion3/system.mk
3 @@ -8,7 +8,7 @@
4  
5  # Installation path prefix. Unless you know what you're doing, the default
6  # of /usr/local is likely the correct choice.
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 @@ -16,7 +16,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 @@ -28,11 +28,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 @@ -59,18 +59,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 @@ -124,7 +124,7 @@
64  # You may uncomment this if you know that your system C libary provides
65  # asprintf and  vasprintf. (GNU libc does.) If HAS_SYSTEM_ASPRINTF is not
66  # defined, an implementation provided in libtu/sprintf_2.2/ is used. 
67 -#HAS_SYSTEM_ASPRINTF=1
68 +HAS_SYSTEM_ASPRINTF=1
69  
70  # The following setting is needed with GNU libc for clock_gettime and the
71  # monotonic clock. Other systems may not need it, or may not provide a
72 @@ -163,14 +163,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
90 --- ion3.orig/utils/ion-statusd/Makefile
91 +++ ion3/utils/ion-statusd/Makefile
92 @@ -15,7 +15,7 @@
93  DEFINES += -DETCDIR=\"$(ETCDIR)\" -DSHAREDIR=\"$(SHAREDIR)\" \
94             -DEXTRABINDIR=\"$(EXTRABINDIR)\" -DMODULEDIR=\"$(MODULEDIR)\" \
95            -DLCDIR=\"$(LCDIR)\" -DLOCALEDIR=\"$(LOCALEDIR)\" \
96 -           -DSTATUSD_LOCATION=\"$(EXTRABINDIR)/ion-statusd\"
97 +#           -DSTATUSD_LOCATION=\"$(EXTRABINDIR)/ion-statusd\"
98             
99  SOURCES = ion-statusd.c exec.c extlrx.c
100