Skip to content

Instantly share code, notes, and snippets.

@maizy
Created April 6, 2019 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maizy/02e058c5e3dffa908d6d2139395c0e48 to your computer and use it in GitHub Desktop.
Save maizy/02e058c5e3dffa908d6d2139395c0e48 to your computer and use it in GitHub Desktop.
minetest 5.0 on macOS

minetest 5.0 on macOS

Based on homebrew formula

Build

Build dependencies:

brew install freetype gettext irrlicht jpeg libogg libvorbis luajit cmake

Checkout branch 5.0.1:

git clone -b 5.0.1 https://github.com/minetest/minetest.git
cd minetest/games
git clone -b 5.0.1 https://github.com/minetest/minetest_game.git
cd ..

Configuring:

cmake . \
    -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG \
    -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG \
    -DCMAKE_INSTALL_PREFIX=/opt/minetest-5.0/ \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_FIND_FRAMEWORK=LAST \
    -DCMAKE_VERBOSE_MAKEFILE=ON \
    -Wno-dev \
    -DBUILD_CLIENT=1 \
    -DBUILD_SERVER=0 \
    -DENABLE_FREETYPE=1 \
    -DCMAKE_EXE_LINKER_FLAGS='-L/usr/local/opt/freetype/lib' \
    -DENABLE_GETTEXT=1 \
    -DCUSTOM_GETTEXT_PATH=/usr/local/opt/gettext

Make & install:

make
sudo mkdir -p /opt/minetest-5.0
sudo chown $USER /opt/minetest-5.0
make install

Usage

Dir for content: ~/Library/Application Support/minetest/.

App: /opt/minetest-5.0/minetest.app

Run server: /opt/minetest-5.0/minetest.app/Contents/MacOS/minetest --server ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment