void-packages/srcpkgs/rdis-git/patches/luajit_version.patch

61 lines
1.8 KiB
Diff

fix luajit version checks (for 2.1 support)
--- src/Makefile
+++ src/Makefile
@@ -1,7 +1,7 @@
OBJS=object.o rdg.o rdg_node.o rdis.o serialize.o settings.o util.o wqueue.o
CCFLAGS=-Wall -O2 -g
-INCLUDE=`pkg-config --cflags cairo` `pkg-config --cflags gtk+-3.0` \
+INCLUDE=`pkg-config --cflags cairo` `pkg-config --cflags gtk+-3.0 luajit` \
-iquotecontainer/ -iquoteloader/ -iquote./ -iquotescript/ -iquotegui/ -iquoteredis/
LIB=`pkg-config --libs gtk+-3.0 cairo` -ludis86 -lm -lfontconfig -lpthread \
-ljansson -lluajit-5.1 -lcrypto
--- src/gui/Makefile
+++ src/gui/Makefile
@@ -2,7 +2,7 @@ OBJS = hexwindow.o funcwindow.o main.o refwindow.o rdgwindow.o \
rdiswindow.o gui.o
CCFLAGS=-Wall -O2 -g
-INCLUDE=`pkg-config --cflags gtk+-3.0` \
+INCLUDE=`pkg-config --cflags gtk+-3.0 luajit` \
-iquote../ -iquote../container -iquote../loader -iquote../script
all : $(OBJS)
--- src/loader/Makefile
+++ src/loader/Makefile
@@ -1,7 +1,7 @@
OBJS=elf32.o elf64.o x86.o x8664.o loader.o pe.o lua.o dummy.o
CCFLAGS=-Wall -O2 -g
-INCLUDE=`pkg-config --cflags cairo` \
+INCLUDE=`pkg-config --cflags cairo luajit` \
-iquote../container -iquote../ -iquote../script -iquote./
all : $(OBJS)
--- src/script/Makefile
+++ src/script/Makefile
@@ -1,7 +1,7 @@
OBJS=rdis_lua.o rl_redis_x86.o
CCFLAGS=-Wall -O2 -g
-INCLUDE=`pkg-config --cflags cairo gtk+-3.0` \
+INCLUDE=`pkg-config --cflags cairo gtk+-3.0 luajit` \
-iquote../ -iquote../container -iquote../loader -iquote./ -iquote../redis -iquote../gui
all : $(OBJS)
--- src/script/rdis_lua.h
+++ src/script/rdis_lua.h
@@ -1,9 +1,9 @@
#ifndef rdis_lua_HEADER
#define rdis_lua_HEADER
-#include <luajit-2.0/lua.h>
-#include <luajit-2.0/lauxlib.h>
-#include <luajit-2.0/lualib.h>
+#include <lua.h>
+#include <lauxlib.h>
+#include <lualib.h>
#include "instruction.h"
#include "rdg.h"