openbsd-ports/security/luacrypto/patches/patch-config
jasper bc72675e29 - correctly update to 0.2.0
with gleydson soares
2011-04-18 18:12:47 +00:00

38 lines
1.3 KiB
Plaintext

$OpenBSD: patch-config,v 1.2 2011/04/18 18:12:47 jasper Exp $
--- config.orig Mon Apr 18 20:10:20 2011
+++ config Mon Apr 18 20:11:05 2011
@@ -1,23 +1,23 @@
# Installation directories
# System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= /usr/local/lib/lua/5.0
+LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
# Lua includes directory
-LUA_INC= /usr/local/include
+LUA_INC= $(PREFIX)/include
# OS dependent
LIB_OPTION= -shared #for Linux
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
# Lua version number (first and second digits of target version)
-LUA_VERSION_NUM= 500
-LIBNAME= $T.so.$V
+LUA_VERSION_NUM= 510
+LIBNAME= crypto.so
COMPAT_DIR= ../compat/src
-OPENSSL_LIBS= -L/usr/local/openssl/lib -lcrypto -lssl
-OPENSSL_INCS= -I/usr/local/openssl/include
+OPENSSL_LIBS= -lcrypto -lssl
+OPENSSL_INCS= -I/usr/include/openssl
# Compilation directives
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
-INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
-CFLAGS= $(WARN) $(OPENSSL_INCS) $(INCS)
-CC= gcc
+#WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
+INCS= -I$(LUA_INC)
+CFLAGS+= -Wall $(INCS)
+#CC= gcc