/[pkgs]/devel/ClanLib06/ClanLib-0.6.5-tolua++.patch
ViewVC logotype

Contents of /devel/ClanLib06/ClanLib-0.6.5-tolua++.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Sun Sep 7 12:12:32 2008 UTC (14 months, 2 weeks ago) by jwrdegoede
Branch: MAIN
CVS Tags: F-12-split, F-10-split, F-11-split, ClanLib06-0_6_5-14_fc11, ClanLib06-0_6_5-15_fc12, ClanLib06-0_6_5-13_fc10, HEAD
Changes since 1.1: +21 -19 lines
File MIME type: text/x-patch
* Sun Sep  7 2008 Hans de Goede <hdegoede@redhat.com> 0.6.5-13
- Fix patch fuzz build failure
1 diff -up ClanLib-0.6.5/Sources/API/Lua/lua.h.bar ClanLib-0.6.5/Sources/API/Lua/lua.h
2 --- ClanLib-0.6.5/Sources/API/Lua/lua.h.bar 2001-09-22 17:52:16.000000000 +0200
3 +++ ClanLib-0.6.5/Sources/API/Lua/lua.h 2008-09-07 13:42:06.000000000 +0200
4 @@ -47,9 +47,9 @@ public:
5 //: Init
6 static void init()
7 {
8 - state=lua_open(0);
9 + state=lua_open();
10 tolua_clanbindings_open(state);
11 - lua_baselibopen(state);
12 + luaopen_base(state);
13 initialized=true;
14 }
15
16 @@ -65,32 +65,32 @@ public:
17 static int dofile (char *filename)
18 {
19 cl_assert(initialized);
20 - return lua_dofile(state,filename);
21 + return luaL_dofile(state,filename);
22 }
23
24
25 //: Open the IO library
26 - static void iolibopen(void) { lua_iolibopen(state); }
27 + static void iolibopen(void) { luaopen_io(state); }
28
29 //: Open the string library
30 static void strlibopen(void)
31 {
32 cl_assert(initialized);
33 - lua_strlibopen(state);
34 + luaopen_string(state);
35 }
36
37 //: Open the math library
38 static void mathlibopen(void)
39 {
40 cl_assert(initialized);
41 - lua_mathlibopen(state);
42 + luaopen_math(state);
43 }
44
45 //: Open the db library
46 static void dblibopen(void)
47 {
48 cl_assert(initialized);
49 - lua_dblibopen(state);
50 + luaopen_debug(state);
51 }
52 };
53 #endif
54 diff -up ClanLib-0.6.5/configure.in.bar ClanLib-0.6.5/configure.in
55 --- ClanLib-0.6.5/configure.in.bar 2008-09-07 13:39:37.000000000 +0200
56 +++ ClanLib-0.6.5/configure.in 2008-09-07 13:42:06.000000000 +0200
57 @@ -219,10 +219,8 @@ CHECK_LIB(GL,Setup/Tests/opengl.cpp, OPE
58 CHECK_LIB(mikmod,Setup/Tests/mikmod.cpp, mikmod=enabled, mikmod=disabled, [$x_libraries -lmikmod])
59 CHECK_LIB(png,Setup/Tests/png.cpp, png=enabled, png=disabled, [$x_libraries -lpng -lz])
60 CHECK_LIB(jpeg,Setup/Tests/jpeg.cpp, jpeg=enabled, jpeg=disabled, [$x_libraries -ljpeg])
61 -for lib in lua40 lua; do
62 - dnl setting back OLDLIBS is needed because of the break
63 - CHECK_LIB($lib, Setup/Tests/lua.cpp, [ lua=enabled; LIBS="$OLDLIBS"; break ], lua=disabled, [ $x_libraries ])
64 -done
65 +dnl hack force lua
66 +lua=enabled
67 CHECK_LIB(vorbis,Setup/Tests/vorbis.cpp, VORBIS=enabled, VORBIS=disabled, [$x_libraries -lvorbis])
68 for lib in Xxf86vm_pic Xxf86vm; do
69 dnl setting back OLDLIBS is needed because of the break

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2