shithub: opusfile

Download patch

ref: f358633e54f58f5b9af186698db74250f04f5246
parent: 859adbeb3f12012c997186d7cd8817edde687191
author: Ralph Giles <giles@mozilla.com>
date: Thu Dec 31 11:07:56 EST 2015

mingw: Add a Dockerfile describing cross build.

For some reason, when I cross-compile opusfile on Fedora 23,
I get example binaries with exit immediately without error.

Building them on Fedora 20 (in a docker container) produced
working binaries. Until we figure out what the bug is, include
this for convenience.

The build doesn't actually work because of the 'make check'
steps in the Makefile, which require wine.

--- /dev/null
+++ b/mingw/Dockerfile
@@ -1,0 +1,19 @@
+FROM fedora:20
+MAINTAINER opus@xiph.org
+
+# Linux build.
+RUN yum update -y
+RUN yum install -y git gcc make wget
+RUN yum install -y autoconf automake libtool
+
+# mingw cross build.
+RUN yum install -y mingw32-gcc zip
+
+RUN yum clean all
+
+RUN git clone https://git.xiph.org/opusfile.git
+
+WORKDIR opusfile
+RUN git pull
+RUN make -C mingw
+RUN ./configure --host=i686-w64-mingw32 --prefix=${PWD}/mingw PKG_CONFIG_PATH=${PWD}/mingw/lib/pkgconfig && make && make check && make install