Corrects ffmpeg build script
This commit is contained in:
parent
c0fbe4151a
commit
eb9368c3f3
@ -10,7 +10,13 @@ podTemplate(
|
||||
repo: repository,
|
||||
templateName: templateName,
|
||||
alpine: true,
|
||||
fedora: true
|
||||
[
|
||||
[
|
||||
name: "ubuntu",
|
||||
path: "${repository}/dockerhub/library/ubuntu:24.04",
|
||||
command: "/bin/bash"
|
||||
]
|
||||
],
|
||||
)
|
||||
) {
|
||||
node (label) {
|
||||
@ -45,14 +51,16 @@ podTemplate(
|
||||
}
|
||||
|
||||
stage ("Build FFMpeg") {
|
||||
container ("fedora") {
|
||||
container ("ubuntu") {
|
||||
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA())
|
||||
sh """
|
||||
apt update
|
||||
apt -y --no-install-recommends install build-essential curl ca-certificates python3 python-is-python3 ninja-build meson git
|
||||
apt clean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||
update-ca-certificates
|
||||
cd ${workspace}/ffmpeg
|
||||
sed -r -i -e 's~^LDFLAGS="-L\\\$WORKSPACE\\/lib"\$~LDFLAGS="-L\\\$WORKSPACE\\/lib -L\\\$WORKSPACE\\/lib64"~g' ./build-ffmpeg
|
||||
sed -r -i -e 's~-DJPEGXL_ENABLE_JNI=OFF~-DJPEGXL_ENABLE_JNI=OFF CMAKE_CXX_FLAGS:STRING=-fPIC~g' ./build-ffmpeg
|
||||
dnf install curl gcc-g++ libtool make xz python perl perl-devel openssl-devel diffutils bzip2 glibc-static libstdc++-static vid.stab-devel -y
|
||||
SKIPINSTALL=yes ./build-ffmpeg --full-static --enable-gpl-and-non-free --build
|
||||
AUTOINSTALL=yes ./build-ffmpeg --build --full-static --enable-gpl-and-non-free
|
||||
"""
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user