144e2930d7
use FLAVOR=lua52 to use lua 5.2 with these ports.
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
$OpenBSD: patch-config,v 1.8 2012/07/10 15:22:44 jasper Exp $
|
|
--- config.orig Tue Oct 20 22:54:35 2009
|
|
+++ config Sun Jul 8 19:36:28 2012
|
|
@@ -1,24 +1,24 @@
|
|
# Installation directories
|
|
|
|
# Default installation prefix
|
|
-PREFIX=/usr/local
|
|
+#PREFIX=/usr/local
|
|
|
|
# System's libraries directory (where binary libraries are installed)
|
|
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
|
|
+LUA_LIBDIR?= $(LOCALBASE)/lib/lua/5.1
|
|
|
|
# Lua includes directory
|
|
-LUA_INC= $(PREFIX)/include
|
|
+LUA_INC?= $(LOCALBASE)/include
|
|
|
|
# OS dependent
|
|
LIB_OPTION= -shared #for Linux
|
|
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
|
|
|
|
-LIBNAME= $T.so.$V
|
|
+LIBNAME= $T.so
|
|
|
|
# Compilation directives
|
|
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
|
|
+#WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
|
|
INCS= -I$(LUA_INC)
|
|
-CFLAGS= $(WARN) $(INCS)
|
|
-CC= gcc
|
|
+CFLAGS+= -fPIC $(INCS)
|
|
+#CC= gcc
|
|
|
|
# $Id: patch-config,v 1.8 2012/07/10 15:22:44 jasper Exp $
|