$NetBSD: patch-aa,v 1.2 2008/09/22 12:45:13 thomasklausner Exp $ --- system.mk.orig 2008-08-25 15:44:24.000000000 +0000 +++ system.mk @@ -16,11 +16,12 @@ PREFIX=/usr/local # Main binaries BINDIR=$(PREFIX)/bin # Configuration .lua files +EXAMPLEDIR=$(PREFIX)/share/examples/ion3 ETCDIR=$(PREFIX)/etc/ion3 # Some .lua files and ion-* shell scripts SHAREDIR=$(PREFIX)/share/ion3 # Manual pages -MANDIR=$(PREFIX)/share/man +MANDIR=$(PREFIX)/man # Some documents DOCDIR=$(PREFIX)/share/doc/ion3 # Nothing at the moment @@ -62,8 +63,8 @@ DL_LIBS=-ldl # If you have installed Lua 5.1 from the official tarball without changing # paths, this should do it. -LUA_DIR=/usr/local -LUA_LIBS = -L$(LUA_DIR)/lib -llua +LUA_DIR=$(PREFIX) +LUA_LIBS = -R$(LUA_DIR)/lib -L$(LUA_DIR)/lib -llua LUA_INCLUDES = -I$(LUA_DIR)/include LUA=$(LUA_DIR)/bin/lua LUAC=$(LUA_DIR)/bin/luac @@ -85,7 +86,7 @@ X11_PREFIX=/usr/X11R6 # SunOS/Solaris #X11_PREFIX=/usr/openwin -X11_LIBS=-L$(X11_PREFIX)/lib -lX11 -lXext +X11_LIBS=-R$(X11_PREFIX)/lib -L$(X11_PREFIX)/lib -lX11 -lXext X11_INCLUDES=-I$(X11_PREFIX)/include # XFree86 libraries up to 4.3.0 have a bug that can cause a segfault. @@ -113,7 +114,7 @@ DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WOR #DEFINES += -DCF_NO_LOCALE -DCF_NO_GETTEXT # On some other systems you may need to explicitly link against libintl. -#EXTRA_LIBS += -lintl +EXTRA_LIBS += -lintl # You may also need to give the location of its headers. The following # should work on Mac OS X (which needs the above option as well) with # macports. @@ -127,7 +128,7 @@ DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WOR # You may uncomment this if you know that your system C libary provides # asprintf and vasprintf. (GNU libc does.) If HAS_SYSTEM_ASPRINTF is not # defined, an implementation provided in libtu/sprintf_2.2/ is used. -#HAS_SYSTEM_ASPRINTF=1 +HAS_SYSTEM_ASPRINTF=1 # The following setting is needed with GNU libc for clock_gettime and the # monotonic clock. Other systems may not need it, or may not provide a