aboutsummaryrefslogtreecommitdiffstats
path: root/main/highlight/lua-pkg-config.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-02-03 15:22:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-02-03 15:30:24 +0000
commitc67f89ba45728eb5684e36f8c35fea128b44a34d (patch)
tree29c1438b95ed09d87034ae95d3536530c12e17a2 /main/highlight/lua-pkg-config.patch
parent733ad24a2a2576db461ca8d4a232bcfeae946bde (diff)
downloadaports-c67f89ba45728eb5684e36f8c35fea128b44a34d.tar.bz2
aports-c67f89ba45728eb5684e36f8c35fea128b44a34d.tar.xz
main/highlight: upgrade to 3.21
Diffstat (limited to 'main/highlight/lua-pkg-config.patch')
-rw-r--r--main/highlight/lua-pkg-config.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/highlight/lua-pkg-config.patch b/main/highlight/lua-pkg-config.patch
new file mode 100644
index 0000000000..c8cb831699
--- /dev/null
+++ b/main/highlight/lua-pkg-config.patch
@@ -0,0 +1,25 @@
+--- ./src/makefile.orig
++++ ./src/makefile
+@@ -12,7 +12,7 @@
+
+ # See src/gui-qt/highlight.pro for the Qt GUI compilation options
+
+-CXX=c++
++CXX?=c++
+
+ # Added -qt4 because of Arch Linux Qt5 migration
+ QMAKE=qmake-qt4
+@@ -37,10 +37,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)