patch-make_config_sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $OpenBSD: patch-make_config_sh,v 1.1.1.1 2009/10/15 14:35:29 phessler Exp $
  2. --- make/config.sh.orig Sun Aug 7 18:18:40 2005
  3. +++ make/config.sh Tue Jun 2 14:16:31 2009
  4. @@ -5,33 +5,7 @@
  5. # should be run indirectly through the 'make config' target (or the 'make'
  6. # target the first time).
  7. -if [ ! -f make/dumbask ]; then
  8. - echo "You should not be running this directly! Use 'make' or 'make config'."
  9. - exit
  10. -fi
  11. -
  12. -echo 'include make/unix.inc' > make/config.tmp
  13. -
  14. -echo 'ALL_TARGETS := core core-examples core-headers' >> make/config.tmp
  15. -
  16. -if make/dumbask 'Would you like support for Allegro (Y/N)? ' YN; then
  17. - echo 'ALL_TARGETS += allegro allegro-examples allegro-headers' >> make/config.tmp
  18. -fi
  19. -
  20. -
  21. -if [ ! -z $DEFAULT_PREFIX ]; then
  22. -echo "Please specify an installation prefix (default $DEFAULT_PREFIX)."
  23. -echo -n '> '
  24. -read PREFIX
  25. -if [ -z $PREFIX ]; then PREFIX=$DEFAULT_PREFIX; fi
  26. -echo "PREFIX := `echo "$PREFIX" | \
  27. - sed -e 's/\${\([A-Za-z_][A-Za-z0-9_]*\)}/$(\1)/g' \
  28. - -e 's/\$\([A-Za-z_][A-Za-z0-9_]*\)/$(\1)/g'`" >> make/config.tmp
  29. -fi
  30. -
  31. -mv -f make/config.tmp make/config.txt
  32. -
  33. -echo 'Configuration complete.'
  34. -echo "Run 'make config' to change it in the future."
  35. -echo -n 'Press Enter to continue ... '
  36. -read dummy
  37. +echo 'include make/unix.inc' > make/config.txt
  38. +echo 'ALL_TARGETS := core core-examples core-headers' >> make/config.txt
  39. +echo 'ALL_TARGETS += allegro allegro-examples allegro-headers' >> make/config.txt
  40. +echo "PREFIX ?= ${PREFIX}" >> make/config.txt