freebsd-ports/devel/luafilesystem/files/patch-Makefile
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

24 lines
600 B
Text

--- Makefile.orig 2015-01-15 18:58:20 UTC
+++ Makefile
@@ -11,15 +11,18 @@ OBJS= src/$T.o
lib: src/lfs.so
+$(OBJS): $(SRCS)
+ $(CC) $(CFLAGS) -c $(SRCS) -o $(OBJS)
+
src/lfs.so: $(OBJS)
- MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
+ $(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
test: lib
LUA_CPATH=./src/?.so lua tests/test.lua
install:
- mkdir -p $(LUA_LIBDIR)
- cp src/lfs.so $(LUA_LIBDIR)
+ mkdir -p $(DESTDIR)$(LUA_LIBDIR)
+ cp src/lfs.so $(DESTDIR)$(LUA_LIBDIR)
clean:
rm -f src/lfs.so $(OBJS)