commit 0010452cbc4b99be19fac4a8d23bca9cc91c1245 Author: use Date: Wed Mar 29 02:35:42 2023 -0700 Initial commit, works as of 03-29-2023 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3abfe86 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +install/* diff --git a/README.md b/README.md new file mode 100644 index 0000000..77aa3bc --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +A collection of scripts, presumes you don't have root access, and that the +directory /app/ffmpeg is available and writable (default install location for +all, will need to adjust the build.sh scripts if not). + +Will pull the latest versions of the packages from github, install them to the +specified location, and then remove the source code (if successful). + +Packages that are not included, but are required include (but are not limited +to) gcc > v.11; gnu binutils > v2.6; and clang. Good luck, and as usual you'll +want to send a prayer up to St. Isidore. diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..76f9a7a --- /dev/null +++ b/build.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +#build with hwaccell +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/:/usr/local:/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig + +pkg=jellyfin-ffmpeg +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/jellyfin/jellyfin-ffmpeg.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure --prefix="/app/ffmpeg/install/" \ + --pkg-config-flags="--static" \ + --extra-cflags="-I/app/ffmpeg/install/include" \ + --extra-ldflags="-L/app/ffmpeg/install/lib" \ + --extra-libs="-lpthread -lm -lz -ldl" \ + --enable-vaapi \ + --enable-opengl \ + --enable-opencl \ + --enable-libmfx \ + --enable-libvorbis \ + --enable-libvpx \ + --enable-libdrm \ + --enable-libzimg \ + --enable-gpl \ + --enable-runtime-cpudetect \ + --cpu=native \ + --enable-libfdk-aac \ + --enable-libx264 \ + --enable-libx265 \ + --enable-openssl \ + --enable-libmp3lame \ + --enable-pic \ + --enable-nonfree + + +# --disable-debug \ +# --enable-debug \ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" diff --git a/build_part.sh b/build_part.sh new file mode 100644 index 0000000..cdfaaf1 --- /dev/null +++ b/build_part.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +#Build w/o hwaccell + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/:/usr/local:/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig + +pkg=jellyfin-ffmpeg +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/jellyfin/jellyfin-ffmpeg.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" \ + --extra-cflags="-I/app/ffmpeg/install/include" \ + --extra-ldflags="-L/app/ffmpeg/install/lib" \ + --extra-libs="-lpthread -lm -lz -ldl" \ + --cpu=native \ + --enable-gpl \ + --enable-libx264 \ + --enable-libx265 + + +# --disable-debug \ +# --enable-debug \ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "DONE" diff --git a/deps/01_fdk-aac/build.sh b/deps/01_fdk-aac/build.sh new file mode 100644 index 0000000..f9678fc --- /dev/null +++ b/deps/01_fdk-aac/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=fdk-aac +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/mstorsjo/fdk-aac.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/02_intel-gmmlib/build.sh b/deps/02_intel-gmmlib/build.sh new file mode 100644 index 0000000..b80d723 --- /dev/null +++ b/deps/02_intel-gmmlib/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=gmmlib +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/intel/gmmlib.git +fi +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + ../ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/03_mesa/build.sh b/deps/03_mesa/build.sh new file mode 100644 index 0000000..52e3959 --- /dev/null +++ b/deps/03_mesa/build.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=mesa-drm +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/freedesktop/mesa-drm.git +fi +mkdir -p build +cd "$pkg" + +meson ../build/ +meson configure ../build/ -Dprefix=/app/ffmpeg/install/ +cd ../ + +if ninja -C build/ install +then + make install + cd "$curDir" + rm -rf "$pkg" "build" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/04_intel-libva/build.sh b/deps/04_intel-libva/build.sh new file mode 100644 index 0000000..fa1a85f --- /dev/null +++ b/deps/04_intel-libva/build.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=libva +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/intel/libva.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --enable-drm \ + --enable-shared \ + --enable-static \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else +cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/04a_intel_libva_utils/build.sh b/deps/04a_intel_libva_utils/build.sh new file mode 100644 index 0000000..18490a2 --- /dev/null +++ b/deps/04a_intel_libva_utils/build.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=libva-utils +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/intel/libva-utils.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --enable-drm \ + --enable-shared \ + --enable-static \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else +cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/05_intel-sdk/MediaSDK b/deps/05_intel-sdk/MediaSDK new file mode 160000 index 0000000..22dc85a --- /dev/null +++ b/deps/05_intel-sdk/MediaSDK @@ -0,0 +1 @@ +Subproject commit 22dc85a376ebe8be9cc43fc48654ea159419db79 diff --git a/deps/05_intel-sdk/build.sh b/deps/05_intel-sdk/build.sh new file mode 100644 index 0000000..25f2169 --- /dev/null +++ b/deps/05_intel-sdk/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=MediaSDK +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/Intel-Media-SDK/MediaSDK.git +fi + +#Unsure if still needed: +echo "#include " >>./MediaSDK/api/mfx_dispatch/linux/mfxparser.cpp + +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + -DENABLE_X11_DRI3=ON \ + -DENABLE_WAYLAND=ON \ + ../ + + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/06_intel-media-driver/build.sh b/deps/06_intel-media-driver/build.sh new file mode 100644 index 0000000..c090109 --- /dev/null +++ b/deps/06_intel-media-driver/build.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=media-driver +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/intel/media-driver.git +fi +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + -DMEDIA_BUILD_FATAL_WARNINGS=OFF \ + ../ + +# -DCMAKE_C_FLAGS="-O1 -Wno-error=overloaded-virtual" \ +# -DCMAKE_CXX_FLAGS="-O1 -Wno-error=overloaded-virtual" \ +# -DCMAKE_Fortran_FLAGS="-O1 -Wno-error=overloaded-virtual" \ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/07_libmemcached/build.sh b/deps/07_libmemcached/build.sh new file mode 100644 index 0000000..0403b68 --- /dev/null +++ b/deps/07_libmemcached/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=libmemcached +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/awesomized/libmemcached.git +fi +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + ../ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/08_SDL/build.sh b/deps/08_SDL/build.sh new file mode 100644 index 0000000..d569481 --- /dev/null +++ b/deps/08_SDL/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=SDL +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/libsdl-org/SDL.git +fi +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + ../ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/09_libevent/build.sh b/deps/09_libevent/build.sh new file mode 100644 index 0000000..cd9647a --- /dev/null +++ b/deps/09_libevent/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=libevent +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/libevent/libevent.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/10_libjpeg/build.sh b/deps/10_libjpeg/build.sh new file mode 100644 index 0000000..7a103ba --- /dev/null +++ b/deps/10_libjpeg/build.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=libjpeg-turbo +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git +fi +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + -DCMAKE_C_FLAGS="-fPIC" \ + -DCMAKE_CXX_FLAGS="-fPIC" \ + ../ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/11_libvorbis/build.sh b/deps/11_libvorbis/build.sh new file mode 100644 index 0000000..fb42d13 --- /dev/null +++ b/deps/11_libvorbis/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=vorbis +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/xiph/vorbis.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/12_libwebp/build.sh b/deps/12_libwebp/build.sh new file mode 100644 index 0000000..72432d7 --- /dev/null +++ b/deps/12_libwebp/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=libwebp +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/webmproject/libwebp.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/13_libvpx/build.sh b/deps/13_libvpx/build.sh new file mode 100644 index 0000000..1fe5bd2 --- /dev/null +++ b/deps/13_libvpx/build.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=libvpx +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/webmproject/libvpx/ +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --enable-runtime-cpu-detect \ + --enable-vp9 \ + --enable-vp8 \ + --enable-postproc \ + --enable-vp9-postproc \ + --enable-multi-res-encoding \ + --enable-webm-io \ + --enable-vp9-highbitdepth \ + --enable-onthefly-bitpacking \ + --enable-realtime-only \ + --enable-better-hw-compatibility \ + --disable-unit-tests \ + --as=nsam \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/13_libvpx/libvpx b/deps/13_libvpx/libvpx new file mode 160000 index 0000000..972149c --- /dev/null +++ b/deps/13_libvpx/libvpx @@ -0,0 +1 @@ +Subproject commit 972149cafeb71d6f08df89e91a0130d6a38c4b15 diff --git a/deps/14_ImageMagick/build.sh b/deps/14_ImageMagick/build.sh new file mode 100644 index 0000000..17f3b60 --- /dev/null +++ b/deps/14_ImageMagick/build.sh @@ -0,0 +1,44 @@ +#!/bin/bash +#Depends on libtool + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=ImageMagick +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/ImageMagick/ImageMagick.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --enable-opengl \ + --enable-opencl \ + --prefix="/app/ffmpeg/install/" + + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + + diff --git a/deps/15_x264/build.sh b/deps/15_x264/build.sh new file mode 100644 index 0000000..28bc408 --- /dev/null +++ b/deps/15_x264/build.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=x264 +if ! [[ -d "$pkg" ]] +then + git clone https://code.videolan.org/videolan/x264.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +# --disable-asm \ + +make -j8 +if make +then + make install + make install-lib-dev + make install-lib-shared + make install-lib-static + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/16_x265/build.sh b/deps/16_x265/build.sh new file mode 100644 index 0000000..9ef044a --- /dev/null +++ b/deps/16_x265/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=x265_git +if ! [[ -d "$pkg" ]] +then + git clone https://bitbucket.org/multicoreware/x265_git +fi +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + ../source/ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/16_x265/x265_git b/deps/16_x265/x265_git new file mode 160000 index 0000000..c07d076 --- /dev/null +++ b/deps/16_x265/x265_git @@ -0,0 +1 @@ +Subproject commit c07d076cf20ab41d8077a804dda70fdbc3b97386 diff --git a/deps/17_oneVPL/build.sh b/deps/17_oneVPL/build.sh new file mode 100644 index 0000000..c7ca29d --- /dev/null +++ b/deps/17_oneVPL/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=oneVPL +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/oneapi-src/oneVPL.git +fi +cd "$pkg" + +mkdir -p build +cd build +make clean +cmake \ + -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \ + ../ + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" + diff --git a/deps/18_zimg/build.sh b/deps/18_zimg/build.sh new file mode 100644 index 0000000..790d1b9 --- /dev/null +++ b/deps/18_zimg/build.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=zimg +if ! [[ -d "$pkg" ]] +then + git clone https://github.com/sekrit-twc/zimg.git +fi +cd "$pkg" +git submodule update --init --recursive + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" +