Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.5KB

  1. FROM ubuntu:20.04
  2. LABEL maintainer="falkTX <falktx@falktx.com>"
  3. ENV DEBIAN_FRONTEND noninteractive
  4. # enable i386
  5. RUN dpkg --add-architecture i386
  6. # update system
  7. RUN apt-get update -qq && apt-get upgrade -qqy && apt-get clean
  8. # install packages needed for build
  9. RUN apt-get install -qqy --no-install-recommends ca-certificates g++-multilib git libgl-dev make openssl pkg-config wget && \
  10. apt-get clean
  11. # install newer wine
  12. RUN mkdir -pm755 /etc/apt/keyrings && \
  13. wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key && \
  14. wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
  15. RUN apt-get update -qq && \
  16. apt-get install -qqy --no-install-recommends winehq-stable wine-stable-dev && \
  17. apt-get clean
  18. # fetch Carla
  19. RUN git clone --recursive https://github.com/falkTX/Carla.git --depth=1 # v4
  20. WORKDIR /Carla
  21. # build plugin-wine 32bit
  22. RUN apt-get install -yqq --no-install-recommends libx11-dev:i386 && apt-get clean
  23. RUN CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 make plugin plugin-wine
  24. RUN mkdir bin32
  25. RUN mv bin/CarlaVst*ShellBridged.dll* bin32
  26. RUN make distclean
  27. # build plugin-wine 64bit
  28. RUN apt-get install -yqq --no-install-recommends libx11-dev:amd64 && apt-get clean
  29. RUN CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 make plugin plugin-wine
  30. RUN mkdir bin64
  31. RUN mv bin/CarlaVst*ShellBridged.dll* bin64
  32. RUN make distclean
  33. # build Carla wine bridges
  34. RUN make wine32 wine64
  35. # CMD for inspection
  36. CMD ["bash"]