Initial commit

This commit is contained in:
2025-10-11 11:27:30 +03:00
commit 91b0860245
4 changed files with 117 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
# Ignore this package
echo "ignore"
+49
View File
@@ -0,0 +1,49 @@
name: ffmpeg4.4
description: A complete, cross-platform solution to record, convert and stream audio and video
version: 4.4.6
revision: 1
url: https://ffmpeg.org/
license: GPL3-only
architecture: any
type: source
depends:
- alsa-lib
- libaom
- bzip2
- fontconfig
- freetype2
- fribidi
- glib
- glibc
- gnutls
- harfbuzz
- lame
- libass
- libdrm
- libpulse
- libva
- libvdpau
- libvorbis
- libvpx
- libwebp
- libx11
- libxcb
- libxext
- libxml2
- libxv
- sdl2-compat
- speex
- vulkan-loader
- x264
- x265
- xz-utils
- zlib
make_depends:
- mesa
- nasm
- vulkan-headers
downloads:
- url: https://ffmpeg.org/releases/ffmpeg-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 2290461f467c08ab801731ed412d8e724a5511d6c33173654bd9c1d2e25d0617
+62
View File
@@ -0,0 +1,62 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
./configure --prefix=/usr \
--incdir=/usr/include/ffmpeg4.4 \
--libdir=/usr/lib/ffmpeg4.4 \
--enable-gpl \
--enable-version3 \
--disable-static \
--enable-shared \
--disable-debug \
--disable-doc \
--disable-programs \
--enable-gnutls \
--enable-libaom \
--enable-libass \
--enable-libdrm \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libpulse \
--enable-libspeex \
--enable-libvorbis \
--enable-libvpx \
--enable-libwebp \
--enable-libx264 \
--enable-libx265 \
--enable-libxml2 \
--enable-vulkan \
--ignore-tests=enhanced-flv-av1 \
--docdir=/usr/share/doc/ffmpeg
make
make tools/qt-faststart
make doc/ff{mpeg,play}.1
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
# Move libs to /usr/lib, except the .so symlinks
pushd "$BPM_OUTPUT" &> /dev/null
local f
for f in usr/lib/ffmpeg4.4/*; do
if [[ $f == *.so ]]; then
ln -srf -- usr/lib/"$(readlink "$f")" "$f"
elif [[ ! -d $f ]]; then
mv "$f" usr/lib
fi
done
rm -r usr/share
popd &> /dev/null
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING.GPLv3 "$BPM_OUTPUT"/usr/share/licenses/ffmpeg4.4/COPYING.GPLv3
}