diff options
Diffstat (limited to 'recipes/uqm/files/build-opts.sh')
-rw-r--r-- | recipes/uqm/files/build-opts.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes/uqm/files/build-opts.sh b/recipes/uqm/files/build-opts.sh new file mode 100644 index 0000000000..56484856ed --- /dev/null +++ b/recipes/uqm/files/build-opts.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Shamelessly stolen from gentoo ebuild +cat <<-EOF > config.state +CHOICE_debug_VALUE='nodebug' +CHOICE_graphics_VALUE='pure' +CHOICE_sound_VALUE='mixsdl' +INPUT_install_prefix_VALUE='$1' +INPUT_install_bindir_VALUE='$2' +INPUT_install_libdir_VALUE='$3' +EOF + +# Take out the read so we can be non-interactive. +sed -i \ + -e '/read CHOICE/d' build/unix/menu_functions || \ + echo "sed menu_functions failed" |