|
| 1 | +diff --git a/docker/manylinux_2_38/Dockerfile_loongarch64 b/docker/manylinux_2_38/Dockerfile_loongarch64 |
| 2 | +index 3ed3aa4..783ee6a 100644 |
| 3 | +--- a/docker/manylinux_2_38/Dockerfile_loongarch64 |
| 4 | ++++ b/docker/manylinux_2_38/Dockerfile_loongarch64 |
| 5 | +@@ -18,10 +18,11 @@ ARG AVIF_VERSION=v1.3.0 |
| 6 | + ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH |
| 7 | + |
| 8 | + # epel-release need for aarch64 to get openblas packages |
| 9 | +-RUN yum install zlib-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel lapack-devel epel-release -y && \ |
| 10 | ++RUN yum install zlib-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel lapack-devel perl-lib -y && \ |
| 11 | + yum install openblas-devel dejavu-sans-fonts -y && \ |
| 12 | + cp /usr/include/openblas/*.h /usr/include/ && \ |
| 13 | +- cp /usr/include/lapacke/lapacke*.h /usr/include/ && \ |
| 14 | ++ # cp /usr/include/lapacke/lapacke*.h /usr/include/ && \ |
| 15 | ++ cp -R /usr/share/fonts/dejavu-sans-fonts /usr/share/fonts/dejavu && \ |
| 16 | + # libpng will be built from source |
| 17 | + yum remove libpng -y |
| 18 | + |
| 19 | +@@ -50,6 +51,7 @@ RUN mkdir ~/freetype_sources && \ |
| 20 | + RUN curl -O -L https://download.qt.io/archive/qt/5.15/${QT_VERSION}/single/qt-everywhere-opensource-src-${QT_VERSION}.tar.xz && \ |
| 21 | + tar -xf qt-everywhere-opensource-src-${QT_VERSION}.tar.xz && \ |
| 22 | + cd qt-everywhere-src-${QT_VERSION} && \ |
| 23 | ++ sed -i 's/defined(__mips__) || /defined(__mips__) || defined(__loongarch__) || /g' qtbase/src/3rdparty/double-conversion/include/double-conversion/utils.h && \ |
| 24 | + export MAKEFLAGS=-j$(nproc) && \ |
| 25 | + ./configure -prefix /opt/Qt${QT_VERSION} -release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \ |
| 26 | + make && \ |
| 27 | +@@ -87,6 +89,8 @@ RUN mkdir ~/yasm_sources && \ |
| 28 | + curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-${YASM_VERSION}.tar.gz && \ |
| 29 | + tar -xf yasm-${YASM_VERSION}.tar.gz && \ |
| 30 | + cd yasm-${YASM_VERSION} && \ |
| 31 | ++ curl -o config/config.sub -L https://github.com/cgitmirror/config/raw/refs/heads/master/config.sub && \ |
| 32 | ++ curl -o config/config.guess -L https://github.com/cgitmirror/config/raw/refs/heads/master/config.guess && \ |
| 33 | + ./configure --prefix="/ffmpeg_build" --bindir="$HOME/bin" && \ |
| 34 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 35 | + make install && \ |
| 36 | +@@ -97,6 +101,8 @@ RUN mkdir ~/libvpx_sources && \ |
| 37 | + cd ~/libvpx_sources && \ |
| 38 | + git clone --depth 1 -b ${VPX_VERSION} https://chromium.googlesource.com/webm/libvpx.git && \ |
| 39 | + cd libvpx && \ |
| 40 | ++ curl -L https://github.com/webmproject/libvpx/commit/a7863b9a2f01e5d22919a51c95cbc4a9c10fbb2c.patch | patch -p1 && \ |
| 41 | ++ curl -L https://github.com/webmproject/libvpx/commit/a604e10afbb2e711e62d8d9ca9c64b368e30b0e2.patch | patch -p1 && \ |
| 42 | + ./configure --prefix="/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm --enable-pic --enable-shared && \ |
| 43 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 44 | + make install && \ |
| 45 | +@@ -137,6 +143,8 @@ RUN mkdir ~/ffmpeg_sources && \ |
| 46 | + RUN curl -O -L https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}.tar.gz && \ |
| 47 | + tar -xf ccache-${CCACHE_VERSION}.tar.gz && \ |
| 48 | + cd ccache-${CCACHE_VERSION} && \ |
| 49 | ++ curl -O -L https://github.com/cgitmirror/config/raw/refs/heads/master/config.sub && \ |
| 50 | ++ curl -O -L https://github.com/cgitmirror/config/raw/refs/heads/master/config.guess && \ |
| 51 | + ./configure && \ |
| 52 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 53 | + make install && \ |
| 54 | +@@ -157,6 +165,7 @@ USER ci |
| 55 | + # Git security vulnerability: https://github.blog/2022-04-12-git-security-vulnerability-announced |
| 56 | + RUN git config --global --add safe.directory /io |
| 57 | + |
| 58 | ++ENV PIP_EXTRA_INDEX_URL https://gitlab.com/api/v4/projects/65746188/packages/pypi/simple |
| 59 | + ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig:/ffmpeg_build/lib/pkgconfig |
| 60 | + ENV LDFLAGS -L/ffmpeg_build/lib |
| 61 | + ENV PATH "$HOME/bin:$PATH" |
0 commit comments