forked from liblouis/liblouisutdml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.mingw
44 lines (39 loc) · 1.24 KB
/
Dockerfile.mingw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM debian:stretch
RUN apt-get update && apt-get install -y \
make \
autoconf \
automake \
libtool \
pkg-config \
curl \
mingw-w64 \
mingw-w64-tools \
gcc-mingw-w64-x86-64 \
binutils-mingw-w64-x86-64 \
mingw-w64-x86-64-dev \
openjdk-8-jdk \
zip
ARG LIBLOUIS_VERSION=master
ARG LIBXML2_VERSION=2.9.9
WORKDIR /root/src/
RUN curl -L ftp://xmlsoft.org/libxml2/libxml2-${LIBXML2_VERSION}.tar.gz | tar zx
WORKDIR /root/src/libxml2-${LIBXML2_VERSION}
RUN autoreconf -i
RUN ./configure --with-zlib=no --with-iconv=no --with-python=no --with-threads=no --host x86_64-w64-mingw32 --prefix=/tmp/liblouis-mingw32msvc
RUN make
RUN make install
WORKDIR /root/src/
RUN curl -L https://github.com/liblouis/liblouis/archive/${LIBLOUIS_VERSION}.tar.gz | tar zx
WORKDIR /root/src/liblouis-${LIBLOUIS_VERSION}
RUN ./autogen.sh
RUN ./configure --enable-ucs4 --host x86_64-w64-mingw32 --prefix=/tmp/liblouis-mingw32msvc
RUN make
RUN make install
ADD . /root/src/liblouisutdml
WORKDIR /root/src/liblouisutdml
ENV PKG_CONFIG_PATH=/tmp/liblouis-mingw32msvc/lib/pkgconfig
ENV CFLAGS=-I/usr/lib/jvm/java-8-openjdk-amd64/include/
RUN ./autogen.sh
RUN ./configure --disable-java-bindings --host x86_64-w64-mingw32 --prefix=/tmp/liblouis-mingw32msvc
RUN make
RUN make install