Skip to content

Commit

Permalink
add rockchip dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcA711 committed May 12, 2024
1 parent afcd993 commit b6c8ae3
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addins/6.1-rk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
FFMPEG_REPO="https://github.com/nyanmisaka/ffmpeg-rockchip"
GIT_BRANCH="6.1"
1 change: 1 addition & 0 deletions scripts.d/50-libvpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ SCRIPT_REPO="https://chromium.googlesource.com/webm/libvpx"
SCRIPT_COMMIT="3e713e39ae79e3b83b87ff65e54d454a3c6d3dfc"

ffbuild_enabled() {
[[ $ADDINS_STR == *-rk ]] && return -1
[[ $TARGET == winarm64 ]] && return -1
return 0
}
Expand Down
38 changes: 38 additions & 0 deletions scripts.d/50-rkmpp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

# this is the upstream repo of mpp
# SCRIPT_REPO="https://github.com/rockchip-linux/mpp.git"
# SCRIPT_COMMIT="bebc9961103af2b53fb18175dd858b15a73c9ad8"

# this is a fork from nyanmisaka with some additional fixes
SCRIPT_REPO="https://github.com/nyanmisaka/mpp.git"
SCRIPT_COMMIT="be00cefc9f49c076b12efdc688a80512f8a72376"
SCRIPT_BRANCH="jellyfin-mpp"

ffbuild_enabled() {
[[ $ADDINS_STR == *-rk ]] && return 0
return -1
}

ffbuild_dockerbuild() {
mkdir bld
cd bld

cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_TEST=OFF -DBUILD_SHARED_LIBS=OFF ..
make -j$(nproc)
make install

rm -rf $FFBUILD_PREFIX/lib/librockchip_mpp.so*
}

ffbuild_configure() {
echo --enable-rkmpp
}

ffbuild_unconfigure() {
echo --disable-rkmpp
}

ffbuild_libs() {
echo -lstdc++
}
47 changes: 47 additions & 0 deletions scripts.d/50-rkrga.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/JeffyCN/mirrors.git"
SCRIPT_COMMIT="d7a0a485ed6c201f882c20b3a8881e801f131385"
SCRIPT_BRANCH="linux-rga-multi"

ffbuild_enabled() {
[[ $ADDINS_STR == *-rk ]] && return 0
return -1
}

ffbuild_dockerbuild() {
sed -i 's/shared_library/library/g' meson.build

mkdir builddir && cd builddir

local myconf=(
--prefix="$FFBUILD_PREFIX"
--buildtype=release
--default-library=static
)

if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi

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

ffbuild_configure() {
echo --enable-rkrga
}

ffbuild_unconfigure() {
echo --enable-rkrga
}

ffbuild_libs() {
echo -lstdc++
}
2 changes: 1 addition & 1 deletion 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.283"
SCRIPT_COMMIT="v1.3.276"
SCRIPT_TAGFILTER="v?.*.*"

ffbuild_enabled() {
Expand Down

0 comments on commit b6c8ae3

Please sign in to comment.