ref: 3abc35411d0a4a54f1e9983345d77c7ca1b86bd5
dir: /mingw/Dockerfile/
FROM fedora:23
MAINTAINER opus@xiph.org
# Linux build.
RUN dnf update -y
RUN dnf install -y git gcc make wget xz
RUN dnf install -y autoconf automake libtool pkgconfig
# mingw cross build.
RUN dnf install -y mingw32-gcc zip
RUN dnf clean all
RUN git clone https://git.xiph.org/opusfile.git
WORKDIR opusfile
RUN git pull
RUN make -C mingw
RUN ./autogen.sh && ./configure --host=i686-w64-mingw32 --prefix=${PWD}/mingw PKG_CONFIG_PATH=${PWD}/mingw/lib/pkgconfig && make && make check && make install
RUN make -C mingw package