[Lunar-commits] <moonbase> freeciv: explicit client selection in CONFIGURE
Auke Kok
sofar at foo-projects.org
Mon Feb 7 23:55:10 CET 2011
commit 165d820517f90068110836ad979bb689e0adb967
Author: Christian Krause <kizkizzbangbang at googlemail.com>
Date: Mon Feb 7 23:55:10 2011 +0100
freeciv: explicit client selection in CONFIGURE
---
games/freeciv/BUILD | 5 +++--
games/freeciv/CONFIGURE | 26 ++++++++++++++++++++++++++
games/freeciv/DEPENDS | 10 +++++++---
3 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/games/freeciv/BUILD b/games/freeciv/BUILD
index 7f22503..076c3b1 100644
--- a/games/freeciv/BUILD
+++ b/games/freeciv/BUILD
@@ -1,7 +1,8 @@
(
- sedit "s:\$datadir/locale:/usr/share/locale:" configure &&
- sedit "s:\$(datadir)/icons:/usr/share/icons:" data/icons/Makefile.in &&
+ sedit "s:\$datadir/locale:/usr/share/locale:" configure &&
+ sedit "s:\$(datadir)/icons:/usr/share/icons:" data/icons/Makefile.in &&
+
default_game_build
) > $C_FIFO 2>&1
diff --git a/games/freeciv/CONFIGURE b/games/freeciv/CONFIGURE
new file mode 100644
index 0000000..e5dda13
--- /dev/null
+++ b/games/freeciv/CONFIGURE
@@ -0,0 +1,26 @@
+mquery CLIENTS "Build clients?" y
+
+CLIST=""
+
+if [ "`get_module_config CLIENTS`" = "y" ]; then
+ mquery GTK "Build gtk+-2 client?" y
+ if [ "`get_module_config GTK`" = "y" ]; then
+ CLIST="${CLIST}gtk,"
+ fi
+
+ mquery SDL "Build SDL client?" y
+ if [ "`get_module_config SDL`" = "y" ]; then
+ CLIST="${CLIST}sdl,"
+ fi
+fi
+
+if [ $CLIST = "" ]; then
+ OPTS=$OPTS --disable-client
+else
+ OPTS="$OPTS --enable-client=$CLIST"
+fi
+
+mquery SERV "Build freeciv server (needed for solo games, too)?" \
+ y \
+ "--enable-server" \
+ "--disable-server"
diff --git a/games/freeciv/DEPENDS b/games/freeciv/DEPENDS
index 8c512e3..b810bdc 100644
--- a/games/freeciv/DEPENDS
+++ b/games/freeciv/DEPENDS
@@ -1,3 +1,7 @@
-optional_depends "SDL_image" "" "" "for SDL client"
-optional_depends "SDL_mixer" "--enable-sdl-mixer" "" "for SDL client"
-optional_depends "gtk+-2" "--enable-client=gtk2" "" "for gtk2 client"
+optional_depends "gtk+-2" "" "" "for gtk+-2 client"
+optional_depends "SDL_image" "" "" "for SDL client"
+
+optional_depends "SDL_mixer" \
+ "--enable-sdl-mixer" \
+ "" \
+ "to use SDL mixer with SDL client"
More information about the Lunar-commits
mailing list