gsplus/doc/Developer-QuickStart-MacOSX.txt

31 lines
952 B
Plaintext
Raw Normal View History

2016-02-06 13:32:57 +00:00
# Mac OSX - SDL2 version
2016-10-19 17:01:33 +00:00
#
# might need to install cli tools if you haven't already.
xcode-select --install
2016-02-06 13:32:57 +00:00
2016-10-19 17:01:33 +00:00
# Install 'brew' if you don't already have it installed.
2017-12-28 21:22:20 +00:00
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2016-10-19 17:01:33 +00:00
# then install dependencies
2016-02-06 13:32:57 +00:00
brew install sdl2
2017-12-28 21:22:20 +00:00
brew install sdl2_image
2016-02-06 13:32:57 +00:00
brew install freetype
# build
git clone git@github.com:digarok/gsplus.git
cd gsplus/src
ln -s vars_osx_sdl2 vars
make clean ; make
#Note that installing freetype via brew will install the library, but I think
# maybe you have to install the source and build it to link it in properly.
# You could use /usr/local/src instead of /tmp
cd /tmp
curl --remote-name --location http://sourceforge.net/projects/freetype/files/freetype2/2.6.2/freetype-2.6.2.tar.gz
tar -xzvf freetype-2.6.2.tar.gz
cd freetype-2.6.2
./configure --prefix=/usr/local/freetype-2.6.2
make
make install
ln -s freetype-2.6.2 /usr/local/freetype