[gnome-games] build: Fix gtk version req to the minimal values



commit 4c7caab401d148658253a0ec6fd802ddeb0fdd22
Author: Christian Persch <chpe gnome org>
Date:   Fri Jul 3 23:34:57 2009 +0200

    build: Fix gtk version req to the minimal values
    
    Aisleriot builds using gtk 2.8, so only require 2.16 if any other games
    are built as well.

 configure.in |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/configure.in b/configure.in
index 26f7872..8d271cd 100644
--- a/configure.in
+++ b/configure.in
@@ -118,6 +118,7 @@ want_sound=no
 allow_gnuchess=no
 allow_smclient=no
 disallow_hildon=no
+require_gtk_2_16=no
 
 for game in $gamelist; do
   case $game in
@@ -164,6 +165,10 @@ for game in $gamelist; do
     gnometris|lightsoff) need_clutter=yes ;;
     *) ;;
   esac
+  case $game in
+    aisleriot) ;;
+    *) require_gtk_2_16=yes ;;
+  esac
 done
 
 # Locate various programs
@@ -501,11 +506,11 @@ AM_CONDITIONAL([ENABLE_CARD_THEMES_INSTALLER],[test "$enable_card_themes_install
 PYGTK_REQUIRED=2.14.0
 
 if test "$with_platform" = "hildon" -a "$with_platform_variant" = "maemo3"; then
-GTK_REQUIRED=2.6.0
-elif test "$with_platform" = "hildon"; then
-GTK_REQUIRED=2.10.0
+  GTK_REQUIRED=2.6.0
+elif test "$require_gtk_2_16" = "yes"; then
+  GTK_REQUIRED=2.16.0
 else
-GTK_REQUIRED=2.16.0
+  GTK_REQUIRED=2.8.0
 fi
 
 GCONF_REQUIRED=2.0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]