summaryrefslogtreecommitdiff
path: root/packages/piccontrol/files/luafix-0.4.patch
diff options
context:
space:
mode:
authorTim 'timtim' Ellis <tim.ellis@foonas.org>2009-01-17 18:04:39 +0000
committerTim 'timtim' Ellis <tim.ellis@foonas.org>2009-01-17 18:04:39 +0000
commitdc10abcda446ad5b1628134797eddedea814f5e3 (patch)
treefd186fc03f18bba35c673527922608ef5cded413 /packages/piccontrol/files/luafix-0.4.patch
parent33172ddea53386be40b4177fce3dcdee4456e209 (diff)
piccontrol: Add piccontrol, missing dep of ts109 and ts209 (tsx09) machines - led/fan/etc control
Diffstat (limited to 'packages/piccontrol/files/luafix-0.4.patch')
-rw-r--r--packages/piccontrol/files/luafix-0.4.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/piccontrol/files/luafix-0.4.patch b/packages/piccontrol/files/luafix-0.4.patch
new file mode 100644
index 0000000000..453582cad9
--- /dev/null
+++ b/packages/piccontrol/files/luafix-0.4.patch
@@ -0,0 +1,20 @@
+diff -urN qcontrol-0.4.old//Makefile qcontrol-0.4//Makefile
+--- qcontrol-0.4.old//Makefile 2008-05-11 23:32:11.000000000 +0100
++++ qcontrol-0.4//Makefile 2008-10-25 23:53:15.820091908 +0100
+@@ -1,5 +1,5 @@
+-CFLAGS=-Os -Wall -I /usr/include/lua5.1
+-LDFLAGS=-llua5.1 -lpthread
++CFLAGS=-Os -Wall
++LDFLAGS=-lpthread -lm -ldl
+ SOURCES=piccontrol.c ts209.c evdev.c
+ OBJECTS=$(SOURCES:.c=.o)
+ EXECUTABLE=piccontrol
+@@ -7,7 +7,7 @@
+ all: $(SOURCES) $(EXECUTABLE)
+
+ $(EXECUTABLE): $(OBJECTS)
+- $(CC) $(LDFLAGS) $(OBJECTS) -o $@
++ $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
+
+ .cpp.o:
+ $(CC) $(CFLAGS) $< -o $@