pkgsrc/devel/lua-BitOp/patches/patch-Makefile
2016-08-20 12:43:40 +00:00

34 lines
930 B
Text

$NetBSD: patch-Makefile,v 1.3 2016/08/20 12:43:40 alnsn Exp $
Install tweaks.
--- Makefile.orig 2012-05-08 19:15:00.000000000 +0000
+++ Makefile
@@ -3,7 +3,7 @@
# To compile with MinGW please run: mingw32-make -f Makefile.mingw
# Include path where lua.h, luaconf.h and lauxlib.h reside:
-INCLUDES= -I/usr/local/include
+INCLUDES=
DEFINES=
# Use this for the old ARM ABI with swapped FPA doubles.
@@ -11,7 +11,7 @@ DEFINES=
#DEFINES= -DSWAPPED_DOUBLE
# Lua executable name. Used to find the install path and for testing.
-LUA= lua
+LUA= lua${_LUA_DOT_VERSION}
CC= gcc
CCOPT= -O2 -fomit-frame-pointer
@@ -39,7 +39,8 @@ $(MODSO): $(MODNAME).o
$(SOCC) $(SOLDFLAGS) -o $@ $<
install: $(MODSO)
- $(INSTALL) $< `$(INSTALLPATH) $(MODNAME)`
+ ${BSD_INSTALL_LIB} ${MODSO} ${DESTDIR}${PREFIX}/${LUA_CDIR}
+ cp -r doc/* ${DESTDIR}${PREFIX}/${LUA_DOCDIR}
test: $(MODSO)
@$(LUA) bittest.lua && echo "basic test OK"