{"id":51523745,"url":"https://github.com/nsputnik/sc68-buildkit","last_synced_at":"2026-07-08T18:30:41.765Z","repository":{"id":369156859,"uuid":"1288653157","full_name":"nsputnik/sc68-buildkit","owner":"nsputnik","description":"Prebuilt static libsc68 (Benjamin Gerard's sc68 / Atari ST + Amiga SNDH player) + a one-command cross-build recipe.","archived":false,"fork":false,"pushed_at":"2026-07-03T20:33:52.000Z","size":1238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-03T22:23:28.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nsputnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING-sc68","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-03T20:28:47.000Z","updated_at":"2026-07-03T20:33:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nsputnik/sc68-buildkit","commit_stats":null,"previous_names":["nsputnik/sc68-buildkit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nsputnik/sc68-buildkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsputnik%2Fsc68-buildkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsputnik%2Fsc68-buildkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsputnik%2Fsc68-buildkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsputnik%2Fsc68-buildkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsputnik","download_url":"https://codeload.github.com/nsputnik/sc68-buildkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsputnik%2Fsc68-buildkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35274756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-08T18:30:41.522Z","updated_at":"2026-07-08T18:30:41.751Z","avatar_url":"https://github.com/nsputnik.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sc68-buildkit\n\n**Prebuilt static `libsc68` + a one-command recipe to build more targets.**\n\n`libsc68` is the engine of **sc68** — Benjamin Gerard's Atari ST / Amiga music\nplayer (Motorola 68000 CPU + YM-2149 / Paula emulation) that plays **SNDH** and\n`.sc68` files. sc68 is a ~2016 autotools project whose source tree **no longer\nbuilds cleanly** on modern systems. This kit packages the fixes and ships the\nresulting libraries so you don't have to rediscover them.\n\n\u003e **Upstream:** sc68 © **Benjamin Gerard** (*Ben/OVR*) — \u003chttp://sc68.atari.org\u003e,\n\u003e source \u003chttps://sourceforge.net/p/sc68\u003e (mirror\n\u003e \u003chttps://github.com/Zeinok/sc68\u003e), **GPLv3**. This repo only builds/repackages\n\u003e it — see *Credit \u0026 license* below.\n\n## When to use sc68 vs psgplay\n\nIf you just want the best Atari **ST/STE** SNDH playback, reach for\n**[psgplay](https://github.com/frno7/psgplay)** first: it emulates the **STE DMA\nsound** (and the LMC1992 mixer), which sc68 does **not**, so it plays the STe /\nMaxYMiser tunes (with their sampled drums/bass) that sc68 renders thin. psgplay\nalso builds cleanly on a Pi in ~1 minute (no source fixes), so it needs no\nprebuilt kit like this one.\n\nsc68 keeps two niches psgplay doesn't cover, which is why this kit still exists:\n\n- **ICE-packed SNDH** — `psgplay` requires *uncompressed* SNDH data and refuses\n  packed files; **libsc68 depacks ICE transparently** (via the bundled `unice68`).\n  If your `.sndh` files are ICE-packed (magic `ICE!`), sc68 plays them as-is.\n- **`.sc68` files and Amiga (Paula) tunes** — psgplay is Atari ST/STE only; sc68\n  covers `.sc68` and Amiga.\n\nIn the [retropie-game-music-player](https://github.com/nsputnik/retropie-game-music-player)\njukebox that consumes this kit, `psgjuke` (psgplay) is the primary SNDH engine and\n`stjuke` (these libs) is the **fallback** — it fires only for ICE-packed / `.sc68`\n/ Amiga tunes psgplay can't load.\n\n## Just grab the prebuilt libs — no build needed\n\n`prebuilt/\u003ctarget\u003e/` has ready-to-link static libraries + headers:\n\n| target | CPU / libc | good for |\n|---|---|---|\n| `linux-armv7-glibc2.28` | 32-bit ARM, glibc 2.28 | Raspberry Pi OS \"Buster\", Pi Zero 2 W / 3 / 4 |\n\nLink them into your program:\n\n```sh\nL=prebuilt/linux-armv7-glibc2.28\ncc your_player.c -I\"$L/include\" \\\n  -Wl,--start-group \"$L\"/lib/lib{sc68,dial68,io68,emu68,file68,unice68}.a -Wl,--end-group \\\n  -lao -lz -lm -lpthread -ldl -o your_player\n```\n\nRuntime dependency: **libao** (`apt install libao-dev`). See\n[`example/sndhtest.c`](example/sndhtest.c) for a minimal loader (opens an SNDH,\nrenders a few seconds, reports whether there's sound).\n\n### Music to play\n\nGrab SNDH tunes to feed it from the **[SNDH Archive](https://sndh.atari.org/)** —\nthe full, curated collection of Atari ST YM-2149 music (~9,900 tunes, organised\nby composer). Download the whole set here:\n\n\u003e **\u003chttps://sndh.atari.org/download.php\u003e**\n\nEvery `.sndh` there plays with these libraries.\n\n## Build for another target\n\n[`build/build.sh`](build/build.sh) cross-builds inside a Debian container that\nmatches the target's CPU **and** glibc, so the output runs there unchanged.\nNeeds Docker.\n\n```sh\ncd build\n./build.sh                       # default: linux/arm/v7 buster (the Pi)\n./build.sh linux/arm64 bookworm  # aarch64\n./build.sh linux/amd64 bookworm  # x86-64\n```\n\nResults land in `prebuilt/\u003ctarget\u003e/`. PRs adding prebuilt targets welcome.\n\n## What the build has to work around\n\nThe sc68 SVN/mirror tree won't configure or compile as-is. `build.sh` applies:\n\n- **`tools/vcversion.sh` is missing** (it's SVN-generated). `configure.ac` runs\n  it via `esyscmd`, so it's stubbed — emitting the revision with **no trailing\n  newline** (a newline ends up inside `AC_INIT`'s version string and breaks\n  every generated `configure` with *\"missing terminating `\"`\"*).\n- **The meta-package bootstrap fails** (`Makefile.am: SOURCE_UNICE68 does not\n  appear in AM_CONDITIONAL`), so the sub-packages are built **standalone** in\n  order: **`as68 → unice68 → file68 → libsc68`**. `as68` (sc68's own 68000\n  assembler) must be built first and be on `PATH` — libsc68 assembles its TOS\n  trap emulator (`trapfunc.s → trap68.h`) with it.\n- **`hexdump` is required** by the bootstrap → install `bsdmainutils`.\n- **EOL Debian suites** (buster) → point apt at `archive.debian.org`.\n\n## Why this is its own project\n\nThe sc68 build was hard-won, and the resulting `libsc68` is useful **well beyond\nany single app** — anything that wants to play SNDH / `.sc68` on modern Linux or\nARM needs it. Rather than bury the fixes and the prebuilt libs inside one\nconsumer, this kit keeps them **reusable**: grab-and-go binaries plus a recipe to\nrebuild for other targets. That way the next person doesn't repeat the fight.\n\n**Used by:**\n- [**retropie-game-music-player**](https://github.com/nsputnik/retropie-game-music-player)\n  — a RetroPie / EmulationStation chiptune jukebox. Its `stjuke` engine links\n  these libraries to play the Atari ST SNDH archive. It's the first real consumer,\n  and the reason this kit exists — see its\n  [`docs/BUILD-stjuke.md`](https://github.com/nsputnik/retropie-game-music-player/blob/main/docs/BUILD-stjuke.md).\n\n## Credit \u0026 license\n\n`libsc68` and everything under `prebuilt/` are part of **sc68**, © **Benjamin\nGerard**, licensed **GPLv3** — full text in [`COPYING-sc68`](COPYING-sc68).\nPlease keep that attribution; sc68 is his work, this kit just makes it buildable\nagain.\n\nThe build tooling and docs in this repo (`build/`, `example/`, this README) are\ndedicated to the public domain (CC0). Note that anything you **distribute** that\nincludes the prebuilt libraries is a derivative of sc68 and therefore **GPLv3**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsputnik%2Fsc68-buildkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsputnik%2Fsc68-buildkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsputnik%2Fsc68-buildkit/lists"}