Dockerfile 2.48 KB
Newer Older
Konstantin Pavlov's avatar
Konstantin Pavlov committed
1
FROM registry.videolan.org:5000/vlc-debian-win64:latest
2

3
ENV IMAGE_DATE=201806051344
4

5 6
RUN TARGET_TRIPLE=x86_64-w64-mingw32 \
    SQLITE_VERSION=sqlite-autoconf-3140000 \
7
    SQLITE_SHA256=742db0ebbd9cc91ed6a41857f50aa9795fc859c994a256125135cd07f6cdfd76 \
8
    JPEGTURBO_VERSION=1.5.0 \
9 10 11
    JPEGTURBO_SHA256=9f397c31a67d2b00ee37597da25898b03eb282ccd87b135a50a69993b6a2035f \
    RAPIDJSON_VERSION=1.0.2 \
    RAPIDJSON_SHA256=c3711ed2b3c76a5565ee9f0128bb4ec6753dbcc23450b713842df8f236d08666 \
12
    PATH=/opt/gcc-$TARGET_TRIPLE/bin:$PATH && \
13
    mkdir /build && cd /build && \
14
    git clone --depth=1 https://git.videolan.org/git/vlc/vlc-3.0.git && \
15
    cd vlc-3.0 && \
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
16
    cd extras/tools && ./bootstrap && make -j`nproc` && \
17
    export PATH=`pwd`/build/bin:$PATH && cd ../../ && \
18 19
    cd contrib && mkdir win64 && cd win64 && \
    ../bootstrap --host=$TARGET_TRIPLE --disable-qt --disable-skins2 \
20
        --disable-lua --disable-protobuf --disable-gettext && make -j`nproc` && \
21
    cd /build/vlc-3.0 && ./bootstrap && mkdir build && cd build && \
22 23 24 25
    ../configure --host=$TARGET_TRIPLE \
        --disable-lua --disable-qt --disable-skins2 \
        --disable-nls \
        --prefix=/prefix && \
26
    make -j`nproc` && make install && \
27 28 29
    mkdir -p /prefix/dll && \
    cp src/.libs/libvlccore.dll /prefix/dll/ && \
    cp lib/.libs/libvlc.dll /prefix/dll && \
30 31
    cd /build && wget -q https://www.sqlite.org/2016/$SQLITE_VERSION.tar.gz && \
    echo $SQLITE_SHA256 $SQLITE_VERSION.tar.gz | sha256sum -c && \
32 33
    tar xzf $SQLITE_VERSION.tar.gz && cd $SQLITE_VERSION && \
    ./configure --prefix=/prefix --host=$TARGET_TRIPLE --disable-shared && \
34
    make -j`nproc` && make install && \
35
    cd /build && \
36 37
    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 && \
38 39
    tar xzf libjpeg-turbo-$JPEGTURBO_VERSION.tar.gz && \
    cd libjpeg-turbo-$JPEGTURBO_VERSION && ./configure --host=$TARGET_TRIPLE --prefix=/prefix --disable-shared && \
40
    make -j`nproc` && make install && \
41 42
    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 && \
43 44 45 46 47 48
    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