318.9. furnace-0.6.8.3
Chiptune tracker for over fifty sound chips of consoles, computers and arcades
| Version | 0.6.8.3, release 1 |
| Shelf | studio — Music production: DAWs, audio editors, trackers, drum machines and notation |
| Phase | 44_apps (Applications), 379 of 422 in build order |
| Licence | GPL-2.0-or-later AND Unlicense |
| Homepage | https://tildearrow.org/furnace/ |
| Build time | 4.1 SBU |
| Installed size | 26.3 MiB in 1678 files |
| Recipe | ports/core/studio/furnace/kpkgbuild |
About
Furnace is a chiptune tracker: it composes music for the sound chips of old consoles, computers and arcade machines, emulating each chip, and exports to audio and to the chips’ own register-log formats. Its interface is Dear ImGui drawn on SDL2 (sdl2-compat), with OpenGL or SDL’s own renderer, so it links no toolkit.
Sources
furnace-0.6.8.3.tar.gz(55.5 MiB)
sha256c54b93dc7211a8e86828ea6b436628920df7a7dc87b130b3752f2251f5466e9c
upstream: https://github.com/tildearrow/furnace/archive/refs/tags/v0.6.8.3.tar.gz
archive copy: sources-4/studio--furnace-0.6.8.3.tar.gzfurnace-adpcm-ef7a217.tar.gz(5.4 KiB)
sha25646da29342d2968ff222ba00e07c646e038b76af2e6c86de037c653059a056251
upstream: https://github.com/superctr/adpcm/archive/ef7a217154badc3b99978ac481b268c8aab67bd8.tar.gz
archive copy: sources-4/studio--furnace-adpcm-ef7a217.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, sdl2-compat, freetype2, fmt, fftw, libsndfile, portaudio, rtmidi, alsa-lib, zlib, mesa, libglvnd.
Required by: no port names it.
Optional, off in KDOS
These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-DUSE_GLES=OFF, line 38: mesa
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 furnace'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/studio/furnace.
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/furnace
echo 'c54b93dc7211a8e86828ea6b436628920df7a7dc87b130b3752f2251f5466e9c furnace-0.6.8.3.tar.gz' | sha256sum -c -
echo '46da29342d2968ff222ba00e07c646e038b76af2e6c86de037c653059a056251 furnace-adpcm-ef7a217.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/furnace
SRC=$SRC_ROOT/furnace-0.6.8.3
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf furnace-0.6.8.3.tar.gz -C "$SRC" --strip-components=1
tar --no-same-permissions --warning=no-unknown-keyword -xf furnace-adpcm-ef7a217.tar.gz -C "$SRC_ROOT"
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 recipe’s helpers _adpcm and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
cp -a "$SRC_ROOT/adpcm-$_adpcm/." extern/adpcm/
mkdir build && cd build
cmake .. -G Ninja -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_GUI=ON \
-DSYSTEM_SDL2=ON \
-DSYSTEM_FMT=ON \
-DSYSTEM_FFTW=ON \
-DSYSTEM_FREETYPE=ON \
-DSYSTEM_LIBSNDFILE=ON \
-DSYSTEM_PORTAUDIO=ON \
-DSYSTEM_RTMIDI=ON \
-DSYSTEM_ZLIB=ON \
-DUSE_SDL2=ON \
-DUSE_SNDFILE=ON \
-DUSE_RTMIDI=ON \
-DUSE_FREETYPE=ON \
-DWITH_PORTAUDIO=ON \
-DWITH_JACK=OFF \
-DWITH_LOCALE=OFF \
-DUSE_MOMO=OFF \
-DUSE_BACKWARD=OFF \
-DWITH_RENDER_SDL=ON \
-DWITH_RENDER_OPENGL=ON \
-DWITH_RENDER_OPENGL1=ON \
-DUSE_GLES=OFF \
-DWITH_DEMOS=OFF \
-DWITH_INSTRUMENTS=ON \
-DWITH_WAVETABLES=ON \
-DWARNINGS_ARE_ERRORS=OFF
ninja
DESTDIR=$PKG ninja install
cd ..
cat > "$PKG/usr/share/applications/furnace.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Furnace
GenericName=Chiptune Tracker
Comment=Compose music for the sound chips of old consoles and computers
TryExec=furnace
Exec=furnace %f
Icon=furnace
Terminal=false
StartupWMClass=org.tildearrow.furnace
Categories=AudioVideo;Audio;Sequencer;Music;
Keywords=chiptune;tracker;fm;psg;genesis;nes;gameboy;c64;music;
MimeType=audio/x-fur;
DESKTOP
chmod 644 "$PKG/usr/share/applications/furnace.desktop"
The switches, and why each is set:
-DBUILD_GUI=ON— build the tracker itself, not only the headless player.-DSYSTEM_SDL2=ON— andSYSTEM_FMT,SYSTEM_FFTW,SYSTEM_FREETYPE,SYSTEM_LIBSNDFILE,SYSTEM_PORTAUDIO,SYSTEM_RTMIDI,SYSTEM_ZLIB: take each library from its port instead of the copy underextern/, which is left unbuilt. Upstream’s default is the vendored copy for every one of them.-DUSE_SDL2=ON— andUSE_SNDFILE,USE_RTMIDI,USE_FREETYPE,WITH_PORTAUDIO: SDL2, which the interface requires; libsndfile for reading and writing audio files; MIDI through rtmidi over ALSA; FreeType for font rendering; audio out through portaudio as well as SDL.-DWITH_JACK=OFF— no JACK back end. Upstream’s default turns it on whenever pkg-config findsjack, which the pipewire port installs, so it is named off.-DWITH_LOCALE=OFF— no translations through libintl; the package is English only under the size and language policy.-DUSE_MOMO=OFFleaves out momo, the libintl replacement upstream builds where the system has none.-DUSE_BACKWARD=OFF— no backward-cpp crash backtraces. backward-cpp needs<execinfo.h>, which musl does not have; upstream’s default already checks for that header.-DWITH_RENDER_SDL=ON— andWITH_RENDER_OPENGL,WITH_RENDER_OPENGL1: build the SDL_Renderer back end and both OpenGL back ends, so a machine with no usable OpenGL still draws through SDL.-DUSE_GLES=OFFuses desktop OpenGL rather than OpenGL ES.-DWITH_DEMOS=OFF— do not install the demo songs, which upstream notes are not under the GPL.-DWITH_INSTRUMENTS=ONand-DWITH_WAVETABLES=ONinstall the instrument and wavetable libraries.-DWARNINGS_ARE_ERRORS=OFF— warnings in Furnace’s own C++ do not stop the build.
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/furnace, 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 furnace-0.6.8.3-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/furnace, and runs the triggers its paths call for.
Contents
Installed programs: furnace.
Installed directories: /usr/share/doc/furnace, /usr/share/furnace, /usr/share/licenses/furnace.
Notes
The tag archive carries its git submodules as empty directories. Of the three, SDL and fmt are ports and come from the system; adpcm, superctr’s ADPCM codec library, is compiled into Furnace and has no port, so it is the recipe’s second source, pinned to a commit (_adpcm in kpkgbuild), and build.sh copies it into extern/adpcm/ before the configure.
The recipe writes its own furnace.desktop, because upstream’s Exec=furnace takes no file argument; the replacement has Exec=furnace %f. Furnace sets SDL’s Wayland window class to org.tildearrow.furnace, which the entry names in StartupWMClass. audio/x-fur is the type upstream’s res/mime.xml, installed as /usr/share/mime/packages/furnace.xml, defines for Furnace’s own song files.