@@ -17,24 +17,24 @@ later in this documentation.
1717The devkit uses Python 3, which is installed globally in macOS but
1818also in brew. To make sure you are installing python dependencies
1919in the right python distribution, you need to have brew's python
20- first in your PATH, as explained later in the document .
20+ first in your PATH.
2121
2222
2323## Pre-requisite
2424
2525In order to build the devkit you need autoconf, autoconf-archive and
2626GNU Make 4.x, and various additional dependencies to build the
2727toolchain modules such as GCC and SDCC. The devkit tools uses Python 3
28- and PyGame 2. The emulator requires SDL 2 and optionally OpenGL
29- libraries.
28+ and various dependencies (such as pillow and PyYAML). The emulator
29+ requires SDL 2 and optionally OpenGL libraries.
3030
3131The examples require ImageMagick for all the graphics
3232trickery and sox for audio conversion purpose.
3333
3434Make sure that ` brew ` is in your PATH and its environment variables are
3535set up properly. By default, brew is installed in ` /usr/local/bin/brew `
3636on Intel macs, and in ` /opt/homebrew/bin/brew ` on ARM macs. If ` brew `
37- is not found in your PATH, you must initialize your it with:
37+ is not found in your PATH, you must initialize it with:
3838
3939 eval $(/opt/homebrew/bin/brew shellenv)
4040 # Intel macs would use /usr/local/bin/brew shellenv
@@ -43,25 +43,25 @@ Then, ngdevkit's dependencies are installed as follows:
4343
4444 brew update
4545 brew install gmake
46- brew install autoconf-archive
47- brew install glew sdl2 sdl2_image
48- brew install python3
49- # make sure you use brew's python3 to install pygame
50- # if not, update your path like e.g.
51- # export PATH=$HOMEBREW_PREFIX/opt/python3/bin:$PATH
52- pip3 install pygame --break-system-packages
46+ brew install python3 pillow
5347 brew deps gcc | xargs brew install
5448 brew deps sdcc | xargs brew install
5549 # dependencies for the example ROMs
50+ brew install autoconf-archive
51+ brew install glew sdl2 sdl2_image
5652 brew install zip imagemagick sox
5753
54+ Note that older version of the devkit and its example ROMs depended
55+ on PyGame, which has now been replaced by pillow. So please make
56+ sure to use the latest version of ngdevkit-examples for building ROMs.
5857
5958## Building the toolchain
6059
6160In order to build ngdevkit, the installed brew dependencies must
6261be available to the compiler, so you must add brew's PATH into
6362your build flags manually:
6463
64+ HOMEBREW_PREFIX=$(brew --prefix)
6565 export CFLAGS="-I${HOMEBREW_PREFIX}/include${CFLAGS+ ${CFLAGS}}"
6666 export CXXFLAGS="-I${HOMEBREW_PREFIX}/include${CXXFLAGS+ ${CXXFLAGS}}"
6767 export CPPFLAGS="-I${HOMEBREW_PREFIX}/include${CPPFLAGS+ ${CPPFLAGS}}"
0 commit comments