# shellcheck shell=bash # Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License. # See LICENSE.md for license information. # SPDX-License-Identifier: MIT # # libxmp-lite 4.7.0: the MOD decoder the DOS, Atari ST, X68000, SDL3, PSP, # web, Win16, Win32, Haiku and BeOS audio HALs compiled in until 2026-10-14, # when JoeyLib's own module player (src/core/modPlayer.c) replaced it. No # build uses it now; it stays a reference to compare that player against, # installed only when asked for by name (install libxmp), so no toolchain # fetches it. compDescription="audio: libxmp-lite 4.7.0 source (optional; no build links it; a reference for the module player)" compGroups="optional" compRequires="host" compHostDeps="tar" compUrl="https://github.com/libxmp/libxmp/releases/download/libxmp-4.7.0/libxmp-lite-4.7.0.tar.gz" compSha256="69967a7802d2d2f938347f6f9cd95232bf45a4623cbfcc196e37cdaefadc3974" compPin="$compSha256" compInstall() { local archive archive="$(fetchFile "$compUrl" "$compSha256")" rm -rf "$compDir" extractArchive "$archive" "$compDir" 1 } compInstalled() { [ -f "$compDir/include/libxmp-lite/xmp.h" ] } compVerify() { [ -d "$compDir/src" ] } compEnv() { envVar LIBXMP_DIR "$compDir" }