Skip to content

Commit

Permalink
Update build scripts and dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: nyanmisaka <[email protected]>
  • Loading branch information
nyanmisaka committed Jan 13, 2024
1 parent bf2de40 commit f6c30f8
Show file tree
Hide file tree
Showing 28 changed files with 133 additions and 84 deletions.
2 changes: 1 addition & 1 deletion builder/scripts.d/20-libxml2.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/GNOME/libxml2.git"
SCRIPT_COMMIT="da703eaaea152f6dd9e871cbe7f0ae46322c583d"
SCRIPT_COMMIT="ecfbcc8a52b4376de0653ba4138493faeb6c7fa4"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/20-zlib.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/madler/zlib.git"
SCRIPT_COMMIT="15c45adb76e81a7e3a8a9e17b2a56eb90f668f44"
SCRIPT_COMMIT="643e17b7498d12ab8d15565662880579692f769d"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/25-fftw3f.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/FFTW/fftw3.git"
SCRIPT_COMMIT="38ea230e25e69e7a3f35b957b815bac4f9aa22b0"
SCRIPT_COMMIT="d0ce926f1523d95daed48cd7c69572e068dbbfb3"

ffbuild_enabled() {
# Dependency of GPL-Only librubberband
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/25-freetype.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/freetype/freetype.git"
SCRIPT_COMMIT="028b0d5c1be1b1fe9305e073760ba6ac614ba6d8"
SCRIPT_COMMIT="ca76683b781db5d06ef1a0e2cb62a767e7dbe626"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/25-fribidi.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/fribidi/fribidi.git"
SCRIPT_COMMIT="b54871c339dabb7434718da3fed2fa63320997e5"
SCRIPT_COMMIT="5b9a242cbbb0cf27d20da9941667abfc63808c19"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/35-fontconfig.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/fontconfig/fontconfig.git"
SCRIPT_COMMIT="a264a2c0ca0be120c0fd2325f0d67ca4d5e81bd0"
SCRIPT_COMMIT="72b9a48f57de6204d99ce1c217b5609ee92ece9b"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-harfbuzz.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/harfbuzz/harfbuzz.git"
SCRIPT_COMMIT="2b5af6f42e6ba4b6eb67f807267fd5821744c519"
SCRIPT_COMMIT="d455066ad24ff39e74b7a7cb8001ea8bd20caacc"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-x11/30-libxcb.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxcb.git"
SCRIPT_COMMIT="02a7bbed391859c79864b9aacf040d84f103d38a"
SCRIPT_COMMIT="3c946010c8521497b0fba2c8bc9bde184622345a"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-x11/60-libglvnd.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
SCRIPT_COMMIT="62176c235ceca2c20f30777f5bc4195bd70391c4"
SCRIPT_COMMIT="908086d22dc307d17d0eb35c522c35fd190718cc"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-amf.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git"
SCRIPT_COMMIT="2f326350e849894a929296854f5290e66197c97c"
SCRIPT_COMMIT="c48e50ad6c8723c006b2c145d8fa49ecc0651022"

ffbuild_enabled() {
[[ $TARGET == *arm64 ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-dav1d.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://code.videolan.org/videolan/dav1d.git"
SCRIPT_COMMIT="2179b30c84571ae5a4ecfe60821b2dd0050f355f"
SCRIPT_COMMIT="746ab8b4f3021d7263c64d6b5d6f1e2c281c7acc"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libass.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/libass/libass.git"
SCRIPT_COMMIT="9f4e6afeec54c0d240a9b8377f27e6c5b7c2bde0"
SCRIPT_COMMIT="c047dd2ea16f73abb4f448e6db3637158c1226d0"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libmp3lame.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://svn.code.sf.net/p/lame/svn/trunk/lame"
SCRIPT_REV="6507"
SCRIPT_REV="6531"

ffbuild_enabled() {
return 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/oneapi-src/oneVPL.git"
SCRIPT_COMMIT="ca5bbbb057a6e84b103aca807612afb693ad046c"
SCRIPT_REPO="https://github.com/intel/libvpl.git"
SCRIPT_COMMIT="79ef61b11790c70941cfa4d167b5d20d3a4e9744"

ffbuild_enabled() {
[[ $TARGET == *arm64 ]] && return -1
return 0
}

ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" onevpl
cd onevpl
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libvpl
cd libvpl

mkdir build && cd build

Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libvpx.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://chromium.googlesource.com/webm/libvpx"
SCRIPT_COMMIT="b7d847d0e7c754ca90c15eaca08515b959ff0359"
SCRIPT_COMMIT="655da33b89770dff923b409267a566ab08330922"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libwebp.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://chromium.googlesource.com/webm/libwebp"
SCRIPT_COMMIT="24d7f9cb6ef1ef90a04d7b6c15d3477813f75ee0"
SCRIPT_COMMIT="e78e924f84ddcd41fc5d55583bc32f4ddc4100a3"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-openmpt.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://source.openmpt.org/svn/openmpt/trunk/OpenMPT"
SCRIPT_REV="19911"
SCRIPT_REV="19998"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-srt.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/Haivision/srt.git"
SCRIPT_COMMIT="4a8067cf38656926494ae6b150cf7d148213c024"
SCRIPT_COMMIT="b1c0be20d2ef7d4d1ec9897eb49c194ea7c98993"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-svtav1.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
SCRIPT_COMMIT="ba13fac241f1b54954935f2cb200efc07f3de13a"
SCRIPT_COMMIT="8a40fa986b180bbf9fcb63fbd155e44c96d2f452"

ffbuild_enabled() {
[[ $TARGET == win32 ]] && return -1
Expand Down
21 changes: 10 additions & 11 deletions builder/scripts.d/50-vaapi/30-libpciaccess.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libpciaccess.git"
SCRIPT_COMMIT="6cd5a4afbb70868c7746de8d50dea59e02e9acf2"
SCRIPT_COMMIT="c74d0a4b630f115e797cbb159ac13e0dc78f31f5"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand All @@ -12,19 +12,18 @@ ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libpciaccess
cd libpciaccess

autoreconf -fi
mkdir build && cd build

local myconf=(
--prefix="$FFBUILD_PREFIX"
--enable-shared
--disable-static
--with-pic
--with-zlib
--buildtype=release
--default-library=shared
-Dzlib=enabled
)

if [[ $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
--cross-file=/cross.meson
)
else
echo "Unknown target"
Expand All @@ -34,12 +33,12 @@ ffbuild_dockerbuild() {
export CFLAGS="$RAW_CFLAGS"
export LDFLAFS="$RAW_LDFLAGS"

./configure "${myconf[@]}"
make -j$(nproc)
make install
meson setup "${myconf[@]}" ..
ninja -j$(nproc)
ninja install

gen-implib "$FFBUILD_PREFIX"/lib/{libpciaccess.so.0,libpciaccess.a}
rm "$FFBUILD_PREFIX"/lib/libpciaccess{.so*,.la}
rm "$FFBUILD_PREFIX"/lib/libpciaccess.so*

echo "Libs: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/pciaccess.pc
}
2 changes: 1 addition & 1 deletion builder/scripts.d/50-vaapi/50-libva.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/intel/libva.git"
SCRIPT_COMMIT="633746e717ef8daf82856b9909a4ffd0163df4b4"
SCRIPT_COMMIT="6c625cc4c07c3bd50d71879cf57d5751d98a60ef"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-vulkan/45-vulkan.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/KhronosGroup/Vulkan-Headers.git"
SCRIPT_COMMIT="v1.3.270"
SCRIPT_COMMIT="v1.3.274"
SCRIPT_TAGFILTER="v?.*.*"

ffbuild_enabled() {
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-vulkan/55-spirv-cross.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/KhronosGroup/SPIRV-Cross.git"
SCRIPT_COMMIT="4818f7e7ef7b7078a3a7a5a52c4a338e0dda22f4"
SCRIPT_COMMIT="f349c91274b91c1a7c173f2df70ec53080076191"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-x265.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://bitbucket.org/multicoreware/x265_git.git"
SCRIPT_COMMIT="8ee01d45b05cdbc9da89b884815257807a514bc8"
SCRIPT_COMMIT="ce8642f22123f0b8cf105c88fc1e8af9888bd345"

ffbuild_enabled() {
[[ $VARIANT == lgpl* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Build-Depends:
# --enable-cuda-llvm
clang [!armhf !arm64],
# --enable-opencl
ocl-icd-opencl-dev [!armhf !arm64],
ocl-icd-opencl-dev,
# --enable-omx
# libomxil-bellagio-dev
# omx headers are fully included in raspberrypi/firmware.
Expand Down
28 changes: 15 additions & 13 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ CONFIG := --prefix=${TARGET_DIR} \
--enable-gmp \
--enable-gnutls \
--enable-chromaprint \
--enable-opencl \
--enable-libdrm \
--enable-libass \
--enable-libfreetype \
Expand All @@ -35,6 +36,7 @@ CONFIG := --prefix=${TARGET_DIR} \
--enable-libvorbis \
--enable-libopenmpt \
--enable-libdav1d \
--enable-libsvtav1 \
--enable-libwebp \
--enable-libvpx \
--enable-libx264 \
Expand All @@ -43,23 +45,10 @@ CONFIG := --prefix=${TARGET_DIR} \
--enable-libzimg \
--enable-libfdk-aac \

CONFIG_ARM_COMMON := --toolchain=hardened \
--enable-cross-compile \

CONFIG_ARM := ${CONFIG_ARM_COMMON} \
--arch=armhf \
--cross-prefix=/usr/bin/arm-linux-gnueabihf- \

CONFIG_ARM64 := ${CONFIG_ARM_COMMON} \
--arch=arm64 \
--cross-prefix=/usr/bin/aarch64-linux-gnu- \

CONFIG_x86 := --arch=amd64 \
--enable-libsvtav1 \
--enable-libshaderc \
--enable-libplacebo \
--enable-vulkan \
--enable-opencl \
--enable-vaapi \
--enable-amf \
--enable-libvpl \
Expand All @@ -70,6 +59,19 @@ CONFIG_x86 := --arch=amd64 \
--enable-nvdec \
--enable-nvenc \

CONFIG_ARM_COMMON := --toolchain=hardened \
--enable-cross-compile \
--enable-rkmpp \
--enable-rkrga \

CONFIG_ARM := --arch=armhf \
--cross-prefix=/usr/bin/arm-linux-gnueabihf- \
${CONFIG_ARM_COMMON} \

CONFIG_ARM64 := --arch=arm64 \
--cross-prefix=/usr/bin/aarch64-linux-gnu- \
${CONFIG_ARM_COMMON} \

HOST_ARCH := $(shell arch)
BUILD_ARCH := ${DEB_HOST_MULTIARCH}
ifeq ($(BUILD_ARCH),x86_64-linux-gnu)
Expand Down
6 changes: 3 additions & 3 deletions docker-build-win64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ popd
popd

# SVT-AV1
git clone -b v1.7.0 --depth=1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
git clone -b v1.8.0 --depth=1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
pushd SVT-AV1
mkdir build
pushd build
Expand Down Expand Up @@ -557,8 +557,8 @@ mv * ${FF_DEPS_PREFIX}/include/AMF
popd

# VPL
git clone -b v2023.3.1 --depth=1 https://github.com/oneapi-src/oneVPL.git
pushd oneVPL
git clone -b v2.10.1 --depth=1 https://github.com/intel/libvpl.git
pushd libvpl
mkdir build && pushd build
cmake \
-DCMAKE_TOOLCHAIN_FILE=${FF_CMAKE_TOOLCHAIN} \
Expand Down
Loading

0 comments on commit f6c30f8

Please sign in to comment.