mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
9cee9bc279
Also remove the now useless options (like IRRLICHT_INCLUDE_DIR) and update download instructions, CI and similar. Co-authored-by: sfan5 <sfan5@live.de>
46 lines
846 B
Markdown
46 lines
846 B
Markdown
# Compiling on MacOS
|
|
|
|
## Requirements
|
|
|
|
- [Homebrew](https://brew.sh/)
|
|
- [Git](https://git-scm.com/downloads)
|
|
|
|
Install dependencies with homebrew:
|
|
|
|
```
|
|
brew install cmake freetype gettext gmp hiredis jpeg-turbo jsoncpp leveldb libogg libpng libvorbis luajit zstd gettext
|
|
```
|
|
|
|
## Download
|
|
|
|
Download source (this is the URL to the latest of source repository, which might not work at all times) using Git:
|
|
|
|
```bash
|
|
git clone --depth 1 https://github.com/minetest/minetest.git
|
|
cd minetest
|
|
```
|
|
|
|
## Build
|
|
|
|
```bash
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_FIND_FRAMEWORK=LAST \
|
|
-DCMAKE_INSTALL_PREFIX=../build/macos/ \
|
|
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE
|
|
|
|
make -j$(sysctl -n hw.logicalcpu)
|
|
make install
|
|
|
|
# M1 Macs w/ MacOS >= BigSur
|
|
codesign --force --deep -s - macos/minetest.app
|
|
```
|
|
|
|
## Run
|
|
|
|
```
|
|
open ./build/macos/minetest.app
|
|
```
|