#39148 closed defect (fixed)
podofo 0.9.2 fails to compile against lua
Reported by: | ChristianFrisson (Christian Frisson) | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | podofo |
Description
Hi,
Here's the related podofo ticket: http://sourceforge.net/apps/mantisbt/podofo/view.php?id=58
There is no CMake option to deactivate lua support for podofo.
Adding the following code in the podofo Portfile solves the issue, worked for me on OSX 10.8.3:
pre-configure { system "sed -i '' -e 's:lua_open:luaL_newstate:' ${worksrcpath}/tools/podofocolor/luaconverter.cpp" system "sed -i '' -e 's:luaL_getn:luaL_len:' ${worksrcpath}/tools/podofocolor/luaconverter.cpp" system "sed -i '' -e 's:lua_open:luaL_newstate:' ${worksrcpath}/tools/podofoimpose/planreader_lua.cpp" }
Best regards, Christian
Change History (2)
comment:1 Changed 11 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to devans@… |
---|
comment:2 Changed 11 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix committed as a patch in r107591. Thanks.
FYI, the MacPorts Tcl extension reinplace can be used to implement the technique that you suggest without making any system calls.
Note: See
TracTickets for help on using
tickets.
In the future, please Cc the port maintainer(s).