midi-harbor/packaging/sysroot/Dockerfile
2026-09-28 13:59:10 -05:00

22 lines
826 B
Docker

# The libraries Midi Harbor links against on Linux, for cross-compiling it. Built once per
# architecture by build.sh, and trimmed to headers, libraries and pkg-config files.
FROM debian:bookworm AS debian
RUN apt-get update; \
apt-get --no-install-recommends -y -q install \
libasound2-dev \
libavahi-client-dev \
libdbus-1-dev \
libudev-dev \
libwayland-dev \
libxkbcommon-dev
# Make every library symlink relative, so it still resolves once the tree is mounted elsewhere.
RUN find /usr/lib -type l -lname '/*' | while read -r link; do \
target=$(readlink "$link"); \
ln -sfn "$(realpath -m --relative-to="$(dirname "$link")" "$target")" "$link"; \
done
FROM scratch
COPY --from=debian /usr/include /usr/include
COPY --from=debian /usr/lib /usr/lib