improve instructions for entries that use SDL or SDL2
Add instructions on how to install SDL or SDL2 for macOS, Linux and
Debian for:
2005/jetro
2014/maffiodo1
2018/giles
Put variables and instructions into the top level `var.mk` file.
This commit is contained in:
1 parent
bbd18a20df
commit
a1e4b376e9
4 files changed
+232
-2
No files matched your search
@@ -6,10 +6,67 @@
|
||||
|
||||
# To build:
|
||||
|
||||
This entry requires SDL to be installed.
|
||||
|
||||
```sh
|
||||
make
|
||||
```
|
||||
|
||||
### To install SDL and SDL2:
|
||||
|
||||
#### macOS users
|
||||
|
||||
If you have not aleady do so, install Homebrew. See the following for information:
|
||||
|
||||
https://brew.sh
|
||||
|
||||
Then to install SDL and SDL2, execute the following command:
|
||||
|
||||
```sh
|
||||
brew install sdl2 sdl12-compat
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
```
|
||||
|
||||
#### Linux users:
|
||||
|
||||
To install SDL and SDL2, execute the following command as root:
|
||||
|
||||
```sh
|
||||
dnf install SDL2 SDL2-devel sdl12-compat sdl12-compat-devel
|
||||
```
|
||||
|
||||
Use make as follows:
|
||||
|
||||
```sh
|
||||
make ... SDL2_INCLUDE_ROOT=/usr
|
||||
```
|
||||
|
||||
or set the following environment variable:
|
||||
|
||||
```sh
|
||||
export SDL2_INCLUDE_ROOT=/usr
|
||||
```
|
||||
|
||||
#### Debian users
|
||||
|
||||
To install SDL and SDL2, execute the following command as root:
|
||||
|
||||
```sh
|
||||
apt install libsdl1.2debian libsdl1.2-dev libsdl2-dev
|
||||
```
|
||||
|
||||
Use make as follows:
|
||||
|
||||
```sh
|
||||
make ... SDL2_INCLUDE_ROOT=/usr
|
||||
```
|
||||
|
||||
or set the following environment variable:
|
||||
|
||||
```sh
|
||||
export SDL2_INCLUDE_ROOT=/usr
|
||||
```
|
||||
|
||||
### To run:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in new issue
Block a user