diff options
Diffstat (limited to 'packages/uqm/files/build-opts.sh')
-rw-r--r-- | packages/uqm/files/build-opts.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/uqm/files/build-opts.sh b/packages/uqm/files/build-opts.sh index e69de29bb2..56484856ed 100644 --- a/packages/uqm/files/build-opts.sh +++ b/packages/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" |