Chess (jsChess) — Third Party Licenses
==========================================

Chess is proprietary software, (c) 2026 Josef Sejrek /
Budbrain Software. It dynamically links against, or ships, the following
third-party components. Their respective licenses apply to those components
only.

Sources for all LGPL components below are available from the upstream projects
linked, and from the Ubuntu/Debian source archives.

This file is checked against the binary by scripts/check_licenses.py before a
release: a library that is linked but not listed here fails the build.

--------------------------------------------------------------------------------
LINKED LIBRARIES
--------------------------------------------------------------------------------
SDL2                             zlib                                  https://www.libsdl.org/
SDL2_mixer                       zlib                                  https://github.com/libsdl-org/SDL_mixer
Cairo                            LGPL-2.1 or MPL-1.1                   https://www.cairographics.org/
Pango                            LGPL-2.1-or-later                     https://pango.gnome.org/
GLib / GObject / GIO             LGPL-2.1-or-later                     https://gitlab.gnome.org/GNOME/glib
HarfBuzz                         MIT                                   https://harfbuzz.github.io/
FreeType                         FTL or GPL-2-or-later                 https://freetype.org/
Fontconfig                       MIT-style (fontconfig)                https://www.freedesktop.org/wiki/Software/fontconfig/
FriBidi                          LGPL-2.1-or-later                     https://github.com/fribidi/fribidi
Graphite2                        LGPL-2.1-or-later or MPL-1.1          https://graphite.sil.org/
libthai / libdatrie              LGPL-2.1-or-later                     https://linux.thai.net/projects/libthai
Pixman                           MIT                                   https://www.pixman.org/
libpng                           libpng license                        http://www.libpng.org/
zlib                             zlib                                  https://zlib.net/
libogg / libvorbis               BSD-3-Clause                          https://xiph.org/vorbis/
Opus / opusfile                  BSD-3-Clause                          https://opus-codec.org/
FLAC                             BSD-3-Clause                          https://xiph.org/flac/
mpg123 / LAME                    LGPL-2.1 / LGPL-2.0                   https://www.mpg123.de/
libsndfile                       LGPL-2.1-or-later                     https://libsndfile.github.io/libsndfile/
FluidSynth / libinstpatch        LGPL-2.1-or-later                     https://www.fluidsynth.org/
libmodplug                       Public domain                         https://github.com/Konstanty/libmodplug
libsamplerate                    BSD-2-Clause                          https://libsndfile.github.io/libsamplerate/
PulseAudio (client)              LGPL-2.1-or-later                     https://www.freedesktop.org/wiki/Software/PulseAudio/
PipeWire (client)                MIT                                   https://pipewire.org/
ALSA (libasound)                 LGPL-2.1-or-later                     https://www.alsa-project.org/
JACK (libjack)                   LGPL-2.1-or-later                     https://jackaudio.org/
libasyncns                       LGPL-2.1-or-later                     https://0pointer.de/lennart/projects/libasyncns/
Wayland client libraries         MIT (X11 style)                       https://wayland.freedesktop.org/
libdecor                         MIT                                   https://gitlab.freedesktop.org/libdecor/libdecor
libxkbcommon                     MIT                                   https://xkbcommon.org/
X.Org client libraries           MIT / X11                             https://www.x.org/
libdrm / libgbm (Mesa)           MIT                                   https://mesa3d.org/
systemd / libudev                LGPL-2.1-or-later                     https://systemd.io/
D-Bus (libdbus-1)                AFL-2.1 or GPL-2-or-later             https://www.freedesktop.org/wiki/Software/dbus/
libbsd / libmd                   BSD-3-Clause                          https://libbsd.freedesktop.org/
libcap                           BSD-3-Clause or GPL-2                 https://sites.google.com/site/fullycapable/
libgcrypt / libgpg-error         LGPL-2.1-or-later                     https://gnupg.org/software/libgcrypt/
libselinux / libapparmor         Public domain / LGPL-2.1              https://selinuxproject.org/
util-linux (libblkid, libmount)  LGPL-2.1-or-later                     https://github.com/util-linux/util-linux
PCRE2                            BSD-3-Clause                          https://www.pcre.org/
libffi                           MIT                                   https://sourceware.org/libffi/
expat                            MIT                                   https://libexpat.github.io/
brotli                           MIT                                   https://github.com/google/brotli
bzip2 / xz / zstd / lz4          BSD-like / public domain              https://tukaani.org/xz/
Berkeley DB (libdb)              Sleepycat / AGPL-3                    https://www.oracle.com/database/berkeley-db/
readline / ncurses (libtinfo)    GPL-3-or-later / MIT-style            https://tiswww.case.edu/php/chet/readline/
GCC runtime (libstdc++, libgcc,  GPL-3 with Runtime Library Exception  https://gcc.gnu.org/
  libgomp)
