Dockerfile 1.9 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=201802211142
4

5 6 7 8
RUN TARGET_TRIPLE=x86_64-w64-mingw32 \
    SQLITE_VERSION=sqlite-autoconf-3140000 \
    JPEGTURBO_VERSION=1.5.0 && \
    mkdir /build && cd /build && \
9
    git clone --depth=1 https://git.videolan.org/git/vlc.git && \
10
    cd vlc && \
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
11
    cd extras/tools && ./bootstrap && make -j`nproc` && \
12
    export PATH=`pwd`/build/bin:$PATH && cd ../../ && \
13 14
    cd contrib && mkdir win64 && cd win64 && \
    ../bootstrap --host=$TARGET_TRIPLE --disable-qt --disable-skins2 \
15
        --disable-lua --disable-protobuf --disable-gettext && make -j`nproc` && \
16 17 18 19 20
    cd /build/vlc && ./bootstrap && mkdir build && cd build && \
    ../configure --host=$TARGET_TRIPLE \
        --disable-lua --disable-qt --disable-skins2 \
        --disable-nls \
        --prefix=/prefix && \
21
    make -j`nproc` && make install && \
22 23 24 25 26 27
    mkdir -p /prefix/dll && \
    cp src/.libs/libvlccore.dll /prefix/dll/ && \
    cp lib/.libs/libvlc.dll /prefix/dll && \
    cd /build && wget https://www.sqlite.org/2016/$SQLITE_VERSION.tar.gz && \
    tar xzf $SQLITE_VERSION.tar.gz && cd $SQLITE_VERSION && \
    ./configure --prefix=/prefix --host=$TARGET_TRIPLE --disable-shared && \
28
    make -j`nproc` && make install && \
29 30 31 32
    cd /build && \
    wget http://downloads.sourceforge.net/project/libjpeg-turbo/1.5.0/libjpeg-turbo-$JPEGTURBO_VERSION.tar.gz && \
    tar xzf libjpeg-turbo-$JPEGTURBO_VERSION.tar.gz && \
    cd libjpeg-turbo-$JPEGTURBO_VERSION && ./configure --host=$TARGET_TRIPLE --prefix=/prefix --disable-shared && \
33
    make -j`nproc` && make install && \
34 35 36 37 38 39 40
    cd /build && wget https://github.com/miloyip/rapidjson/archive/v1.0.2.tar.gz && \
    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