summaryrefslogtreecommitdiff
path: root/wm/ion3-devel/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'wm/ion3-devel/patches/patch-al')
-rw-r--r--wm/ion3-devel/patches/patch-al61
1 files changed, 61 insertions, 0 deletions
diff --git a/wm/ion3-devel/patches/patch-al b/wm/ion3-devel/patches/patch-al
new file mode 100644
index 00000000000..25f04c484c4
--- /dev/null
+++ b/wm/ion3-devel/patches/patch-al
@@ -0,0 +1,61 @@
+$NetBSD: patch-al,v 1.1 2006/02/11 10:03:48 cube Exp $
+
+--- system.mk.orig 2005-08-20 13:33:57.000000000 +0200
++++ system.mk
+@@ -7,7 +7,7 @@
+ ## Installation paths
+ ##
+
+-PREFIX=/usr/local
++EXDIR= ${PREFIX}/share/examples/ion3
+
+ # Unless you are creating a package conforming to some OS's standards, you
+ # probably do not want to modify the following directories:
+@@ -19,7 +19,7 @@ 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
+@@ -47,7 +47,7 @@ LOCALEDIR=$(PREFIX)/share/locale
+ #PRELOAD_MODULES=1
+
+ # Flags to link with libdl.
+-DL_LIBS=-ldl
++DL_LIBS= ${BUILDLINK_LDADD.dl}
+
+
+ ##
+@@ -56,7 +56,7 @@ DL_LIBS=-ldl
+
+ # If you have installed Lua 5.0 from the official tarball without changing
+ # paths, this should do it.
+-LUA_DIR=/usr/local
++LUA_DIR=${PREFIX}
+ LUA_LIBS = -L$(LUA_DIR)/lib -llua -llualib
+ LUA_INCLUDES = -I$(LUA_DIR)/include
+ LUA=$(LUA_DIR)/bin/lua
+@@ -116,8 +116,7 @@ DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WOR
+ #DEFINES += -DCF_NO_LOCALE
+
+ # On some other systems you may something like this:
+-#EXTRA_LIBS += -lintl
+-#EXTRA_INCLUDES +=
++INTL_LIBS += -lintl
+
+
+ ##
+@@ -132,8 +131,8 @@ WARN= -W -Wimplicit -Wreturn-type -Wswit
+ -Wtrigraphs -Wformat -Wchar-subscripts \
+ -Wparentheses -pedantic -Wuninitialized
+
+-CFLAGS=-g -Os $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
+-LDFLAGS=-g -Os $(EXTRA_LIBS) $(LIBS)
++CFLAGS+= $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
++LDFLAGS+= $(EXTRA_LIBS) $(LIBS)
+ EXPORT_DYNAMIC=-Xlinker --export-dynamic
+
+ # The following options are mainly for development use and can be used