GNU C Library (glibc)            LGPL-2.1-or-later                     https://www.gnu.org/software/libc/

--------------------------------------------------------------------------------
SHIPPED ASSETS
--------------------------------------------------------------------------------
Compiled in from source. Both are plain C, so Linux and Windows carry the same
solution and no extra DLL enters the Windows package.

Monocypher 4.0.2                 CC0-1.0 or BSD-2-Clause               https://monocypher.org/
  Copyright (c) 2017-2020 Loup Vaillant. XChaCha20-Poly1305: the save file and
  the settings are encrypted and sealed with it.
  Full text: third_party/monocypher/LICENCE.md

js-chess-engine 1.0.3            MIT                                   https://github.com/josefjadrny/js-chess-engine
  Copyright (c) 2020 Josef Jadrny
  Die Schach-Engine des Spiels (src/core/chess.cpp) ist ein zeilentreuer
  C++-Port dieser Bibliothek und damit ein abgeleitetes Werk.
  Full text: third_party/js-chess-engine/LICENSE

Shipped as files next to the program. Both fonts carry obligations that travel
with every copy; their full texts are installed alongside the program and are
part of every package.

DejaVu Sans / DejaVu Sans Bold   Bitstream Vera + Arev license         assets/fonts/LICENSE-DejaVu.txt
  Copyright (c) 2003 Bitstream, Inc. Copyright (c) 2006 Tavmjong Bah.
  Shipped UNCHANGED and under its original name, as the license requires.
Budbrain Chess CJK (font)         SIL Open Font License 1.1             assets/fonts/LICENSE-NotoSansCJK.txt
Noto Sans CJK (its source)       SIL Open Font License 1.1             https://github.com/notofonts/noto-cjk
  — a 583-character subset of Noto Sans CJK, renamed as the OFL requires for a
  modified face, with the trademark entry of the source removed. It carries
  only the characters the 22 language catalogues actually use; a sandbox has no
  CJK font of its own. 181 kB instead of 20 MB.
"Only silence remains"           CC BY 4.0 — Namensnennung mit Link      https://zero-project.gr
  von zero-project               erforderlich, kommerzielle Nutzung
  (Hintergrundmusik)             ausdruecklich erlaubt
Klangeffekte (22 Dateien)        LGPL-2.1 / GPL-2 (das WERKZEUG)       https://ffmpeg.org
  Klick, Aufnehmen, Fehlschlag und die fuenfzehn Toene der pentatonischen
  Leiter sind mit ffmpeg SYNTHETISIERT, nicht eingekauft — es gibt keinen
  Rechteinhaber ausser Budbrain Software. Genannt ist deshalb das Werkzeug.
  Uebernommen unverandert aus der Telefonfassung.

--------------------------------------------------------------------------------
EIGENE ARBEIT — KEIN FREMDBESTANDTEIL
--------------------------------------------------------------------------------
Die SPIELFIGUREN sind lizenzfrei: sie sind kein Zeichensatz, kein Sprite-Set
und kein Zukauf, sondern Vektorpfade in src/ui/pieces.cpp — von Budbrain
Software gezeichnet. Es gibt dazu keinen fremden Rechteinhaber und nichts
nachzuweisen.

Das ist erwaehnenswert, weil die Telefonfassung sie als Unicode-Zeichen
(U+2654..U+265F) aus der SYSTEMschrift setzt. Wer das weiss, sucht hier eine
Schriftlizenz — es gibt keine. In einer Snap- oder Flatpak-Sandbox liegt
ohnehin keine Schrift mit diesen Zeichen, und genau deshalb sind sie hier
gezeichnet.

Ebenso eigen und ohne fremde Rechte: die hundert Level (aus einer Formel
gerechnet, src/core/levels.cpp), die zehn Brett-Designs, die Wuerfel, die
Kulisse und jede andere Zeichnung des Spiels. Die mitgelieferten SCHRIFTEN
sind davon ausgenommen — sie stehen oben und tragen ihre eigenen Auflagen.
