From 4140d936fc2c372ffbf1f4de4d707d689f7b7b38 Mon Sep 17 00:00:00 2001 From: def Date: Fri, 10 Dec 2021 15:54:57 +0100 Subject: [PATCH] Add macOS dependency instructions --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4209852c..cc293f05f 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ To clone the libraries if you have previously cloned DDNet without them: git submodule update --init --recursive -Dependencies on Linux ---------------------- +Dependencies on Linux / macOS +----------------------------- You can install the required libraries on your system, `touch CMakeLists.txt` and CMake will use the system-wide libraries by default. You can install all required dependencies and CMake on Debian or Ubuntu like this: @@ -38,6 +38,10 @@ Or on Arch Linux like this: There is an [AUR package for pnglite](https://aur.archlinux.org/packages/pnglite/). For instructions on installing it, see [AUR packages installation instructions on ArchWiki](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages). +On macOS you can use [homebrew](https://brew.sh/) to install build dependencies like this: + + brew install cmake freetype opusfile SDL2 wavpack googletest + If you don't want to use the system libraries, you can pass the `-DPREFER_BUNDLED_LIBS=ON` parameter to cmake. Building on Linux and macOS