guide made by jxhug. video here: if you enjoy the guide please give the video a like :)

https://youtu.be/tb2g3eR14jQ

Steps 1-5 aren’t required if you’ve done my tutorials before

  1. Install Homebrew
/bin/bash -c "$(curl -fsSL [<https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>](<https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>))"
  1. If you are using an Intel Mac: (replace yourusername with your username)
(echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/yourusername/.zprofile
    eval "$(/usr/local/bin/brew shellenv)"
  1. If you are using an Apple Silicon Mac: (replace yourusername with your username)
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/yourusername/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
  1. Install Xcode Command Line Tools
xcode-select --install
  1. Install required packages from Homebrew
brew help
brew doctor
brew cleanup
brew install sdl2 freetype2 fontconfig pkg-config opus jpeg jpeg-turbo libpng libedit python3

  1. Clone the Source Engine GitHub repository
git clone --recursive [<https://github.com/nillerusr/source-engine>](<https://github.com/nillerusr/source-engine>)
cd source-engine
  1. Configure Portal build
python3 waf configure -T release --prefix='' --build-games=portal
  1. Build the game
python3 waf build
  1. Install the game into your desired directory - this can be any directory on your mac