mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
Allow gcompris to find its prefix without binary relocation enabled.
Reported by: Ernest Sales <ersaloz@gmail.com>
This commit is contained in:
parent
6b1aa59554
commit
3bff7559dd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218036
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= gcompris
|
||||
DISTVERSION= 8.4.5
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= games gnome
|
||||
MASTER_SITES= SF/gcompris
|
||||
|
||||
@ -54,6 +54,8 @@ CONFIGURE_ENV+= DISPLAY="localhost:1001"
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
${WRKSRC}/src/gcompris/gcompris.c
|
||||
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|-DGNOME_DISABLE_DEPRECATED||g'
|
||||
|
||||
|
16
games/gcompris/files/patch-src_gcompris_gcompris.c
Normal file
16
games/gcompris/files/patch-src_gcompris_gcompris.c
Normal file
@ -0,0 +1,16 @@
|
||||
--- src/gcompris/gcompris.c.orig 2008-08-04 14:21:07.000000000 -0400
|
||||
+++ src/gcompris/gcompris.c 2008-08-04 14:21:23.000000000 -0400
|
||||
@@ -1127,11 +1127,11 @@ static void load_properties ()
|
||||
#ifdef NSBUNDLE
|
||||
exec_prefix = gcompris_nsbundle_resource ();
|
||||
#else
|
||||
- exec_prefix = gbr_find_exe_dir("");
|
||||
+ exec_prefix = gbr_find_exe_dir("%%PREFIX%%");
|
||||
#endif
|
||||
g_warning("exec_prefix %s\n", 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);
|
Loading…
Reference in New Issue
Block a user