freebsd-ports/games/gcompris/files/patch-src_gcompris_gcompris.c
Joe Marcus Clarke ce85d9b96f Update to 8.4.6.
2008-08-15 06:16:12 +00:00

16 lines
656 B
C

--- src/gcompris/gcompris.c.orig 2008-07-04 17:35:40.000000000 -0400
+++ src/gcompris/gcompris.c 2008-08-15 02:05:47.000000000 -0400
@@ -1127,11 +1127,11 @@ static void load_properties ()
#ifdef NSBUNDLE
exec_prefix = gcompris_nsbundle_resource ();
#else
- exec_prefix = gbr_find_exe_dir(NULL);
+ exec_prefix = gbr_find_exe_dir("%%PREFIX%%");
#endif
g_warning("exec_prefix %s\n", (exec_prefix==NULL ? "NONE" : exec_prefix));
- prefix_dir = gbr_find_prefix(NULL);
+ prefix_dir = gbr_find_prefix("%%PREFIX%%");
/* Check if we are in the source code (developper usage) */
tmpstr = g_strconcat(prefix_dir, "/gcompris/gcompris.c", NULL);