3 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
7 -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
8 -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
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
26 # Unless you are creating a package conforming to some OS's standards, you
27 # probably do not want to modify the following directories:
31 # Configuration .lua files
32 -ETCDIR=$(PREFIX)/etc/ion3
34 # Some .lua files and ion-* shell scripts
35 SHAREDIR=$(PREFIX)/share/ion3
38 # Nothing at the moment
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
53 # If you have installed Lua 5.1 from the official tarball without changing
54 # paths, this should do it.
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
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
66 # If you are using the Debian packages, the following settings should be
68 -#LUA_LIBS=`pkg-config --libs lua5.1`
69 -#LUA_INCLUDES=`pkg-config --cflags lua5.1`
71 -#LUAC=`which luac5.1`
72 +LUA_LIBS=`pkg-config --libs lua5.1`
73 +LUA_INCLUDES=`pkg-config --cflags lua5.1`
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
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
92 -#POSIX_SOURCE=-D_POSIX_SOURCE
93 +POSIX_SOURCE=-D_POSIX_SOURCE
96 -#XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
97 +XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
99 #XOPEN_SOURCE=-D__EXTENSIONS__
101 -#C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
102 +C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
104 # The -DCF_HAS_VA_COPY option should allow for some optimisations, and
105 # in some cases simply defining