updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / luacrypto / luacrypto.patch
bloba8f4220bedd63eb8896f488076dd50fb8e4444a4
1 diff -urN luacrypto-0.2.0-orig/Makefile luacrypto-0.2.0/Makefile
2 --- luacrypto-0.2.0-orig/Makefile 2009-07-01 14:31:57.174021272 -0400
3 +++ luacrypto-0.2.0/Makefile 2009-07-01 15:09:01.583060303 -0400
4 @@ -3,9 +3,8 @@
5 CONFIG= ./config
7 include $(CONFIG)
9 -ifeq "$(LUA_VERSION_NUM)" "500"
10 -COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
11 +ifeq "$(LUA_VERSION_NUM)" "500"
12 +COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
13 endif
14 OBJS= src/$T.o $(COMPAT_O)
15 SRCS= src/$T.h src/$T.c
16 @@ -19,9 +18,9 @@
17 $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
19 install: src/$(LIBNAME)
20 - mkdir -p $(LUA_LIBDIR)
21 - cp src/$(LIBNAME) $(LUA_LIBDIR)
22 - cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
23 + mkdir -p $(DESTDIR)$(LUA_LIBDIR)
24 + cp src/$(LIBNAME) $(DESTDIR)$(LUA_LIBDIR)/crypto.so.$V
25 + cd $(DESTDIR)$(LUA_LIBDIR); ln -f -s crypto.so.$V crypto.so
27 clean:
28 rm -f src/$(LIBNAME) $(OBJS) $(COMPAT_O)
29 diff -urN luacrypto-0.2.0-orig/config luacrypto-0.2.0/config
30 --- luacrypto-0.2.0-orig/config 2009-07-01 14:31:57.174021272 -0400
31 +++ luacrypto-0.2.0/config 2009-07-01 14:33:33.129925724 -0400
32 @@ -1,20 +1,19 @@
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= /usr/lib/lua/5.1
37 # Lua includes directory
38 -LUA_INC= /usr/local/include
39 +LUA_INC= /usr/include
41 # OS dependent
42 LIB_OPTION= -shared #for Linux
43 #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
45 -# Lua version number (first and second digits of target version)
46 -LUA_VERSION_NUM= 500
47 +# Lua version number (first and second digits of target version)
48 +LUA_VERSION_NUM= 510
49 LIBNAME= $T.so.$V
50 COMPAT_DIR= ../compat/src
52 -OPENSSL_LIBS= -L/usr/local/openssl/lib -lcrypto -lssl
53 -OPENSSL_INCS= -I/usr/local/openssl/include
54 +OPENSSL_LIBS= -L/usr/lib -lcrypto -lssl
55 +OPENSSL_INCS= -I/usr/include/openssl
57 # Compilation directives
58 WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings