mirror of
https://github.com/digarok/gsplus.git
synced 2024-09-08 02:54:43 +00:00
31 lines
952 B
Plaintext
31 lines
952 B
Plaintext
# Mac OSX - SDL2 version
|
|
#
|
|
# might need to install cli tools if you haven't already.
|
|
xcode-select --install
|
|
|
|
# Install 'brew' if you don't already have it installed.
|
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
# then install dependencies
|
|
brew install sdl2
|
|
brew install sdl2_image
|
|
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
|