              _
           __| |_  _ _ ___   _ __  ___ _ _  ___
          / _| ' \| '_/ _ \_| '  \/ _ \ ' \/ _ \
          \__|_||_|_| \___(_)_|_|_\___/_||_\___/
                  https://thp.io/2013/chromono/


This is the open source release of my game "chro.mono",
originally released in Summer 2013. If you like the game,
check out "chro.mono 2" on Google Play and the App Store.

The code is licensed under the terms of the GNU General
Public License, version 2 or later, see the file COPYING.

Version 1.1.3 (see ChangeLog) now contains a port to the
Wii using devkitPro, thanks to Alberto Mardegan. Also
thanks to Chris Hofstaedtler for finding GCC 15-related
issues and sponsoring the package in Debian.

                                    -- thp, January 2026


DEPENDENCIES
============

 - C++17 compiler (GCC or clang)
 - CMake 3.27
 - pkg-config 0.29.1
 - Python 3.3
 - SDL 2.0.10
 - OpenGL 3.2 or OpenGL ES 2.0 (-DUSE_OPENGL_ES in CMake)
 - zlib 1.2.11
 - libvorbisfile 1.3.6


On Debian-based systems, use:

    sudo apt install -y \
        cmake pkg-config python3 build-essential \
        libsdl2-dev libgl-dev zlib1g-dev libvorbis-dev

On Arch-based systems, use:

    sudo pacman -S \
        cmake python3 base-devel \
        sdl2 libglvnd zlib libvorbis

On Fedora-based systems, use:

    sudo dnf install \
        cmake pkgconf-pkg-config python3 make gcc-c++ \
        SDL2-devel libglvnd-devel zlib-devel libvorbis-devel

On macOS, use:

    sudo brew install \
        cmake python2 \
        sdl2 zlib libvorbis

BUILDING / INSTALLING
=====================

    cmake -B build .
    make -C build
    sudo make -C build install

WII
===

To cross-compile for the Wii (using devkitPro's PowerPC Docker image):

    docker run -v $PWD:/home -w /home/ -it --rm devkitpro/devkitppc \
        /opt/devkitpro/portlibs/wii/bin/powerpc-eabi-cmake -B build-wii \
            -DBUILD_FOR_WII=ON \
            .

    docker run -v $PWD:/home -w /home/ -it --rm devkitpro/devkitppc \
        make -C build-wii

    docker run -v $PWD:/home -w /home/ -it --rm devkitpro/devkitppc \
        elf2dol build-wii/chromono.elf wii/boot.dol

    sh wii/make-package.sh

