1
1
Fork 0
Browse Source

freebsd

thread-physics
alistair 4 years ago
parent
commit
0a66cb8e95
  1. 26
      README.md

26
README.md

@ -18,19 +18,21 @@ sudo dnf install SDL2 @@ -18,19 +18,21 @@ sudo dnf install SDL2
# Build Instructions
## On Linux
## On Linux / Unix
Install the [libSDL2](http://libsdl.org/download-2.0.php) runtime and SDL2
development packages from your package distributor. On Fedora, this
is the `SDL2` and `SDL2-devel` packages.
```
```sh
git clone --recurse-submodules https://git.topost.net/alistair/space_game.git
```
(if you forget `--recurse-submodules` you can use, `git submodule init`, `git submodule update`.)
### For Linux
```
```sh
make clean
make target=linux
```
@ -39,18 +41,32 @@ make target=linux @@ -39,18 +41,32 @@ make target=linux
You have to have mingw and the mingw libsdl library (I think).
```
```sh
sudo dnf install mingw64-SDL2 mingw64-SDL2_image mingw64-SDL2_ttf mingw64-winpthreads
```
Run setup.sh to download the SDL2 static libraries and `SDL2.dll`.
```
./setup.sh
make clean
make target=windows
```
## FreeBSD
You need to download the header files and put them in the source folder, with
the folder name SDL2. You also need the `sdl2` and `gmake` packages.
Something like this:
```sh
cd /tmp && wget https://www.libsdl.org/release/SDL2-2.0.12.zip && unzip SDL2-2.0.12.zip
mv /tmp/SDL2-2.0.12/include $source_dir/SDL2
pkg install sdl2 gmake
cd $source_dir
gmake
```
### With debug flags
Append `debug=true` to the make command.

Loading…
Cancel
Save