[Lunar-commits] <moonbase-other> podofo: fix build with lua 5.2.2

v4hn me at v4hn.de
Thu May 2 02:08:31 CEST 2013


commit 3e23dc9712fa251e4800e6a2c8025f36c13e3e3b
Author: v4hn <me at v4hn.de>
Date: Wed, 01 May 2013 17:08:04 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/3e23dc9712fa251e4800e6a2c8025f36c13e3e3b

podofo: fix build with lua 5.2.2
---
  doc-tools/podofo/BUILD | +11/-12   
  1 file changed, 11 insertions(+), 12 deletions(-)

--- a/doc-tools/podofo/BUILD
+++ b/doc-tools/podofo/BUILD
@@ -1,17 +1,16 @@
-(
+# lua 5.2 removed deprecated functions
+sedit "s:lua_open:luaL_newstate:; s:luaL_getn:luaL_len:" tools/podofocolor/luaconverter.cpp &&
+sedit "s:lua_open:luaL_newstate:"                        tools/podofoimpose/planreader_lua.cpp &&
 
-  . /etc/profile.d/qt4.rc &&
+. /etc/profile.d/qt4.rc &&
 
-  LDFLAGS="-ldl" &&
+LDFLAGS+=" -ldl" &&
 
-  if [ `arch` == "x86_64" ] ; then
-    OPTS+=" -DWANT_LIB64=ON" &&
-    CFLAGS+=" -fPIC"
-  fi &&
+if [ `arch` == "x86_64" ] ; then
+  OPTS+=" -DWANT_LIB64=ON" &&
+  CFLAGS+=" -fPIC"
+fi &&
 
-  OPTS+=" -DPODOFO_BUILD_SHARED=ON" &&
+OPTS+=" -DPODOFO_BUILD_SHARED=ON" &&
 
-  default_cmake_build
-
-) > $C_FIFO 2>&1
- 
+default_cmake_build




More information about the Lunar-commits mailing list