[Lunar-commits] <moonbase> qemu: created a CONFIGURE script to configure the archs

Samuel samuel.verstraete at gmail.com
Wed Dec 9 11:52:21 CET 2009


commit 227d9dabcb09266b67fb55f80f0fce971c62e37d
Author: Samuel <samuel.verstraete at gmail.com>
Date:   Wed Mar 11 15:01:07 2009 +0100

    qemu: created a CONFIGURE script to configure the archs
---
 devel/qemu/BUILD     |    9 ++++-----
 devel/qemu/CONFIGURE |   41 +++++++++++++++++++++++++++++++++++++++++
 devel/qemu/DEPENDS   |    2 +-
 3 files changed, 46 insertions(+), 6 deletions(-)

diff --git a/devel/qemu/BUILD b/devel/qemu/BUILD
index 1a48a20..f519e12 100644
--- a/devel/qemu/BUILD
+++ b/devel/qemu/BUILD
@@ -1,12 +1,11 @@
 (
-
   unset CFLAGS
 
   OPTS+=" --extra-ldflags=-L/usr/X11R6/lib"
-  OTPS+=" --target-list=i386-softmmu"
-  if [ ! -e /usr/X11R6/lib/libX11.a ]; then
-    OPTS+=" --target-list=i386-user,i386-softmmu,arm-user,sparc-user,ppc-user"
-  fi
+  for i in $TARGETLIST; do
+    echo $i;
+  done &&
+  OPTS+=" --target-list=$(echo $TARGETLIST | sed s/\ /,/g)"
 
   ./configure --prefix=/usr \
                $OPTS         &&
diff --git a/devel/qemu/CONFIGURE b/devel/qemu/CONFIGURE
new file mode 100644
index 0000000..6297a33
--- /dev/null
+++ b/devel/qemu/CONFIGURE
@@ -0,0 +1,41 @@
+SUPPORTED_TARGETS="i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user"
+
+
+make_targets_checklist() {
+  for target in $SUPPORTED_TARGETS; do
+    title=$target
+    echo "\"$target\" \"$title\" \"off\" "
+  done
+}
+
+select_targets() {
+  BACKTITLE="Qemu Target Configuration"
+      TITLE="Target Selection"
+       HELP="Select targes you want to build"
+  make_targets_checklist | xargs \
+  dialog --backtitle "$BACKTITLE" \
+         --title     "$TITLE"     \
+         --stdout                 \
+         --separate-output        \
+         --checklist "$HELP"      \
+         0 0 0
+}
+
+if ! grep -q CONFIGURED $MODULE_CONFIG; then
+  if grep -q "TARGETLIST=" $MODULE_CONFIG; then
+    message "Selecting targets is optional"
+  fi
+
+  if query "Would you like to select drivers? (if not selected, all locales will be installed)" y; then
+    unpack_localedata
+
+    TARGETLIST=`select_targets`
+    TEMP=`grep -v "TARGETLIST="             $MODULE_CONFIG`
+    echo "$TEMP"                             > $MODULE_CONFIG
+    echo "TARGETLIST=\"$TARGETLIST\"" >> $MODULE_CONFIG
+
+  fi
+
+  echo "OPTS=\"\$OPTS $OPTS\"" >> $MODULE_CONFIG
+  echo "CONFIGURED=y"          >> $MODULE_CONFIG
+fi
diff --git a/devel/qemu/DEPENDS b/devel/qemu/DEPENDS
index 87c9e00..54eede1 100644
--- a/devel/qemu/DEPENDS
+++ b/devel/qemu/DEPENDS
@@ -1,3 +1,3 @@
 depends  autoconf
-optional_depends  SDL  ""  "" "for gui qemu support"
+optional_depends  SDL  ""  "--disable-sdl --disable-gfx-check" "for gui qemu support"
 optional_depends  alsa-lib  ""  "" "for ALSA sound support"


More information about the Lunar-commits mailing list