Improve documentation of installing SDL and SDL2

Remove how to install SDL1 / SDL2 from var.mk as it's already in faq.md.
Instead refer to faq.md. How to compile (variables etc.) is still in the
var.mk file.

Reworded that section a bit and added 'Other linux distributions'
subsection to 'Linux' (in faq.md).

Minor typo fix in faq.md at the same time as the above change. Normally
I would not do this but it's one word changed and I am too tired at this
time (or can't be bothered?) to do another pull request for one word.
This commit is contained in:
Cody Boone Ferguson committed 2023-06-03 05:00:01 -07:00
1 parent e6abdec692
commit 63136d41fc
2 files changed
+20 -33

No files matched your search

+8 -29
View File
@@ -282,40 +282,19 @@ X11_LIBDIR= /opt/X11/lib
X11_INCDIR= /opt/X11/include
############################
# SD1 and SDL2 include files
############################
# macOS users:
##########################
# SD1 and SDL2 libraries #
##########################
#
# If you have not aleady do so, install Homebrew. See the following for information:
# For details on how to install SDL/SDL2 see faq.md.
#
# https://brew.sh
#
# Then to install SDL and SDL2, execute the following command:
#
# brew install sdl2 sdl12-compat
# eval "$(/opt/homebrew/bin/brew shellenv)"
# Linux users:
#
# To install SDL and SDL2, execute the following command as root:
#
# dnf install SDL2 SDL2-devel sdl12-compat sdl12-compat-devel
# Debian users:
#
# To install SDL and SDL2, execute the following command as root:
#
# apt install libsdl1.2debian libsdl1.2-dev libsdl2-dev
# SDL2_INCLUDE_ROOT is the directory under which include/SDL/ and/or
# include/SDL2/ may be found.
#
# Even if you do not use HomeBrew, you might set the environment
# variable $HOMEBREW_PREFIX to the SDL2_INCLUDE_ROOT directory path
# as the default SDL2_INCLUDE_ROOT value is $HOMEBREW_PREFIX.
# Of you may run make and set SDL2_INCLUDE_ROOT directly:
# Even if you do not use Homebrew (one of the methods for macOS), you might set
# the environment variable $HOMEBREW_PREFIX to the SDL2_INCLUDE_ROOT directory
# path as the default SDL2_INCLUDE_ROOT value is $HOMEBREW_PREFIX. Of you may
# run make and set SDL2_INCLUDE_ROOT directly:
#
# make all SDL2_INCLUDE_ROOT=/some/path
#