| 1 | === Atari TOS/FreeMiNT === |
| 2 | The Atari build is very similar to the Linux one. The build might work on native machine with gcc 4.3> compiler, but it wasn't tested. You can also build binary for Coldfire based machines(e.g. Firebee) by |
| 3 | replacing '-m68020-60' in makefile with '-mcpu=5475'(you can use '-mcfv4e' too, but this option may be deprecated in future versions of gcc, so '-mcpu=5475' is more favourable). |
| 4 | |
| 5 | Preferable way is to build GrafX2 with use of cross compiler, you can get one from [http://vincent.riviere.free.fr/soft/m68k-atari-mint Vincent Rivière site](URL: http://vincent.riviere.free.fr/soft/m68k-atari-mint). There are versions for win32 (Cygwin) and debian packages for latest Ubuntu (32/64bit). |
| 6 | |
| 7 | Before compilation you have to build all the needed libraries mentioned in requirements. |
| 8 | |
| 9 | To compile a Atari TOS executable, type in |
| 10 | {{{ |
| 11 | make ATARICROSS=1 prefix=/usr/m68k-atari-mint |
| 12 | }}} |
| 13 | You can also add other options like NOTTF, NOLUA, NOLAYERS etc. to enable/disable program features.. |
| 14 | |
| 15 | If you don't know how build libraries here's some hints. Please note that prefix path in examples below is valid only under Linux, |
| 16 | in case of Cygwin the path will be '/opt/m68k-atari-mint'. There will be no prefix when building on native machine. |
| 17 | You have to omit 'sudo' under Cygwin and native build. Stick to this order and you will be fine ;> ... |
| 18 | The versions of libraries were tested, you can also try newer versions. As I mentioned earlier, replace '-m68020-60' with '-mcpu=5475' |
| 19 | if you want to target Coldfire machines. |
| 20 | |
| 21 | ==== libpng (optional, for png reading in SDL_image) ==== |
| 22 | ===== note: you will need libzip too ===== |
| 23 | libpng 1.2.44 |
| 24 | {{{ |
| 25 | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
| 26 | sudo make install |
| 27 | }}} |
| 28 | or |
| 29 | libpng 1.4.44 |
| 30 | {{{ |
| 31 | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer -DPNG_NO_SETJMP" |
| 32 | sudo make install |
| 33 | }}} |
| 34 | |
| 35 | ==== libjpeg, libtiff (optional, for jpeg/tiff support in SDL_image) ==== |
| 36 | {{{ |
| 37 | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
| 38 | sudo make install |
| 39 | }}} |
| 40 | |
| 41 | ==== freetype 2.4.4 (optional, for TTF fonts support, required by SDL_ttf) ==== |
| 42 | {{{ |
| 43 | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
| 44 | sudo make install |
| 45 | }}} |
| 46 | |
| 47 | ==== lua 5.0.4 (optional, for LUA scripting support) ==== |
| 48 | Here you have to customize makefiles, add prefixes, platform has to be set as generic. |
| 49 | |
| 50 | ==== SDL 1.2 (mandatory) ==== |
| 51 | ===== note: best is to grab it directly from Mercurial repository ===== |
| 52 | {{{ |
| 53 | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint --disable-video-opengl --disable-shared --enable-static --disable-threads CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
| 54 | sudo make install |
| 55 | }}} |
| 56 | |
| 57 | ==== SDL_ttf (optional, for ttf fonts support, depends on SDL and freetype) ==== |
| 58 | {{{ |
| 59 | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint --disable-shared --enable-static --with-sdl-prefix=/usr/m68k-atari-mint --with-freetype-prefix=/usr/m68k-atari-mint CFLAGS=" -m68020-60 -O2 -fomit-frame-pointer" |
| 60 | sudo make install |
| 61 | }}} |
| 62 | |
| 63 | ==== SDL_image 1.2.10 (mandatory) ==== |
| 64 | {{{ |
| 65 | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint --disable-shared --enable-static --with-sdl-prefix=/usr/m68k-atari-mint CFLAGS="-DHAVE_OPENGL=0 -m68020-60 -O2 -fomit-frame-pointer" |
| 66 | sudo make install |
| 67 | }}} |