freebsd-ports/devel/luafilesystem/files/patch-config
Pawel Pekala 76595f7f83 - Allow build without using gmake [1]
- Regenerate patches

PR:		200586 [1]
Submitted by:	maintainer and Timothy Beyer [1]
2015-11-06 20:40:35 +00:00

31 lines
777 B
Text

--- config.orig 2015-01-15 18:58:20 UTC
+++ config
@@ -1,24 +1,24 @@
# Installation directories
# Default installation prefix
-PREFIX=/usr/local
+PREFIX=%%PREFIX%%
# System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
+LUA_LIBDIR= %%MODLIBDIR%%
# Lua includes directory
-LUA_INC= $(PREFIX)/include
+LUA_INC= %%INCDIR%%
# 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
INCS= -I$(LUA_INC)
-CFLAGS= $(WARN) $(INCS)
-CC= gcc
+CFLAGS+= $(WARN) $(INCS)
+CC?= gcc