-----------------------------------------------------------------------------
macOS builds require that Xcode command line tools and Homebrew be installed:
-----------------------------------------------------------------------------

#
# Install Xcode from the app store, and make sure Xcode CLI tools
# are installed and licenses agreed.
#

xcode-select --install
sudo xcodebuild -license accept

#
# Install Homebrew if not already installed, see https://brew.sh but if you are lazy:
#

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

#
# Optional - if you want to build vice.pdf or binary distributions
#

brew cask install basictex


---------
Building:
---------

brew install autoconf automake pkg-config texinfo xa lame
brew install sdl2 libpng

source /etc/profile
./autogen.sh
./configure --enable-sdlui2
make -j
make install

#
# At this point you have x64sc, x128 etc. binaries in /usr/local/bin.
#
# If you link in /usr/local/lib you can also run local copies:
#

ln -s /usr/local/lib
./src/x64sc
