aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-linotify/makefile.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-08-20 00:40:18 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-08-20 00:40:18 +0200
commit9f4ff4ed2cc53b09053296c5c8007bbc54d18597 (patch)
tree65ca25bcecab4a35c54d35eea964dc4498536487 /testing/lua-linotify/makefile.patch
parent86f97ec148c9b812ac99ae2b58593999a2918a56 (diff)
downloadaports-9f4ff4ed2cc53b09053296c5c8007bbc54d18597.tar.bz2
aports-9f4ff4ed2cc53b09053296c5c8007bbc54d18597.tar.xz
testing/lua-linotify: new aport
Diffstat (limited to 'testing/lua-linotify/makefile.patch')
-rw-r--r--testing/lua-linotify/makefile.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/lua-linotify/makefile.patch b/testing/lua-linotify/makefile.patch
new file mode 100644
index 0000000000..5a637f6d75
--- /dev/null
+++ b/testing/lua-linotify/makefile.patch
@@ -0,0 +1,25 @@
+--- ./Makefile.orig
++++ ./Makefile
+@@ -7,19 +7,13 @@
+ # out this line when debugging.
+ OMIT_FRAME_POINTER = -fomit-frame-pointer
+
+-# Seach for lua .pc file
+-LUAPKG_CMD = $(shell pkg-config --list-all | grep Lua | awk '{print $$1}')
+-CFLAGS = -fPIC -O3 -Wall $(shell pkg-config "$(LUAPKG_CMD)" --cflags)
+-LFLAGS = -shared $(OMIT_FRAME_POINTER)
+-INSTALL_PATH = $(shell pkg-config "$(LUAPKG_CMD)" --variable=INSTALL_CMOD)
+-
+ ## If your system doesn't have pkg-config, comment out the previous
+ ## lines and uncomment and change the following ones according to your
+ ## building enviroment.
+
+-#CFLAGS = -I/usr/include/lua5.1/ -fPIC -O3 -Wall
+-#LFLAGS = -shared $(OMIT_FRAME_POINTER)
+-#INSTALL_PATH = /usr/lib/lua/5.1
++CFLAGS = -I/usr/include/lua$(LUAVER)/ -fPIC -O3 -Wall
++LFLAGS = -shared $(OMIT_FRAME_POINTER)
++INSTALL_PATH = /usr/lib/lua/$(LUAVER)
+
+ all: $(LIBNAME)
+