freebsd-ports/devel/lua-rds-parser/files/patch-Makefile
Kurt Jaeger fb715a41ce New (resurrected) port: devel/lua-rds-parser
The lua-rds-parser can be used to parse the Resty-DBD-Stream formatted data
generated by drizzle and/or postgres nginx modules into lua data structures.
In the past, we have to use JSON as the intermediate data format which is
quite inefficient in terms of both memory and CPU time.

To maximize speed and minimize memory footprint, this library is implemented
in pure C.

WWW: https://github.com/agentzh/lua-rds-parser/

PR:		191526
Submitted by:	arcade@b1t.name
2018-05-24 18:49:17 +00:00

26 lines
796 B
Text

--- Makefile.orig 2015-10-30 14:05:55 UTC
+++ Makefile
@@ -16,12 +16,12 @@ LDFLAGS += -shared
#PREFIX ?= /opt/local
#LDFLAGS += -bundle -undefined dynamic_lookup
-LUA_INCLUDE_DIR ?= $(PREFIX)/include
+LUA_INCLUDE_DIR ?= $(PREFIX)/include/lua51
LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
#CFLAGS ?= -g -Wall -pedantic -fno-inline
CFLAGS ?= -g -O -Wall
-override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR)
+CFLAGS += -fpic -I$(LUA_INCLUDE_DIR)
INSTALL ?= install
@@ -38,7 +38,7 @@ src/rds_parser.o: src/ddebug.h src/rds_p
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(BUILD_CFLAGS) -o $@ $<
parser.so: src/rds_parser.o
- $(CC) $(LDFLAGS) -o $@ $^
+ $(CC) $(LDFLAGS) -o $@ src/rds_parser.o
install:
$(INSTALL) -d $(DESTDIR)$(LUA_LIB_DIR)/rds