Dash:
[t2.git] / package / lua / lualdap / config-no-compat-5.1.patch
blob0f243f079d9281598ef18d544e32f6254844329e
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../lualdap/config-no-compat-5.1.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -ruN lualdap-1.0-vanilla/Makefile lualdap-1.0/Makefile
18 --- lualdap-1.0-vanilla/Makefile 2005-06-10 15:23:14.000000000 +0200
19 +++ lualdap-1.0/Makefile 2006-03-14 19:01:03.000000000 +0100
20 @@ -6,14 +6,11 @@
22 include $(CONFIG)
24 -OBJS= src/lualdap.o $(COMPAT_DIR)/compat-5.1.o
25 +OBJS= src/lualdap.o
28 src/$(LIBNAME): $(OBJS)
29 - export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) -lldap
31 -$(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
32 - $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
33 + $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)
35 install: src/$(LIBNAME)
36 mkdir -p $(LUA_LIBDIR)
37 diff -ruN lualdap-1.0-vanilla/config lualdap-1.0/config
38 --- lualdap-1.0-vanilla/config 2005-06-10 15:23:14.000000000 +0200
39 +++ lualdap-1.0/config 2006-03-14 18:45:46.000000000 +0100
40 @@ -1,22 +1,22 @@
41 # Installation directories
42 # System's libraries directory (where binary libraries are installed)
43 -LUA_LIBDIR= /usr/local/lib/lua/5.0
44 +# LUA_LIBDIR= /usr/local/lib/lua/5.0
45 # Lua includes directory
46 -LUA_INC= /usr/local/include/lua5
47 +# LUA_INC= /usr/local/include/lua5
48 # OpenLDAP includes directory
49 -OPENLDAP_INC= /usr/local/include
50 +# OPENLDAP_INC= /usr/local/include
52 # OS dependent
53 -LIB_OPTION= -shared #for Linux
54 -#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
55 +# LIB_OPTION= -shared #for Linux
56 +# LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
58 LIBNAME= lib$T-$V.so
59 -COMPAT_DIR= ../compat/src
60 +# COMPAT_DIR= ../compat/src
62 # Compilation parameters
63 -WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -ansi
64 -INCS= -I$(LUA_INC) -I$(OPENLDAP_INC) -I$(COMPAT_DIR)
65 -CFLAGS= $(WARN) $(INCS)
66 -CC= gcc
67 +# WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -ansi
68 +# INCS= -I$(LUA_INC) -I$(OPENLDAP_INC) -I$(COMPAT_DIR)
69 +# CFLAGS= $(WARN) $(INCS)
70 +# CC= gcc
72 # $Id: config,v 1.2 2005/06/10 13:23:14 tomas Exp $
73 diff -ruN lualdap-1.0-vanilla/src/lualdap.c lualdap-1.0/src/lualdap.c
74 --- lualdap-1.0-vanilla/src/lualdap.c 2005-05-23 16:35:11.000000000 +0200
75 +++ lualdap-1.0/src/lualdap.c 2006-03-14 18:46:29.000000000 +0100
76 @@ -16,7 +16,6 @@
78 #include "lua.h"
79 #include "lauxlib.h"
80 -#include "compat-5.1.h"
83 #define LUALDAP_PREFIX "LuaLDAP: "