Dockerfile 577 B

12345678910111213141516171819202122
  1. FROM fedora:28
  2. MAINTAINER opus@xiph.org
  3. # Linux build.
  4. RUN dnf update -y --setopt=deltarpm=0
  5. RUN dnf install -y git gcc make wget xz
  6. RUN dnf install -y autoconf automake libtool pkgconfig
  7. # mingw cross build.
  8. RUN dnf install -y mingw32-gcc zip
  9. RUN dnf clean all
  10. RUN git clone https://git.xiph.org/opusfile.git
  11. WORKDIR opusfile
  12. RUN git pull
  13. COPY Makefile mingw/Makefile
  14. RUN make -C mingw
  15. RUN ./autogen.sh && ./configure --host=i686-w64-mingw32 --prefix=${PWD}/mingw PKG_CONFIG_PATH=${PWD}/mingw/lib/pkgconfig && make && make check && make install
  16. RUN make -C mingw package