Dockerfile 577 Bytes
Newer Older
1
FROM fedora:25
2 3 4
MAINTAINER opus@xiph.org

# Linux build.
5
RUN dnf update -y --setopt=deltarpm=0
6
RUN dnf install -y git gcc make wget xz
7
RUN dnf install -y autoconf automake libtool pkgconfig
8 9

# mingw cross build.
10
RUN dnf install -y mingw32-gcc zip
11

12
RUN dnf clean all
13 14 15 16 17

RUN git clone https://git.xiph.org/opusfile.git

WORKDIR opusfile
RUN git pull
Ralph Giles's avatar
Ralph Giles committed
18
COPY Makefile mingw/Makefile
19
RUN make -C mingw
20
RUN ./autogen.sh && ./configure --host=i686-w64-mingw32 --prefix=${PWD}/mingw PKG_CONFIG_PATH=${PWD}/mingw/lib/pkgconfig && make && make check && make install
21
RUN make -C mingw package