Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

podofo: fix build with lua 5.2.2

  • Loading branch information...
commit 3e23dc9712fa251e4800e6a2c8025f36c13e3e3b 1 parent ae4afa2
@v4hn v4hn authored
Showing with 11 additions and 12 deletions.
  1. +11 −12 doc-tools/podofo/BUILD
View
23 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
Please sign in to comment.
Something went wrong with that request. Please try again.