commit 91b08602455eee234710a73f348c9b29e5330ae9 Author: EnumDev Date: Sat Oct 11 11:27:30 2025 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..cd89e29 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Ignore this package +echo "ignore" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..2a0bbc2 --- /dev/null +++ b/pkg.info @@ -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 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..0271fb4 --- /dev/null +++ b/source.sh @@ -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 +}