diff -ru gcompris-8.4.12.orig/Makefile.am gcompris-8.4.12/Makefile.am --- gcompris-8.4.12.orig/Makefile.am 2008-12-14 15:30:56.000000000 -0500 +++ gcompris-8.4.12/Makefile.am 2009-05-31 01:04:35.000000000 -0400 @@ -17,7 +17,7 @@ endif -icondir=$(datadir)/pixmaps +icondir=/usr/share/pixmaps icon_DATA = gcompris.png gcompris-edit.png if BUILD_MINGW32 @@ -25,7 +25,7 @@ Applications_in_files = Applications_DATA = else -Applicationsdir = $(datadir)/applications/ +Applicationsdir = /usr/share/applications Applications_in_files = gcompris.desktop.in gcompris-edit.desktop.in Applications_DATA = gcompris.desktop gcompris-edit.desktop endif diff -ru gcompris-8.4.12.orig/configure.in gcompris-8.4.12/configure.in --- gcompris-8.4.12.orig/configure.in 2009-03-29 06:35:55.000000000 -0400 +++ gcompris-8.4.12/configure.in 2009-05-31 01:09:09.000000000 -0400 @@ -146,6 +146,14 @@ AC_SUBST(XML_CFLAGS) AC_SUBST(XML_LIBS) +PKG_CHECK_MODULES(LIBGNOMECANVAS, libgnomecanvas-2.0) +AC_SUBST(LIBGNOMECANVAS_CFLAGS) +AC_SUBST(LIBGNOMECANVAS_LIBS) + +PKG_CHECK_MODULES(LIBART_LGPL, libart-2.0) +AC_SUBST(LIBART_LGPL_CFLAGS) +AC_SUBST(LIBART_LGPL_LIBS) + dnl Freetype2 flags (needed for libgnomecanvas) PKG_CHECK_MODULES(FT2, freetype2) AC_SUBST(FT2_CFLAGS) @@ -225,10 +233,8 @@ USE_DEBUG="$enableval", USE_DEBUG="no") if test "x$USE_DEBUG" == "xyes" ; then AC_DEFINE_UNQUOTED(DEBUG, 1, "Enable debug messages.") - CFLAGS="$CFLAGS $OSX_CFLAGS -Wall -Werror -g" -else - CFLAGS="$CFLAGS $OSX_CFLAGS -Wall -Werror" fi +CFLAGS="$CFLAGS $OSX_CFLAGS -Wall" dnl WIN32 Specifics AC_MSG_CHECKING([for native Win32]) @@ -297,25 +303,25 @@ if test "x$platform_win32" = "xno" ; then dnl Set PACKAGE_LOCALE_DIR in config.h. - AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${myprefix}/${DATADIRNAME}/locale", [GCompris locale directory]) + AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "/usr/share/locale", [GCompris locale directory]) dnl Set PACKAGE_DATA_DIR PACKAGE_DATA_DIR="boards" AC_SUBST(PACKAGE_DATA_DIR) - AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${myprefix}/${DATADIRNAME}", [GCompris data directory]) + AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}", [GCompris data directory]) dnl Set PACKAGE_HELP_DIR - PACKAGE_HELP_DIR="${myprefix}/${DATADIRNAME}/${PACKAGE}/help" + PACKAGE_HELP_DIR="${datadir}/${PACKAGE}/help" AC_SUBST(PACKAGE_HELP_DIR) dnl Plugin Directory my_libdir=`eval echo "${libdir}"` - AC_DEFINE_UNQUOTED(PACKAGE_CLIB_DIR, "${my_libdir}", [Gcompris plugins directory]) + AC_DEFINE_UNQUOTED(PACKAGE_CLIB_DIR, "${libdir}", [Gcompris plugins directory]) plugindir=$libdir/gcompris AC_SUBST(plugindir) dnl Python plugin Directory - PYTHON_PLUGIN_DIR="${myprefix}/${DATADIRNAME}/${PACKAGE}/python" + PYTHON_PLUGIN_DIR="${datadir}/${PACKAGE}/python" AC_SUBST(PYTHON_PLUGIN_DIR) dnl System GCompris config directory @@ -545,8 +551,6 @@ src/boards/python/gcompris/utils/Makefile src/boards/python/connect4p/Makefile src/boards/python/admin/Makefile -src/libart_lgpl/Makefile -src/libgnomecanvas/Makefile po/Makefile.in docs/Makefile docs/C/Makefile diff -ru gcompris-8.4.12.orig/docs/C/Makefile.am gcompris-8.4.12/docs/C/Makefile.am --- gcompris-8.4.12.orig/docs/C/Makefile.am 2008-03-12 16:26:23.000000000 -0400 +++ gcompris-8.4.12/docs/C/Makefile.am 2009-05-31 01:09:44.000000000 -0400 @@ -10,7 +10,7 @@ overview.dia \ $(man_MANS) -gcompris_helpdir = $(datadir)/gnome/help/$(PACKAGE)/C +gcompris_helpdir = /usr/share/gnome/help/$(PACKAGE)/C all: $(doc) diff -ru gcompris-8.4.12.orig/docs/eu/Makefile.am gcompris-8.4.12/docs/eu/Makefile.am --- gcompris-8.4.12.orig/docs/eu/Makefile.am 2008-10-28 17:36:12.000000000 -0400 +++ gcompris-8.4.12/docs/eu/Makefile.am 2009-05-31 01:10:09.000000000 -0400 @@ -8,7 +8,7 @@ overview.dia \ gcompris.texi -gcompris_helpdir = $(datadir)/gnome/help/$(PACKAGE)/eu +gcompris_helpdir = /usr/share/gnome/help/$(PACKAGE)/eu all: $(doc) diff -ru gcompris-8.4.12.orig/docs/fr/Makefile.am gcompris-8.4.12/docs/fr/Makefile.am --- gcompris-8.4.12.orig/docs/fr/Makefile.am 2008-10-28 17:35:25.000000000 -0400 +++ gcompris-8.4.12/docs/fr/Makefile.am 2009-05-31 01:10:17.000000000 -0400 @@ -8,7 +8,7 @@ overview.dia \ gcompris.texi -gcompris_helpdir = $(datadir)/gnome/help/$(PACKAGE)/fr +gcompris_helpdir = /usr/share/gnome/help/$(PACKAGE)/fr all: $(doc) diff -ru gcompris-8.4.12.orig/po/Makefile.in.in gcompris-8.4.12/po/Makefile.in.in --- gcompris-8.4.12.orig/po/Makefile.in.in 2009-03-29 06:39:29.000000000 -0400 +++ gcompris-8.4.12/po/Makefile.in.in 2009-05-31 01:10:51.000000000 -0400 @@ -34,7 +34,7 @@ datarootdir = @datarootdir@ libdir = @libdir@ DATADIRNAME = @DATADIRNAME@ -itlocaledir = $(prefix)/$(DATADIRNAME)/locale +itlocaledir = /usr/share/locale subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. diff -ru gcompris-8.4.12.orig/src/Makefile.am gcompris-8.4.12/src/Makefile.am --- gcompris-8.4.12.orig/src/Makefile.am 2007-05-22 16:15:05.000000000 -0400 +++ gcompris-8.4.12/src/Makefile.am 2009-05-31 01:11:02.000000000 -0400 @@ -1,3 +1,3 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = libart_lgpl libgnomecanvas gcompris boards +SUBDIRS = gcompris boards diff -ru gcompris-8.4.12.orig/src/boards/Makefile.am gcompris-8.4.12/src/boards/Makefile.am --- gcompris-8.4.12.orig/src/boards/Makefile.am 2009-03-16 17:59:02.000000000 -0400 +++ gcompris-8.4.12/src/boards/Makefile.am 2009-05-31 01:12:45.000000000 -0400 @@ -80,6 +80,8 @@ -I$(top_srcdir)/src \ $(GCOMPRIS_CFLAGS) \ $(XML_CFLAGS) \ + $(LIBART_LGPL_CFLAGS) \ + $(LIBGNOMECANVAS_CFLAGS) \ $(PYTHON_CFLAGS) \ $(PYGTK_CFLAGS) \ $(sqlite_cflags) \ @@ -110,7 +112,7 @@ libclockgame_la_SOURCES = clockgame.c -libshapegame_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) +libshapegame_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) $(LIBART_LGPL_LIBS) $(LIBGNOMECANVAS_LIBS) libshapegame_la_LIBADD = libshapegame_la_SOURCES = shapegame.c @@ -154,12 +156,12 @@ libmemory_la_SOURCES = memory.c -libimageid_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) +libimageid_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) $(LIBART_LGPL_LIBS) $(LIBGNOMECANVAS_LIBS) libimageid_la_LIBADD = libimageid_la_SOURCES = imageid.c -libmissingletter_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) +libmissingletter_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) $(LIBART_LGPL_LIBS) $(LIBGNOMECANVAS_LIBS) libmissingletter_la_LIBADD = libmissingletter_la_SOURCES = missingletter.c missingletter_config.c @@ -208,7 +210,7 @@ libcanal_lock_la_LIBADD = libcanal_lock_la_SOURCES = canal_lock.c -libadvanced_colors_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) +libadvanced_colors_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) $(LIBART_LGPL_LIBS) $(LIBGNOMECANVAS_LIBS) libadvanced_colors_la_LIBADD = libadvanced_colors_la_SOURCES = advanced_colors.c @@ -216,7 +218,7 @@ libsuperbrain_la_LIBADD = libsuperbrain_la_SOURCES = superbrain.c -libread_colors_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) +libread_colors_la_LDFLAGS = $(shared) $(no_undefined) -module -avoid-version $(gc_libs) $(XML_LIBS) $(LIBART_LGPL_LIBS) $(LIBGNOMECANVAS_LIBS) libread_colors_la_LIBADD = libread_colors_la_SOURCES = read_colors.c diff -ru gcompris-8.4.12.orig/src/gcompris/Makefile.am gcompris-8.4.12/src/gcompris/Makefile.am --- gcompris-8.4.12.orig/src/gcompris/Makefile.am 2009-02-04 18:26:53.000000000 -0500 +++ gcompris-8.4.12/src/gcompris/Makefile.am 2009-05-31 01:13:41.000000000 -0400 @@ -51,6 +51,8 @@ $(GCOMPRIS_CFLAGS) \ $(GNOME_INCLUDEDIR) \ $(XML_CFLAGS) \ + $(LIBART_LGPL_CFLAGS) \ + $(LIBGNOMECANVAS_CFLAGS) \ -DGNOME_DISABLE_DEPRECATED \ $(sqlite_cflags) \ $(GNET_CFLAGS) \ @@ -120,12 +122,11 @@ wordlist.h gcompris_LDFLAGS = \ - -export-dynamic $(top_builddir)/src/libgnomecanvas/libgnomecanvas-2.a \ - $(top_builddir)/src/libart_lgpl/libart_lgpl_2.a + -export-dynamic gcompris_LDADD = \ - $(GCOMPRIS_LIBS) $(sqlite_ldadd) $(XML_LIBS) $(GNET_LIBS) \ + $(GCOMPRIS_LIBS) $(sqlite_ldadd) $(XML_LIBS) $(GNET_LIBS) $(LIBART_LGPL_LIBS) $(LIBGNOMECANVAS_LIBS) \ $(INTLLIBS) $(NSBUNDLE_LDFLAGS) $(XF86VM_LIBS) EXTRA_DIST = \ diff -ru gcompris-8.4.12.orig/src/gcompris/gcompris.c gcompris-8.4.12/src/gcompris/gcompris.c --- gcompris-8.4.12.orig/src/gcompris/gcompris.c 2009-02-19 16:51:20.000000000 -0500 +++ gcompris-8.4.12/src/gcompris/gcompris.c 2009-05-31 01:14:27.000000000 -0400 @@ -1158,7 +1158,7 @@ properties->package_locale_dir = gbr_find_locale_dir(PACKAGE_LOCALE_DIR); properties->package_plugin_dir = g_strconcat(pkg_clib_dir, "/gcompris", NULL); properties->package_python_plugin_dir = g_strconcat(pkg_data_dir, "/gcompris/python", NULL); - properties->system_icon_dir = g_strconcat(pkg_data_dir, "/pixmaps", NULL); + properties->system_icon_dir = g_strconcat("/usr/share", "/pixmaps", NULL); g_free(pkg_data_dir); g_free(pkg_clib_dir); }