aports/main/highlight/lua.patch
André Klitzing 96c60a9fd6 main/highlight: upgrade to 3.35
* Modernize abuild
* Update pkg-config patch
2017-03-07 11:36:22 +00:00

28 lines
604 B
Diff

--- a/src/makefile
+++ b/src/makefile
@@ -13,7 +13,8 @@
# See src/gui-qt/highlight.pro for the Qt GUI compilation options
#CXX=clang++
-CXX=g++
+#CXX=g++
+CXX ?= c++
# was: qmake-qt5
QMAKE=qmake
@@ -38,11 +39,11 @@
# If Lua 5.2 is not default on your system yet you have to
# use lua5.1 in the pkg-config calls
-
-LUA_CFLAGS=$(shell pkg-config --cflags lua)
+LUAPC ?= lua
+LUA_CFLAGS=$(shell pkg-config --cflags $(LUAPC))
# default lua lib
-LUA_LIBS=$(shell pkg-config --libs lua)
+LUA_LIBS=$(shell pkg-config --libs $(LUAPC))
# luajit lib
# LUA_LIBS=$(shell pkg-config --libs luajit)