cgit: Added cgit 0.7.3-c502865 - A CGI for git written in C
[opensde-package-nopast.git] / lua / lualdap / config-no-compat-5.1.patch
blob1017559f2582ea275fa58ceeacf738872eb2699e
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../lualdap/config-no-compat-5.1.patch
5 # Copyright (C) 2006 - 2007 The OpenSDE Project
7 # More information can be found in the files COPYING and README.
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 # --- SDE-COPYRIGHT-NOTE-END ---
17 --- ./Makefile.orig 2006-10-09 14:22:17.000000000 +0200
18 +++ ./Makefile 2006-10-09 14:22:40.000000000 +0200
19 @@ -6,15 +6,12 @@
21 include $(CONFIG)
23 -OBJS= src/lualdap.o $(COMPAT_DIR)/compat-5.1.o
24 +OBJS= src/lualdap.o
27 src/$(LIBNAME): $(OBJS)
28 export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) $(OPENLDAP_LIB)
30 -$(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
31 - $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
33 install: src/$(LIBNAME)
34 mkdir -p $(LUA_LIBDIR)
35 cp src/$(LIBNAME) $(LUA_LIBDIR)
36 --- ./config.orig 2006-10-09 14:29:38.000000000 +0200
37 +++ ./config 2006-10-09 14:29:06.000000000 +0200
38 @@ -1,8 +1,8 @@
39 # Installation directories
40 # System's libraries directory (where binary libraries are installed)
41 -LUA_LIBDIR= /usr/local/lib/lua/5.0
42 +LUA_LIBDIR= $(shell pkg-config --variable INSTALL_CMOD lua)
43 # Lua includes directory
44 -LUA_INC= /usr/local/include
45 +LUA_INC= $(shell pkg-config --variable INSTALL_LMOD lua)
46 # OpenLDAP includes directory
47 OPENLDAP_INC= /usr/local/include
48 # OpenLDAP library (an optional directory can be specified with -L<dir>)
49 @@ -13,11 +13,10 @@
50 #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
52 LIBNAME= $T.so.$V
53 -COMPAT_DIR= ../compat/src
55 # Compilation parameters
56 WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -ansi
57 -INCS= -I$(LUA_INC) -I$(OPENLDAP_INC) -I$(COMPAT_DIR)
58 +INCS= -I$(LUA_INC) -I$(OPENLDAP_INC)
59 CFLAGS= $(WARN) $(INCS)
60 CC= gcc