summaryrefslogtreecommitdiff
path: root/packages/uqm/files/build-opts.sh
blob: 56484856eda1e6b1b58ec0adefbfb3710baf2401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"