318.8. schismtracker-20260524
Impulse Tracker clone — compose and play IT, S3M, XM and MOD music, on SDL3
| Version | 20260524, release 1 |
| Shelf | studio — Music production: DAWs, audio editors, trackers, drum machines and notation |
| Phase | 44_apps (Applications), 378 of 422 in build order |
| Licence | GPL-2.0-or-later |
| Homepage | https://schismtracker.org |
| Build time | 1.7 SBU |
| Installed size | 1.4 MiB in 9 files |
| Recipe | ports/core/studio/schismtracker/kpkgbuild |
About
Schism Tracker is a re-creation of Impulse Tracker: it composes and plays IT, S3M, XM and MOD music in Impulse Tracker’s text-mode interface, which it draws itself on SDL3. The recipe builds from upstream’s dated tag archive, and the date is the version.
Sources
schismtracker-20260524.tar.gz(1.4 MiB)
sha2561e567e7ce5d9c68aac7b348e03b4cdb652d23fc4652b0089b83238e62d8925de
upstream: https://github.com/schismtracker/schismtracker/archive/refs/tags/20260524.tar.gz
archive copy: sources-4/studio--schismtracker-20260524.tar.gz
Dependencies
Depends on: autoconf, automake, pkgconf, perl, sdl3, alsa-lib, utf8proc, flac, ffmpeg, zlib, bzip2, xz, zstd.
Required by: no port names it.
Patches
build.sh applies these; kpkg applies nothing by itself.
version.patch— Inconfigure.ac, them4_esyscmdthat computes the version (the date of the last git commit, throughgit log) prints$SCHISM_VERSIONinstead when it is set.build.shrunsautoreconfwithSCHISM_VERSION=$version. The tag archive is not a git checkout, so without the patchgit logprints nothing, configure definesEMPTY_VERSION, and the program shows the date and time it was compiled in place of a version.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install schismtracker'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/studio/schismtracker.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/studio/schismtracker
echo '1e567e7ce5d9c68aac7b348e03b4cdb652d23fc4652b0089b83238e62d8925de schismtracker-20260524.tar.gz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/schismtracker
SRC=$SRC_ROOT/schismtracker-20260524
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf schismtracker-20260524.tar.gz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/version.patch"
SCHISM_VERSION=$version autoreconf -fi
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
--without-x \
--with-sdl3 --enable-sdl3-linking \
--without-sdl2 --without-sdl12 \
--with-alsa --enable-alsa-linking \
--without-jack \
--with-flac --enable-flac-linking \
--with-avformat --enable-avformat-linking \
--with-zlib --enable-zlib-linking \
--with-bzip2 --enable-bzip2-linking \
--with-lzma --enable-lzma-linking \
--with-zstd --enable-zstd-linking \
--disable-tests
make
make DESTDIR=$PKG install
rm -f "$PKG/usr/share/pixmaps/schism-icon-128.png"
for s in 32 48 64 128 192; do
install -Dm644 icons/schism-icon-$s.png \
"$PKG/usr/share/icons/hicolor/${s}x${s}/apps/schismtracker.png"
done
rm -f "$PKG/usr/share/applications/schism.desktop"
cat > "$PKG/usr/share/applications/schismtracker.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Schism Tracker
GenericName=Music Tracker
Comment=Compose music in the Impulse Tracker style
TryExec=schismtracker
Exec=schismtracker %f
Icon=schismtracker
Terminal=false
StartupWMClass=schismtracker
Categories=AudioVideo;Audio;Midi;Sequencer;Music;
Keywords=impulse;tracker;module;it;s3m;xm;mod;midi;music;
DESKTOP
chmod 644 "$PKG/usr/share/applications/schismtracker.desktop"
The switches, and why each is set:
--without-x— no X11 code. configure looks for X withAC_PATH_Xand, when it finds libX11, builds its X11 clipboard and event code (sys/x11/) for an SDL window on X11; SDL programs on KDOS open Wayland windows (the session setsSDL_VIDEODRIVER=wayland, see a graphical application).--with-sdl3— with--without-sdl2and--without-sdl12: SDL3 is the one video and audio back end. The tree’s SDL2 and SDL 1.2 are sdl2-compat and sdl12-compat, which run on the same SDL3.--enable-sdl3-linking— and every other--enable-*-linkingswitch (ALSA, FLAC, libavformat, zlib, bzip2, lzma, zstd): link the library at build time instead of upstream’s default, which is todlopen()it at run time when it is there. Linked, each library is aNEEDEDentry of the program, so the package’s dependencies are the ones the loader sees.--with-alsa— ALSA, Schism’s own MIDI back end.--without-jack— no JACK support.--with-flac— and--with-avformat: FLAC samples, and reading samples in the formats libavformat (ffmpeg) decodes.--with-zlib— and--with-bzip2,--with-lzma,--with-zstd: open files compressed with gzip, bzip2, xz or zstd.--disable-tests— do not build upstream’s test program.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/schismtracker, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf schismtracker-20260524-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/schismtracker, and runs the triggers its paths call for.
Contents
Installed programs: schismtracker.
Installed directories: /usr/share/licenses/schismtracker.
Short descriptions
schismtracker |
tracked music editor based on Impulse Tracker |
Notes
The tag archive carries no configure script; autoreconf -fi writes it, and that is the moment the version is read.
The recipe replaces upstream’s schism.desktop and its /usr/share/pixmaps icon with a schismtracker.desktop and upstream’s PNG icons under hicolor in the program’s name. SDL3 names the window after the program, schismtracker, which the entry repeats in StartupWMClass. Upstream’s entry claims the IT, S3M, XM and MOD types; the replacement claims none.