Here is something I put together today.

Spotify on FreeBSD Guide
=========================

Requirements
------------
- Spotify Premium account
- Spotify Developer App:
1. Visit developer.spotify.com/dashboard
2. Create a new app (name it anything)
3. Note your Client ID and Client Secret
4. Set Redirect URI to: http://127.0.0.1:8888

Install Dependencies
--------------------
Some packages may be optional, but installing all ensures compatibility:

pkg install rust python cmake clang \
alsa-lib alsa-plugins alsa-seq-server alsa-sndio alsa-utils \
zita-alsa-pcmi

Versions may varyβ€”adjust as needed for your system.

Compile librespot from Source
-----------------------------
git clone github.com/librespot-org/libre
cd librespot
cargo build --no-default-features --features "rustls-tls-native-roots rodio-backend"

Install spotify-qt
-------------------
You can install via ports or build from source:

git clone github.com/kraxarn/spotify-qt.
cd spotify-qt
mkdir build && cd build
cmake ..
make
./spotify-qt

First Run Setup
---------------
1. Launch spotify-qt
2. Enter your Spotify App ID and Secret
3. Go to Settings β†’ Spotify and set the path to your librespot binary
4. Restart spotify-qt
5. Open Menu β†’ Devices and select your spotify-qt instance

Done!
-----
Enjoy Spotify on FreeBSD 🎢

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/gabe_saltar/statuses/115185600705389340 on your instance and quote it. (Note that quoting is not supported in Mastodon.)