freebsd-ports/devel/lua-lpeg/files/patch-makefile
Sunpoet Po-Chuan Hsieh cc56c5050b - Allow build with lua53
- Remove superfluous slash after STAGEDIR
- Use bsd.port.mk instead of bsd.port.pre.mk + bsd.port.post.mk
- Simplify Makefile

PR:		200406
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 4 weeks)
2015-06-21 17:12:27 +00:00

20 lines
453 B
Text

--- makefile.orig 2013-04-12 16:31:19 UTC
+++ makefile
@@ -1,5 +1,5 @@
LIBNAME = lpeg
-LUADIR = /usr/include/lua5.1/
+LUADIR ?= /usr/include/lua5.1/
COPT = -O2
# COPT = -DLPEG_DEBUG -g
@@ -22,8 +22,8 @@ CWARNS = -Wall -Wextra -pedantic \
# -Wunreachable-code \
-CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC
-CC = gcc
+CFLAGS += $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC
+CC ?= gcc
FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o