Skip to content

Commit

Permalink
Remove $ symbols in README.md to better copy/paste text.
Browse files Browse the repository at this point in the history
  • Loading branch information
viewizard committed Nov 27, 2022
1 parent a0350c3 commit cee3154
Showing 1 changed file with 44 additions and 32 deletions.
76 changes: 44 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,44 +56,56 @@ sudo emerge astromenace

**For Windows 32bit build.** Start `MSYS2` > `MSYS2 MINGW32` terminal session from `Start` menu. Install all necessary packages and download prebuilt dependencies:
```
$ cd /
$ pacman -S git unzip mingw-w64-i686-{toolchain,make,cmake,ninja}
$ wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_32bit.zip
$ unzip ./prebuilt_dep_mingw_32bit.zip
cd ~/
```
```
pacman -S git unzip mingw-w64-i686-{toolchain,make,cmake,ninja}
```
```
wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_32bit.zip
```
```
unzip ./prebuilt_dep_mingw_32bit.zip
```
**For Windows 64bit build.** Start `MSYS2` > `MSYS2 MINGW64` terminal session from `Start` menu. Install all necessary packages and download prebuilt dependencies:
```
$ cd /
$ pacman -S git unzip mingw-w64-x86_64-{toolchain,make,cmake,ninja}
$ wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_64bit.zip
$ unzip ./prebuilt_dep_mingw_64bit.zip
cd ~/
```
```
pacman -S git unzip mingw-w64-x86_64-{toolchain,make,cmake,ninja}
```
```
wget https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_64bit.zip
```
```
unzip ./prebuilt_dep_mingw_64bit.zip
```

- Clone git with latest source files
```
$ git clone https://github.com/viewizard/astromenace.git
git clone https://github.com/viewizard/astromenace.git
```
- Compile game binary (game data file will be created automatically):
```
$ mkdir ~/astromenace/build
mkdir ~/astromenace/build
```
```
$ cd ~/astromenace/build
cd ~/astromenace/build
```
**For Windows 32bit build:**
```
$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_32bit
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_32bit
```
**For Windows 64bit build:**
```
$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_64bit
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DDEPS_PATH=$PWD/../../prebuilt_dep_mingw_64bit
```
```
$ cmake --build . --target install
cmake --build . --target install
```
- Create desktop shortcut or start AstroMenace
```
$ ~/astromenace/bin/astromenace
~/astromenace/bin/astromenace
```
Note, in case of default MSYS2 path, all AstroMenace binary files will be stored into folder `C:\msys64\home\user\astromenace\bin`. You can copy this files into folder you want and remove MSYS2 from your system.

Expand All @@ -113,61 +125,61 @@ gcc or clang or any compiler with full [ISO/IEC 14882:2011 (C++11)](https://www.
Download and install "Command Line Tools for Xcode" or "Xcode".
Install HomeBrew package manager: https://brew.sh/
```
$ brew install ninja cmake sdl2 git libogg libvorbis freealut freetype
brew install ninja cmake sdl2 git libogg libvorbis freealut freetype
```

#### For Ubuntu/Mint/Debian:
```
$ sudo apt-get install g++ cmake make ninja-build libsdl2-dev libogg-dev \
git libvorbis-dev libopenal-dev libalut-dev libfreetype6-dev
sudo apt-get install g++ cmake make ninja-build libsdl2-dev libogg-dev \
git libvorbis-dev libopenal-dev libalut-dev libfreetype6-dev
```

#### For Mageia:
```
$ sudo urpmi gcc-c++ ninja cmake make git libsdl2.0-devel libogg-devel \
libvorbis-devel libopenal-devel libfreealut-devel freetype2-devel
sudo urpmi gcc-c++ ninja cmake make git libsdl2.0-devel libogg-devel \
libvorbis-devel libopenal-devel libfreealut-devel freetype2-devel
```

#### For OpenSuse:
```
$ sudo zypper install gcc-c++ ninja cmake make libSDL2-devel libogg-devel \
git libvorbis-devel openal-soft-devel freealut-devel freetype2-devel
sudo zypper install gcc-c++ ninja cmake make libSDL2-devel libogg-devel \
git libvorbis-devel openal-soft-devel freealut-devel freetype2-devel
```

#### For Fedora:
```
$ sudo yum install gcc-c++ cmake make git SDL2-devel libogg-devel libvorbis-devel \
ninja-build openal-soft-devel freealut-devel freetype-devel linux-libertine-fonts
sudo yum install gcc-c++ cmake make git SDL2-devel libogg-devel libvorbis-devel \
ninja-build openal-soft-devel freealut-devel freetype-devel linux-libertine-fonts
```

#### For FreeBSD:
```
$ sudo pkg_add -r -v gcc cmake git ninja sdl20 libogg libvorbis openal freealut freetype2
sudo pkg_add -r -v gcc cmake git ninja sdl20 libogg libvorbis openal freealut freetype2
```

### 2) Clone git with latest source files
```
$ cd ~/
cd ~/
```
```
$ git clone https://github.com/viewizard/astromenace.git
git clone https://github.com/viewizard/astromenace.git
```

### 3) Compile game binary (game data file will be created automatically)
```
$ mkdir ~/astromenace/build
mkdir ~/astromenace/build
```
```
$ cd ~/astromenace/build
cd ~/astromenace/build
```
```
$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release
```
```
$ cmake --build . --target install
cmake --build . --target install
```

### 4) Create desktop shortcut or start AstroMenace
```
$ ~/astromenace/bin/astromenace
~/astromenace/bin/astromenace
```

0 comments on commit cee3154

Please sign in to comment.