Source code is based on TF2 2018 leak. Don't use it for commercial purposes.
you don't need to clone with --recursive, because I simply pasted all the files.
git clone https://github.com/benjaminmcq/source-engine
pkg_add sdl2 MORE_PACKAGES_HERE
WAF_CONFIGURE_COMMAND
./waf build ./waf install
For CS:S I needed the directories from the steam installation hl2 and cstrike. I don't know the files that are required for the other games.
After you are in the directory where the gamefiles are, as well as the installed binaries, use the command: ./hl2_launcher -game GAME_YOU_INSTALLED
the different game codes are:
hl1 = Half-Life 1: Source hl2 = Half-Life 2 // Default - This will be selected if you don't specify a game episodic = Half-Life 2 Episode 1 ep2 = Half-Life 2 Episode 2 // Do not build for ep2, use episodic instead. hl2mp = Half-Life 2: Deathmatch dod = Day of Defeat cstrike = Counter-Strike: Source portal = Portal
You can also specify the console and arguments with ./hl2_launcher -game GAME -console +ARGUMENT
all credits to the original author(s)