OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.2 KiB

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