Rebuild with ffmpeg 8.0
This commit is contained in:
@@ -10,33 +10,30 @@ FILENAME="${DOWNLOAD##*/}"
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
|
||||
cd "$BPM_SOURCE"
|
||||
patch -Np1 -i "$BPM_WORKDIR"/ffmpeg8-fix.patch
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
meson setup --prefix=/usr --buildtype=release ..
|
||||
meson compile
|
||||
meson setup --prefix=/usr --buildtype=release -Dworkshop=true -Dmrg=disabled -Dmaxflow=disabled build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
cd build
|
||||
|
||||
# Bypass gegl:ff-load-save test suite due to incompatibilities with recent ffmpeg version
|
||||
meson test --no-suite "gegl:ff-load-save"
|
||||
meson test -C build --no-suite "gegl:ff-load-save" --print-errorlogs
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd build
|
||||
|
||||
meson install --destdir="$BPM_OUTPUT"
|
||||
meson install -C build --destdir="$BPM_OUTPUT"
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING -t "$BPM_OUTPUT"/usr/share/licenses/gegl/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user