Dockerfile 2.6 KB
Newer Older
1
FROM registry.videolan.org:5000/vlc-debian-llvm-mingw:20190114164152
2

3
ENV IMAGE_DATE=201901141920
4

5
RUN TARGET_TRIPLE=x86_64-w64-mingw32 \
6
7
    SQLITE_VERSION=sqlite-autoconf-3260000 \
    SQLITE_SHA256=5daa6a3fb7d1e8c767cd59c4ded8da6e4b00c61d3b466d0685e35c4dd6d7bf5d \
8
    JPEGTURBO_VERSION=1.5.0 \
9
10
    JPEGTURBO_SHA256=9f397c31a67d2b00ee37597da25898b03eb282ccd87b135a50a69993b6a2035f \
    RAPIDJSON_VERSION=1.0.2 \
11
    RAPIDJSON_SHA256=c3711ed2b3c76a5565ee9f0128bb4ec6753dbcc23450b713842df8f236d08666 && \
12
    mkdir -p /build && cd /build && \
13
14
    git clone --depth=1 https://git.videolan.org/git/vlc.git && \
    cd vlc && \
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
15
    cd extras/tools && ./bootstrap && make -j`nproc` && \
16
    export PATH=`pwd`/build/bin:$PATH && cd ../../ && \
17
18
    cd contrib && mkdir win64 && cd win64 && \
    ../bootstrap --host=$TARGET_TRIPLE --disable-qt --disable-skins2 \
19
20
21
22
23
        --disable-lua --disable-protobuf --disable-gettext \
        --disable-qtdeclarative --disable-qtgraphicaleffects --disable-qtquickcontrols \
        --disable-qtquickcontrols2 --disable-qtsvg && \
        make -j`nproc` && \
    cd /build/vlc && ./bootstrap && mkdir build && cd build && \
24
25
    ../configure --host=$TARGET_TRIPLE \
        --disable-lua --disable-qt --disable-skins2 \
26
        --disable-nls --disable-aom \
27
        --prefix=/prefix && \
28
    make -j`nproc` && make install && \
29
30
31
    mkdir -p /prefix/dll && \
    cp src/.libs/libvlccore.dll /prefix/dll/ && \
    cp lib/.libs/libvlc.dll /prefix/dll && \
32
    cd /build && wget -q https://www.sqlite.org/2018/$SQLITE_VERSION.tar.gz && \
33
    echo $SQLITE_SHA256 $SQLITE_VERSION.tar.gz | sha256sum -c && \
34
35
    tar xzf $SQLITE_VERSION.tar.gz && cd $SQLITE_VERSION && \
    ./configure --prefix=/prefix --host=$TARGET_TRIPLE --disable-shared && \
36
    make -j`nproc` && make install && \
37
    cd /build && \
38
39
    wget -q https://downloads.sourceforge.net/project/libjpeg-turbo/1.5.0/libjpeg-turbo-$JPEGTURBO_VERSION.tar.gz && \
    echo $JPEGTURBO_SHA256 libjpeg-turbo-$JPEGTURBO_VERSION.tar.gz | sha256sum -c && \
40
41
    tar xzf libjpeg-turbo-$JPEGTURBO_VERSION.tar.gz && \
    cd libjpeg-turbo-$JPEGTURBO_VERSION && ./configure --host=$TARGET_TRIPLE --prefix=/prefix --disable-shared && \
42
    make -j`nproc` && make install && \
43
44
    cd /build && wget -q https://github.com/miloyip/rapidjson/archive/v$RAPIDJSON_VERSION.tar.gz && \
    echo $RAPIDJSON_SHA256 v$RAPIDJSON_VERSION.tar.gz | sha256sum -c && \
45
46
47
48
49
50
    tar xzf v1.0.2.tar.gz && cd rapidjson-1.0.2/ && \
    cmake -DCMAKE_INSTALL_PREFIX=/prefix -DRAPIDJSON_BUILD_DOC=OFF \
        -DRAPIDJSON_BUILD_EXAMPLES=OFF -DRAPIDJSON_BUILD_TESTS=OFF . && \
    make install && \
    rm -rf /build