summaryrefslogtreecommitdiffstats
path: root/lua-forge
diff options
context:
space:
mode:
authorVlad Glagolev2018-05-24 16:09:25 -0400
committerVlad Glagolev2018-05-24 16:09:25 -0400
commitc172937ae9e33efa13fddc475085bd8bd0b0003c (patch)
treed1d0294efad92c96e068fba1a2cd052eef4b2539 /lua-forge
parent17c372887919f3397c6dfbaa55c1ad38ecb73274 (diff)
lua-imlib2: Lua 5.2/5.3 compat
Diffstat (limited to 'lua-forge')
-rwxr-xr-xlua-forge/lua-imlib2/BUILD2
-rwxr-xr-xlua-forge/lua-imlib2/DEPENDS2
-rw-r--r--lua-forge/lua-imlib2/HISTORY5
-rwxr-xr-xlua-forge/lua-imlib2/PRE_BUILD6
4 files changed, 13 insertions, 2 deletions
diff --git a/lua-forge/lua-imlib2/BUILD b/lua-forge/lua-imlib2/BUILD
index 75a19fdb87..1a92fc6308 100755
--- a/lua-forge/lua-imlib2/BUILD
+++ b/lua-forge/lua-imlib2/BUILD
@@ -1 +1 @@
-make && make doc
+make CFLAGS="${CFLAGS}" && make doc
diff --git a/lua-forge/lua-imlib2/DEPENDS b/lua-forge/lua-imlib2/DEPENDS
index 51ea55fc2d..9807e618c3 100755
--- a/lua-forge/lua-imlib2/DEPENDS
+++ b/lua-forge/lua-imlib2/DEPENDS
@@ -1,2 +1,2 @@
-depends lua51 &&
+depends LUA &&
depends imlib2
diff --git a/lua-forge/lua-imlib2/HISTORY b/lua-forge/lua-imlib2/HISTORY
index aead684b3d..e0bf55c21a 100644
--- a/lua-forge/lua-imlib2/HISTORY
+++ b/lua-forge/lua-imlib2/HISTORY
@@ -1,3 +1,8 @@
+2018-05-24 Vlad Glagolev <stealth@sourcemage.org>
+ * DEPENDS: lua51 -> LUA
+ * BUILD: respect CFLAGS
+ * PRE_BUILD: added, to fix build with Lua 5.2/5.3
+
2011-12-17 Vlad Glagolev <stealth@sourcemage.org>
* DEPENDS: lua -> lua51
diff --git a/lua-forge/lua-imlib2/PRE_BUILD b/lua-forge/lua-imlib2/PRE_BUILD
new file mode 100755
index 0000000000..cbcae22ac9
--- /dev/null
+++ b/lua-forge/lua-imlib2/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+if [ "$(get_spell_provider ${SPELL} LUA)" == "lua" ]; then
+ sedit "s:loadstring:load:" doc/extract_doc.lua
+fi